Skip to main content
Glama
toss-invest-mcp

toss-invest-mcp

by jihwan0102

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DATA_DIRNoDirectory for token cache, ledger, logs, and kill switch. Default: ~/.local/state/toss-invest-mcp~/.local/state/toss-invest-mcp
NTFY_TOPICNoPhone confirmation code topic (make it long so it cannot be guessed)
LISTEN_HOSTNoHTTP listen host. Default: 127.0.0.1127.0.0.1
LISTEN_PORTNoHTTP listen port. Default: 80008000
NTFY_SERVERNontfy server URL. Default: https://ntfy.shhttps://ntfy.sh
PUBLIC_HOSTNoPublic hostname behind the proxy (for Host header checking)
TRADING_MODENoTrading mode: off / dry_run / live. Default: dry_rundry_run
DAILY_MAX_KRWNoDaily cumulative buy limit in KRW (KST). Default: unlimited
DAILY_MAX_USDNoDaily cumulative buy limit in USD (KST). Default: unlimited
MAX_ORDER_KRWNoPer-order buy limit in KRW (empty or 0/off means unlimited). Default: unlimited
MAX_ORDER_USDNoPer-order buy limit in USD (empty or 0/off means unlimited). Default: unlimited
MCP_AUTH_TOKENNoHTTP Bearer token
TOSS_CLIENT_IDYesToss Open API key (Client ID) (required)
ALLOWED_ORIGINSNoAllowed Origins. Default: claude.ai, localhostclaude.ai,localhost
ALLOWED_SYMBOLSNoComma-separated allowed symbols. Default: all
MCP_PATH_SECRETNoHTTP path secret (/<secret>/mcp)
PREVIEW_TTL_SECNoPreview validity duration in seconds. Default: 300300
DAILY_MAX_ORDERSNoDaily buy order count limit. Default: unlimited
TOSS_ACCOUNT_SEQNoAccount sequence to use when multiple accounts exist (default: first comprehensive trading account)
TOSS_CLIENT_SECRETYesToss Open API key (Client Secret) (required)
MARKET_ORDER_BUFFERNoMarket order amount estimation buffer. Default: 0.030.03

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
quoteA

현재가 조회. symbols 는 콤마 구분 (예: 'AAPL,TSLA' 또는 '005930,000660'). 미국은 티커, 국내는 6자리 코드.

orderbookC

호가(매수/매도 잔량) 조회.

candlesB

캔들(OHLCV) 조회. interval 은 '1d'(일봉) 또는 '1m'(1분봉), count 최대 200. 최신 봉이 배열 첫 번째.

technicalsA

기술 지표 요약: RSI(14, Wilder), 볼린저(20, 2σ), 이동평균 5/20/60, 1·5·20봉 등락률, 연속 상승/하락, 조회 구간 고점 대비 위치. 최근 120봉 기준. 마지막 봉이 진행 중이면 실시간 값이다.

stock_infoC

종목 기본 정보: 이름, 시장, 통화, 상장 상태, 레버리지 배수(leverageFactor) 등.

market_hours_usA

미국장 세션 시간(데이마켓/프리/정규/애프터, 전일·당일·익일). 모든 시간 KST.

kr_marketA

국내 지수/국채 금리 현재가. 지원: KOSPI, KOSDAQ, KR_BOND_2Y/3Y/5Y/10Y/20Y/30Y.

fx_usdkrwA

원/달러 환율 (토스 표시 환율, 1분 갱신. 실제 체결 환율과 다를 수 있음).

holdingsB

보유 주식과 평가손익. symbol 을 주면 그 종목만.

buying_powerB

현금 기준 매수 가능 금액 (미수 제외).

ordersA

주문 목록. OPEN=미체결/진행 중 전체, CLOSED=종료된 주문 (limit 최대 100).

order_detailC

주문 상세 (체결 수량, 평균 체결가, 수수료 등).

trading_statusA

주문 안전장치 상태: 모드(off/dry_run/live), 킬스위치, 1회·일일 한도, 오늘 사용량, 허용 종목, 확인 방식.

preview_orderA

주문 미리보기 (실제 주문 안 나감). 한도·잔고·매도가능수량을 검사하고 preview_id 를 돌려준다.

  • order_type: LIMIT(지정가), MARKET(시장가), LOC(미국주식 장마감 지정가 = 조건 만족 시 종가에 체결)

  • quantity: 주 수량 (소수점은 미국 시장가 매도만). order_amount_usd: 금액 주문 (미국 시장가만, 정규장 중).

  • price: LIMIT/LOC 필수. LOC 매도는 '이 가격 이상이면 종가로 판다', LOC 매수는 '이 가격 이하면 종가로 산다'. 결과 summary 와 warnings 를 사용자에게 그대로 보여주고, 사용자가 실행하라고 하면 place_order(preview_id) 를 호출한다.

order_logB

이 서버가 남긴 최근 주문 관련 로그 (미리보기, 실행, 거절, 취소).

place_orderA

preview_order 로 만든 주문을 실행한다. 사용자가 미리보기를 보고 명시적으로 실행하라고 했을 때만 호출. 확인코드(폰 전송) 설정이면 사용자가 직접 입력한 6자리 코드를 confirm_code 로 넘긴다. 같은 preview_id 는 한 번만 실행된다.

cancel_orderA

미체결 주문 취소. 위험을 줄이는 동작이라 킬스위치가 켜져 있어도 된다. dry_run 모드면 모의 취소.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.3/5.0

Scored across 17 tools

Disambiguation3/5

Most tools have clearly distinct purposes (e.g., quote vs. orderbook vs. candles), but 'order_type' is highly ambiguous—it sounds like a parameter or enum rather than a tool, and its description mixes order types with quantity/price parameters. This could lead an agent to mistake it for a configuration tool or parameter documentation.

Naming Consistency4/5

Names are predominantly snake_case and lowercase, but there is a mix of single nouns (quote, orderbook, candles) and verb_noun patterns (preview_order, place_order, cancel_order). The deviation is minor and still readable, with no camelCase or chaotic naming.

Tool Count4/5

The server provides 17 tools (per list), which is slightly above the ideal 3–15 range but justified for a trading platform covering market data, account info, order lifecycle, and safety. Most tools earn their place, though 'order_type' may be unnecessary.

Completeness4/5

The surface covers core trading workflows: market data, holdings, buying power, order preview/place/cancel, and safety status. Minor gaps include a direct cash balance tool (buying_power approximates) and order modification, but these are workable and not critical for the stated purpose.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues