# Jeric1223/tossinvest-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/Jeric1223/tossinvest-mcp  
**GitHub Stars:** 2  
**npm Downloads (last month):** 126  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/jeric1223-tossinvest-mcp

## Description
Toss Securities (토스증권) Open API server for Korean and US stocks. Places regular and SINGLE/OCO/OTO conditional orders behind a single-use confirmation token that expires in 60 seconds, plus quotes, orderbook, trades, candles, investor flows, short selling, rankings, holdings, buying power, and FX. npx -y @soehd0889/tossinvest-mcp

## Tools
Capabilities this server exposes over MCP:

- **toss_get_price** — Fetches current prices from Toss Securities. Korean listings use the 6-digit code (e.g. 005930); US listings use the ticker (e.g. NVDA). Both can be mixed in one call. If you only know the company name, call toss_resolve_symbol first.
- **toss_resolve_symbol** — Finds the Toss Securities symbol for a company name or ticker, e.g. '삼성전자' -> 005930. When `exact` is false the query matched several candidates — ask the user which one instead of picking one yourself.
- **toss_get_holdings** — Returns the actual positions and P&L in the Toss Securities account. Prefer this over any hand-maintained portfolio file, which may be out of date.
- **toss_get_buying_power** — Returns available cash in the Toss Securities account. toss_get_holdings excludes cash, so call this too when computing total assets.
- **toss_get_exchange_rate** — Returns the Toss Securities FX rate, defaulting to USD -> KRW. Use it to convert USD positions to KRW. Quotes expire in about five minutes, so do not cache the result.
- **toss_get_candles** — Returns OHLCV candles for a symbol, for trend and volatility analysis. Interval is 1m or 1d; at most 200 candles per call.
- **toss_prepare_order** — Previews a NEW market or limit order to buy or sell one stock immediately. For trigger-based orders use toss_prepare_conditional_order; to change or withdraw an order that already exists use toss_prepare_order_modify or toss_prepare_order_cancel. Nothing reaches the market from this call: it only validates the request and returns a preview plus a confirmation token. Show that preview to the user, obtain explicit approval, then pass the token to toss_submit_prepared_order. The token is single-use and expires 60 seconds after this call.
- **toss_prepare_conditional_order** — Previews a NEW conditional order that stays dormant until its trigger price is reached. SINGLE arms one leg. OCO arms two legs where filling either one cancels the other (typical take-profit plus stop-loss pair). OTO arms a second leg that is placed only after the first leg fills. For an order that should execute right away use toss_prepare_order instead. Nothing reaches the market from this call: it only validates the request and returns a preview plus a confirmation token. Show that preview to the user, obtain explicit approval, then pass the token to toss_submit_prepared_order. The token is single-use and expires 60 seconds after this call.
- **toss_prepare_order_modify** — Previews a change to an EXISTING open regular order — its quantity, price, or order type. The order keeps its identity; only the listed fields change. Find the orderId with toss_get_orders (status 'OPEN'). Use toss_prepare_conditional_order_modify for conditional orders. Nothing reaches the market from this call: it only validates the request and returns a preview plus a confirmation token. Show that preview to the user, obtain explicit approval, then pass the token to toss_submit_prepared_order. The token is single-use and expires 60 seconds after this call.
- **toss_prepare_order_cancel** — Previews the withdrawal of an EXISTING open regular order so that none of its remaining quantity can fill. Already-executed shares are unaffected — cancelling never reverses a fill. Find the orderId with toss_get_orders (status 'OPEN'). Use toss_prepare_conditional_order_cancel for conditional orders. Nothing reaches the market from this call: it only validates the request and returns a preview plus a confirmation token. Show that preview to the user, obtain explicit approval, then pass the token to toss_submit_prepared_order. The token is single-use and expires 60 seconds after this call.
- **toss_prepare_conditional_order_modify** — Previews a change to an EXISTING conditional order that has not triggered yet — its trigger prices, legs, quantity, or expiry. Every field is replaced, so send the complete intended state rather than only the parts you want changed. The symbol cannot be changed; cancel and create a new order for that. Find the conditionalOrderId with toss_get_conditional_orders (status 'OPEN'). Nothing reaches the market from this call: it only validates the request and returns a preview plus a confirmation token. Show that preview to the user, obtain explicit approval, then pass the token to toss_submit_prepared_order. The token is single-use and expires 60 seconds after this call.
- **toss_prepare_conditional_order_cancel** — Previews the removal of an EXISTING conditional order so that it can no longer trigger. Legs that already triggered and became live orders are unaffected — cancel those with toss_prepare_order_cancel. Find the conditionalOrderId with toss_get_conditional_orders. Nothing reaches the market from this call: it only validates the request and returns a preview plus a confirmation token. Show that preview to the user, obtain explicit approval, then pass the token to toss_submit_prepared_order. The token is single-use and expires 60 seconds after this call.
- **toss_submit_prepared_order** — Places the previously prepared order. Call only after the user has explicitly confirmed the exact preview in this conversation. The confirmation token is single-use and expires after 60 seconds.
- **toss_get_orderbook** — Returns live ask and bid levels for a Korean stock code or US ticker.
- **toss_get_recent_trades** — Returns recent executions for a Korean stock code or US ticker.
- **toss_get_market_calendar** — Returns session and holiday information for the Korean or US market, including adjacent business days.
- **toss_get_stock_warnings** — Returns investment cautions, liquidation trading, volatility interruption, and warrant warnings.
- **toss_get_stock_investor_trading** — Returns daily Korean-stock trading trends for retail, foreign, institutional, and other investors.
- **toss_get_short_selling** — Returns daily Korean-stock short-selling volume, value, and ratio.
- **toss_get_rankings** — Ranks Korean or US stocks by traded value, traded volume, or price change, for screening what is active today. Returns a leaderboard, not data about a stock you already picked — use toss_get_price for that.
- **toss_get_market_indicator_prices** — Returns current prices for market indicators such as KOSPI and KOSDAQ. Pass one or more documented indicator symbols.
- **toss_get_market_indicator_candles** — Returns 1-minute or daily OHLCV candles for a market indicator.
- **toss_get_market_investor_trading** — Returns investor trading value trends for KOSPI or KOSDAQ.
- **toss_get_orders** — Lists regular orders in the account, filtered by status. Use it to find the orderId needed by toss_prepare_order_modify and toss_prepare_order_cancel, or to check whether an order filled. Conditional orders are listed separately by toss_get_conditional_orders.
- **toss_get_order** — Gets one regular order in full, including its current status and every partial execution. Use it to confirm what actually filled after submitting an order.
- **toss_get_sellable_quantity** — Returns how many shares of one symbol can be sold right now. This can be lower than the holding shown by toss_get_holdings, because shares reserved by open sell orders or still settling are excluded. Check it before sizing a SELL order.
- **toss_get_commissions** — Returns applicable Korean and US stock trading commission schedules.
- **toss_get_conditional_orders** — Lists conditional (trigger-based) orders in the account, filtered by status. Use it to find the conditionalOrderId needed by toss_prepare_conditional_order_modify and toss_prepare_conditional_order_cancel. Regular orders are listed separately by toss_get_orders.
- **toss_get_conditional_order** — Gets one conditional order in full, including whether its trigger has fired and what each leg is doing. Use it to check on an armed condition before modifying it.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "tossinvest-mcp": {
    "command": "npx",
    "args": ["-y","@soehd0889/tossinvest-mcp"],
    "env": {
      "TOSS_CLIENT_ID": "",
      "TOSS_CLIENT_SECRET": ""
    }
  }
}
```

**Requires environment variables:** `TOSS_CLIENT_ID`, `TOSS_CLIENT_SECRET` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Jeric1223/tossinvest-mcp MCP server does

Jeric1223/tossinvest-mcp MCP server exposes the Toss Securities Open API through MCP tools. It covers Korean and US stocks, including current prices, symbol lookup, holdings, available funds, exchange rates, candles, order books, recent trades, market calendars, stock warnings, investor flows, short-selling data, rankings, and market indicators.

The server also supports order workflows. Regular orders and SINGLE, OCO, and OTO conditional orders are first validated and previewed. Submission is handled separately after the user reviews and confirms the prepared order.

## How it works

The package runs as an MCP process launched with `npx`. An MCP client sends tool calls to the server, which uses the configured Toss Securities credentials to query the Open API or prepare an order. The repository specifically documents use with Claude Code and Claude Desktop.

Order execution uses a two-step flow. `toss_prepare_order` or `toss_prepare_conditional_order` creates a preview without placing a trade. After explicit user confirmation, `toss_submit_prepared_order` submits the matching order. The confirmation token is tied to that order, expires after 60 seconds, becomes invalid after one use, and is also invalidated if the server restarts.

## Setup and configuration

Jeric1223/tossinvest-mcp MCP server requires Node.js 18 or newer. Install credentials from the Toss Securities Open API developer console and provide them as environment variables:

- `TOSS_CLIENT_ID`
- `TOSS_CLIENT_SECRET`

For Claude Code, add an MCP entry to the project’s `.mcp.json` using `npx -y @soehd0889/tossinvest-mcp` as the command and pass the two variables in its `env` object. Restart the client after configuring the credentials. Credentials should not be committed to Git or included in prompts.

For local development, clone the repository, run `npm install`, and use `npm test`. The documented local configuration copies `.env.example` to `.env` before credentials are added.

## Tools and capabilities

Available tool groups include:

- Market data: prices, symbol resolution, candles, order books, recent trades, calendars, warnings, and market indicators.
- Account data: holdings with profit and loss, buying power in KRW or USD, and exchange rates.
- Market analysis: domestic investor trading, short-selling activity, market-wide investor flows, and rankings by trading value, volume, gains, or losses.
- Trading: regular-order preparation, SINGLE/OCO/OTO conditional-order preparation, and submission of a confirmed prepared order.

On first launch, the server downloads symbol masters for KOSPI, KOSDAQ, NASDAQ, NYSE, and AMEX. It then uses a cache and refreshes that data in the background once per day.

## Limitations and notes

Jeric1223/tossinvest-mcp MCP server is an unofficial project and is not affiliated with Toss Securities. It does not provide investment advice, and users remain responsible for its use and any resulting trades.

The API returns numeric fields as strings, and percentage changes use decimal notation: `-0.3799` represents -37.99%. Documented rate limits are 15 requests per second for quotes, 5 per second for asset data, and 1 per second for account data. The confirmation process reduces accidental-order risk but does not replace the user’s final review.

_Full upstream README: https://allmcps.com/mcp/jeric1223-tossinvest-mcp/readme_

