loading…
Search for a command to run...
loading…
Provides tools to search and retrieve detailed documentation for the Kiwoom REST API, including parameters, categories, and code examples. It enables LLMs to ge
Provides tools to search and retrieve detailed documentation for the Kiwoom REST API, including parameters, categories, and code examples. It enables LLMs to generate request snippets in multiple programming languages to facilitate financial trading API integration.
키움 REST API 문서를 검색하고 조회할 수 있는 MCP (Model Context Protocol) 서버입니다.
docker build -t kiwoom-api-server:latest .
docker run -d --name kiwoom-api-server \
-p 8082:8082 \
-e KIWOOM_DOCS_PATH=/app/kiwoom_api_docs.txt \
-v "$(pwd)/kiwoom_api_docs.txt:/app/kiwoom_api_docs.txt:ro" \
kiwoom-api-server:latest
# 헬스 체크
curl http://localhost:8082/health
# 서버 정보 확인
curl http://localhost:8082/
# 컨테이너 중지
docker stop kiwoom-api-server
# 컨테이너 삭제
docker rm kiwoom-api-server
저장소에 포함된 docker-compose.yml을 그대로 사용하면 현재 폴더의 kiwoom_api_docs.txt를 컨테이너에 읽기 전용으로 마운트합니다.
실행:
docker-compose up -d
| 변수명 | 기본값 | 설명 |
|---|---|---|
PORT |
8082 |
서버 포트 |
NODE_ENV |
production |
실행 환경 |
KIWOOM_DOCS_PATH |
./kiwoom_api_docs.txt |
API 문서 파일 경로 |
| 엔드포인트 | 메서드 | 설명 |
|---|---|---|
/ |
GET | 서버 정보 |
/sse |
GET | SSE MCP 엔드포인트 |
/message |
POST | MCP 메시지 엔드포인트 |
/health |
GET | 헬스 체크 |
Cline MCP 설정은 프로젝트 내부 파일이 아니라 WSL 쪽 VS Code 확장 전역 설정 파일에 저장됩니다.
~/.vscode-server/data/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json먼저 컨테이너를 실행한 뒤, 아래처럼 등록합니다.
{
"mcpServers": {
"kiwoom-api-server": {
"timeout": 60,
"type": "streamableHttp",
"url": "http://127.0.0.1:8082/sse"
}
}
}
이 저장소 작업에서는 위 WSL 전역 설정 파일도 동일한 값으로 수정했습니다.
Claude Desktop의 설정 파일에 다음을 추가:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"kiwoom-api": {
"url": "http://localhost:8082/sse"
}
}
}
Docker 컨테이너가 실행 중인 PC의 IP 주소가 192.168.1.100이라면:
{
"mcpServers": {
"kiwoom-api": {
"url": "http://192.168.1.100:8082/sse"
}
}
}
search_kiwoom_api: 키움 REST API 검색
query: 검색어 (필수)category: 카테고리 필터 (선택)subcategory: 중분류 필터 (선택)get_kiwoom_api_detail: 특정 API 상세 정보 조회
api_id: API ID (예: ka10001)list_kiwoom_apis: API 목록 조회
category: 카테고리 필터 (선택)limit: 결과 개수 제한 (기본값: 50)get_kiwoom_api_categories: 카테고리 목록 조회
get_kiwoom_request_example: 요청 예제 코드 생성
api_id: API IDlanguage: 프로그래밍 언어 (python, javascript, curl)# 의존성 설치
npm install
# 빌드
npm run build
# 실행
npm start
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"kiwoom-api-mcp-server": {
"command": "npx",
"args": []
}
}
}