Skip to main content

KRX(한국거래소) Open API MCP Server - 주식, 채권, 파생상품, ETF/ETN/ELW, 지수, 일반상품, ESG 시세정보

Project description

OpenKRX MCP Server

한국거래소(KRX) Open API를 MCP(Model Context Protocol) 도구로 제공하는 서버입니다.

지원 API (31개)

카테고리 도구 수 내용
지수 (idx) 5 KRX/KOSPI/KOSDAQ/채권/파생상품 지수 일별시세
주식 (sto) 8 KOSPI/KOSDAQ/KONEX 일별매매정보 + 종목기본정보
ETP (etp) 3 ETF/ETN/ELW 일별매매정보
채권 (bon) 3 국채/일반채권/소액채권 일별매매정보
파생상품 (drv) 6 선물/옵션 일별매매정보 (KOSPI/KOSDAQ 주식선물·옵션 포함)
일반상품 (gen) 3 석유/금/배출권 시장 일별매매정보
ESG (esg) 3 SRI채권/ESG ETP/ESG 지수 정보

설치 및 사용

사전 준비

KRX Open API에서 회원가입 후 API 인증키를 발급받으세요.

Claude Desktop

claude_desktop_config.json에 추가:

{
  "mcpServers": {
    "openkrx": {
      "command": "uvx",
      "args": ["openkrx-mcp"],
      "env": {
        "KRX_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

Claude Code

claude mcp add openkrx -e KRX_API_KEY=<YOUR_API_KEY> -- uvx openkrx-mcp

직접 실행

# stdio (로컬)
KRX_API_KEY=<YOUR_API_KEY> uvx openkrx-mcp

# SSE (원격)
KRX_API_KEY=<YOUR_API_KEY> uvx openkrx-mcp --transport sse --port 8000

Docker

docker build -t openkrx-mcp .
docker run -e KRX_API_KEY=<YOUR_API_KEY> -p 8000:8000 openkrx-mcp

참고

  • 데이터는 2010년 이후 일별 데이터이며, 매일 오전 8시(KST)에 갱신됩니다.
  • 날짜 파라미터(basDd)는 YYYYMMDD 형식입니다.
  • API 호출 한도: 10,000건

라이선스

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openkrx_mcp-0.1.0.tar.gz (52.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openkrx_mcp-0.1.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file openkrx_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: openkrx_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 52.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for openkrx_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 554d353ecd80d6748aa6fe0ce9f58aa9943f0a74e0fa35d74658764775280729
MD5 1818716b279552848f6d8ca814c5944f
BLAKE2b-256 94298cbb7c6972490ac633d88a6a0290ac1b2f83ed96fd216715048c8015a3f1

See more details on using hashes here.

File details

Details for the file openkrx_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: openkrx_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for openkrx_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15c2a3e58e5bc1aab853f0a2801653fcc867e9b6d253b457c2b580bbee6d38a7
MD5 4a575ea6728710db4860ac1248d463d9
BLAKE2b-256 fe24fdd8d1644b0279c0e9a6dc765a52e293dda1170adcd4351a7c1f9912de29

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page