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.1.tar.gz (49.7 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.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: openkrx_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 49.7 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.1.tar.gz
Algorithm Hash digest
SHA256 6588ae17c5f568b6a75dfe1e2edca2c19064467a04616487f83367fa3d7fd534
MD5 a1a73cb0403d46c9c122e2e5518fd2e7
BLAKE2b-256 b25c884bdac1f75412d58a6ced2f6be5118e33dee3bb6bf88cc3afa1042937bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openkrx_mcp-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 91093abf6931364e54c571f19b08884321c1ecb44e2ff0694e371d53438447c8
MD5 93855054b9f2d0c5e33ef222fb225668
BLAKE2b-256 7ed994bb73f794f5a590a96550fecb0ca603ede4f2274b33b2352e868d793021

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