Toss Invest

v0.5.1
io.github.nukeguys/toss-invest Checked 1 day ago Published 5 days ago

Access Toss Securities market, account, and opt-in trading APIs through MCP.

pnpm workspace for a TypeScript SDK and a local MCP server for the Toss Securities Open API. The MCP server is read-only unless trading is explicitly enabled. Set TOSS_CLIENT_ID and TOSS_CLIENT_SECRET in .env, then run: The REST smoke test only performs read operations. To test WebSocket subscriptions, run pnpm test:live:websocket. Issuing a token revokes the previous token for the same credentials. See the SDK smoke test guide and MCP setup guide for details.

Summary extracted from the README.

Toss Securities Open API

Unofficial community project. This project is not affiliated with or endorsed by Toss Securities.

pnpm workspace for a TypeScript SDK and a local MCP server for the Toss Securities Open API. The MCP server is read-only unless trading is explicitly enabled.

Packages

  • packages/sdk: TypeScript SDK for REST and WebSocket with shared access-token management
  • apps/mcp: local MCP server built on the SDK, with opt-in trading permissions

Requirements

  • Node.js 22.18 or later for package users and 24.11 or later for workspace development
  • pnpm

Setup

pnpm install
cp .env.example .env

Set TOSS_CLIENT_ID and TOSS_CLIENT_SECRET in .env, then run:

pnpm check
pnpm test
pnpm test:live:rest

The REST smoke test only performs read operations. To test WebSocket subscriptions, run pnpm test:live:websocket. Issuing a token revokes the previous token for the same credentials. See the SDK smoke test guide and MCP setup guide for details.