Kiwoom Securities MCP Server

v0.52.6
io.github.ChunSam/kiwoom-mcp-server Checked 1 day ago Published 3 months ago

Read-only MCP server for the Kiwoom Securities REST API: market data, account inquiry, ISA tax tool

Values you need

VariableWhat it is
KIWOOM_APP_KEYrequired secret Kiwoom REST API app key (issued at openapi.kiwoom.com; VIRTUAL and REAL need separate keys)
KIWOOM_APP_SECRETrequired secret Kiwoom REST API app secret
KIWOOM_MODEoptional VIRTUAL (모의투자, mock trading) or REAL (실전투자, live account) Default: VIRTUAL
ISA_ENABLEDoptional Opt-in switch for the ISA tax-allowance tool (set true together with ISA_TYPE / ISA_OPENED_ON) Default: false

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add kiwoom-mcp-server -e 'KIWOOM_APP_KEY=<KIWOOM_APP_KEY>' -e 'KIWOOM_APP_SECRET=<KIWOOM_APP_SECRET>' -- npx -y kiwoom-mcp-server@0.52.6
Add to claude_desktop_config.json
{
  "mcpServers": {
    "kiwoom-mcp-server": {
      "args": [
        "-y",
        "kiwoom-mcp-server@0.52.6"
      ],
      "command": "npx",
      "env": {
        "KIWOOM_APP_KEY": "<KIWOOM_APP_KEY>",
        "KIWOOM_APP_SECRET": "<KIWOOM_APP_SECRET>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "kiwoom-mcp-server": {
      "args": [
        "-y",
        "kiwoom-mcp-server@0.52.6"
      ],
      "command": "npx",
      "env": {
        "KIWOOM_APP_KEY": "<KIWOOM_APP_KEY>",
        "KIWOOM_APP_SECRET": "<KIWOOM_APP_SECRET>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "KIWOOM_APP_KEY",
      "id": "kiwoom-app-key",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "KIWOOM_APP_SECRET",
      "id": "kiwoom-app-secret",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "kiwoom-mcp-server": {
      "args": [
        "-y",
        "kiwoom-mcp-server@0.52.6"
      ],
      "command": "npx",
      "env": {
        "KIWOOM_APP_KEY": "${input:kiwoom-app-key}",
        "KIWOOM_APP_SECRET": "${input:kiwoom-app-secret}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.kiwoom-mcp-server]
command = "npx"
args = ["-y", "kiwoom-mcp-server@0.52.6"]
env = { "KIWOOM_APP_KEY" = "<KIWOOM_APP_KEY>", "KIWOOM_APP_SECRET" = "<KIWOOM_APP_SECRET>" }

For AI agents

  1. Ask the user for: KIWOOM_APP_KEY, KIWOOM_APP_SECRET. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: ping, search_stock, get_stock_price, get_stock_quotes, get_stock_chart, get_daily_trading, get_orderbook, get_orderbook_rank, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json