
Kiwoom Mcp
io.github.gejyn14Published by GitHub account gejyn14v0.1.2Updated Oct 24, 2026
Kiwoom Securities REST API for Korean markets — 236 endpoints, streaming, gated order execution
Overview
Connects an assistant to Kiwoom Securities' Korean market REST and WebSocket APIs for quotes, charts, account data, rankings, and optional order placement.
- What you can do
- Wraps 236 Kiwoom Securities endpoints (217 REST plus 19 WebSocket) so an assistant can query Korean market quotes, charts, account status, rankings, real-time streaming, and saved condition searches in conversation. Bundled skills cover stock research, portfolio review, P&L reports, market scans, and condition search. A separate trader variant adds order placement, which runs through pre-check, preview, and explicit confirmation before sending.
- When to use it
- Use it when you want an assistant to look up Korean stock quotes, charts, account holdings, rankings, or realized P&L, or to place Kiwoom orders after review. Choose the read-only plugin unless order entry is actually needed.
- Requirements
- Runs locally over stdio, launched automatically with uvx, so uv must be installed. It reuses kiwoom-cli credentials: appkey and secretkey stored in the OS keychain plus a token from kiwoom auth login. Without a keychain, inject KIWOOM_TOKEN and set KIWOOM_DOMAIN. Defaults to mock trading; production requires kiwoom config set domain prod.
Installation
In SourceWeft
- Open Kiwoom Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
kiwoom-plugin
키움증권 REST API 236종(217 REST + 19 WebSocket)을 Claude Code에 연결하는 플러그인 모음입니다.
시세·차트·계좌·순위·실시간 스트리밍을 대화로 조회하고, 원한다면 주문까지 넣을 수 있습니다.
설치
그다음 둘 중 하나만 고릅니다.
두 플러그인은 서로 대체하는 관계입니다. 같이 설치하면 같은 도구가 두 번 등록됩니다. 주문이 필요해지면
kiwoom을 제거하고kiwoom-trader를 설치하세요.
MCP 서버는 uvx로 자동 실행되므로 별도 설치가 없습니다. uv만 있으면 됩니다.
왜 두 개인가
kiwoom에는 주문 도구가 아예 등록되지 않습니다. 설정으로 끄는 것이 아니라 도구 목록에 존재하지 않으므로, 모델이 실수로도 주문을 낼 수 없습니다.
안전 여부를 대화 중이 아니라 설치 시점에 정하는 편이 낫다고 보았습니다.
인증
kiwoom-cli와 같은 자격증명을 씁니다. 이미 설정했다면 추가 작업이 없습니다.
기본값은 모의투자(mock) 입니다. 실거래로 바꾸려면 kiwoom config set domain prod.
키체인이 없는 환경 (컨테이너·CI)
OS 키체인을 읽을 수 없는 곳에서는 호스트에서 발급한 토큰을 주입합니다.
KIWOOM_TOKEN은 키체인 토큰보다 우선하며, 만료되면 다시 발급해 넣어야 합니다.
할 수 있는 것
kiwoom-trader를 설치했다면:
주문은 항상 사전점검 → 미리보기 → 확인 순서로 진행되며, 전송 전에 반드시 내용을 보여주고 승인을 받습니다.
포함된 스킬
안전 모델
- 조회 전용 플러그인에는 주문 도구가 등록되지 않습니다.
config set,auth login/logout같은 로컬 설정 변경은 어느 플러그인에서도 차단됩니다. 모델이 도메인을 실거래로 바꾸거나 토큰을 폐기할 수 없습니다.- 주문은
dry_run이 기본값입니다. 전송하려면 명시적으로 꺼야 합니다. - 멱등키(
client_order_id)로 재시도해도 중복 주문이 나가지 않습니다. - 모든 응답에
meta.env가 실려 있어 모의(mock)인지 실거래(prod)인지 항상 확인할 수 있습니다.
구성
이 저장소가 MCP 관련 전부를 담습니다 — 플러그인, 스킬, 그리고 MCP 서버 본체.
서버는 PyPI에 kiwoom-mcp로 게시되며, 플러그인이 uvx로 실행합니다. 안전장치(주문 확인, dry-run, 멱등키, envelope)는 kiwoom-cli의 것을 그대로 씁니다 — 서버는 kiwoom-cli를 감쌀 뿐 다시 구현하지 않습니다.
MCP 서버만 필요하면 플러그인 없이 직접 실행할 수 있습니다 (Claude Desktop, 다른 MCP 클라이언트 등):
면책
투자 판단과 그 결과는 사용자 본인의 책임입니다. 이 도구는 조회와 주문 실행을 도울 뿐 투자 조언을 하지 않습니다. 실거래 전에 반드시 모의투자로 충분히 검증하세요.
라이선스
Apache-2.0. kiwoom-cli는 별도의 소스 공개 라이선스를 따릅니다.
Source: README.md at commit 39fa9e5
Tools
0Version history
1- v0.1.2LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts