Skip to main content

MCP server exposing koreafilings.com's x402-paid DART summary API as a tool for Claude Desktop, Cursor, Continue, and other MCP clients.

Project description

koreafilings-mcp

MCP server that turns koreafilings.com into a callable toolset for Claude Desktop, Cursor, Continue, and any other MCP client. Built on top of the koreafilings Python SDK; the underlying HTTP + x402 + EIP-3009 flow is delegated entirely to the SDK so this package is just the protocol bridge.

Once installed, your agent can resolve a Korean company by name, browse the market-wide disclosure feed for free, and pay per call to fetch AI-generated English summaries — all without leaving the chat.

Tools

tool payment what it does
get_pricing free Live pricing descriptor — wallet, network, USDC contract, per-endpoint price.
find_company free Trigram fuzzy search of 3,961 KRX-listed companies by Korean name, English name, or ticker. Returns ticker, corp_code, name_kr, name_en, market.
list_recent_filings free Market-wide recent DART filings (metadata only — title, date, filer, ticker). Use to scan before paying for summaries.
get_recent_filings 0.005 × limit USDC Batch AI summaries for one ticker. Price is declared dynamically in the 402 (limit=5 → 0.025 USDC). Includes the on-chain settlement tx hash.
get_disclosure_summary 0.005 USDC AI summary for a single DART receipt number when the agent already has one.

The natural agent flow is find_companyget_recent_filings (one free call to resolve a name to a ticker, one paid call to fetch summaries for that ticker). get_disclosure_summary is the direct path when the agent already has a 14-digit receipt number from somewhere else.

Quickstart — Claude Desktop

  1. Install (requires uv):

    uv tool install koreafilings-mcp
    
  2. Open Claude Desktop → Settings → Developer → Edit Config, and add:

    {
      "mcpServers": {
        "koreafilings": {
          "command": "uv",
          "args": ["tool", "run", "koreafilings-mcp"],
          "env": {
            "KOREAFILINGS_PRIVATE_KEY": "0x_your_burner_wallet_key",
            "KOREAFILINGS_NETWORK": "base"
          }
        }
      }
    }
    

    Use a fresh burner wallet funded only with the USDC you intend to spend — see "Security notes" below.

  3. Restart Claude Desktop. Five koreafilings tools should now appear in the 🔧 menu.

  4. Ask: "What did Samsung Electronics file at DART recently?" Claude calls find_company("Samsung Electronics"), picks 005930 from the matches, then calls get_recent_filings("005930", limit=5). The MCP server signs an EIP-3009 authorization with your key, pays 0.025 USDC on Base, and returns five English summaries with importance scores plus a BaseScan tx link.

Quickstart — Cursor / Continue

The MCP server speaks stdio so any client supporting the MCP protocol will pick up the same five tools. Point your client at:

uv tool run koreafilings-mcp

with the same two environment variables (KOREAFILINGS_PRIVATE_KEY, KOREAFILINGS_NETWORK=base).

Configuration

env var required default notes
KOREAFILINGS_PRIVATE_KEY for paid tools 0x-prefixed 32-byte hex; signs the x402 payment locally. The key never leaves the MCP server process.
KOREAFILINGS_NETWORK no base-sepolia base-sepolia (testnet) or base (mainnet). Must match the server's advertised 402 response or the SDK aborts before signing.
KOREAFILINGS_BASE_URL no https://api.koreafilings.com Override for self-hosted deployments.

Free tools (get_pricing, find_company, list_recent_filings) work without a private key — useful to confirm the network and wallet, or to explore the feed, before funding a payer.

Honest scope

Today's summaries are generated from filing metadata (title, date, filer, DART flag) only. That gives event type, importance score, and ticker / sector tags reliably — first-pass screening — but the LLM honestly says "details are in the filing body" for quantitative events like rights offerings, debt issuance, or supply contracts instead of fabricating numbers.

v1.2 (planned) introduces a get_disclosure_deep tool at ~0.020 USDC that pulls the per-filing XBRL via DART's /document.xml endpoint and template-extracts amounts, dilution %, counterparty, and dates into a structured keyFacts field. Existing tools stay metadata-only at 0.005 USDC so callers pick depth at call time. See the roadmap.

Local development

git clone https://github.com/OldTemple91/korea-filings-api.git
cd korea-filings-api
uv venv mcp/.venv
source mcp/.venv/bin/activate
uv pip install -e mcp/
KOREAFILINGS_PRIVATE_KEY=0x... KOREAFILINGS_NETWORK=base koreafilings-mcp
# stdio; pipe to an MCP client

Inspect interactively with the official MCP Inspector:

npx @modelcontextprotocol/inspector uv run koreafilings-mcp

Security notes

  • The MCP server is trusted with a wallet private key — only ever use a fresh burner wallet funded with the USDC you intend to spend. Same threat model as any per-call merchant integration.
  • On Base Sepolia all amounts are testnet value. On base mainnet each paid tool call moves real USDC.
  • The SDK signs locally; the key is not transmitted to koreafilings.com or to the facilitator. Only the signed authorization goes on the wire.
  • Each EIP-3009 authorization carries a fresh nonce. The facilitator refuses replays.

Links

MIT-licensed.

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

koreafilings_mcp-0.2.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

koreafilings_mcp-0.2.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file koreafilings_mcp-0.2.1.tar.gz.

File metadata

  • Download URL: koreafilings_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for koreafilings_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 53d7cac6fa383835366de7e5e36cdcbfd23de61fc299924d54660c80c54efefa
MD5 541e5709c05fef8be47efc26a367375e
BLAKE2b-256 263579f1d0677803531af9892b34569bf2fcdc3c4abfe70aac7ff914f3825bf7

See more details on using hashes here.

File details

Details for the file koreafilings_mcp-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for koreafilings_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9fc9875a8fbb050470a4906a6c16409b061bb30f3de9c947d72e9a513e23f5fd
MD5 ec8cef51045874dbc7a14a8739ee5bea
BLAKE2b-256 25c190358ebd53423ad7ea2776c7201c3c641d85a8c4544437778e019d856efb

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