kr-dart-mcp
An MCP server for Korean DART filings — company lookup, disclosures, financials and major shareholders in one tool call.
Give Claude Desktop, Claude Code, Cursor or any MCP-compatible agent the four questions an analyst asks about a Korean listed company: what is its DART code, what did it just file, how is it doing, and who owns it.
DART (Data Analysis, Retrieval and Transfer System) is the Financial Supervisory Service's filing system — the Korean equivalent of EDGAR. Every KOSPI, KOSDAQ and KONEX company files there, and OpenDART exposes it as a free JSON API. This server wraps that API in four small tools that return compact, agent-friendly JSON.
한국어 요약은 아래에 있습니다.
Why not call the OpenDART API directly?
| Raw OpenDART | kr-dart-mcp | |
|---|---|---|
| Auth | API key in every query string | key read once from DART_API_KEY |
| Company names | you must already know the 8-digit corp_code |
search_company resolves name · ticker · code |
| Financials | 200+ XBRL rows per filing | 7 headline accounts, KRW integers, prior period alongside |
| Amounts | "300,870,903,000,000" strings |
300870903000000 ints |
| Errors | {"status":"013"} with no context |
{"error": ..., "source": "opendart"} + what to do next |
| Context cost | one filing can be tens of thousands of tokens | one compact record per item, long text trimmed |
Quick start
# Run without installing (once released)
uvx kr-dart-mcp
# or install it into a project
uv add kr-dart-mcp
You need a free OpenDART key: https://opendart.fss.or.kr → 오픈API → 인증키 신청. The key is a 40-character string; the same account covers all OpenDART endpoints.
export DART_API_KEY="your-40-character-key"
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or
%APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"dart": {
"command": "uvx",
"args": ["kr-dart-mcp"],
"env": {
"DART_API_KEY": "your-40-character-key"
}
}
}
}
Cursor
~/.cursor/mcp.json — same mcpServers block as above.
Claude Code
claude mcp add dart --env DART_API_KEY=your-key -- uvx kr-dart-mcp
Tools
search_company
search_company(query="삼성전자", limit=5)
Accepts a Korean or English name, a 6-digit ticker (005930) or an 8-digit DART code
(00126380). Matching ignores whitespace and legal suffixes, so 엔씨소프트, (주)엔씨소프트
and 036570 all resolve to the same company. Listed companies rank above unlisted ones.
{
"query": "005930",
"source": "opendart",
"count": 1,
"results": [
{
"corp_code": "00126380",
"corp_name": "삼성전자",
"corp_eng_name": "Samsung Electronics Co., Ltd.",
"stock_code": "005930"
}
]
}
The corporation table behind this tool (corpCode.xml, about 120,000 companies) is
distributed as a ZIP; it is downloaded once and cached for 7 days at
~/.cache/kr-dart-mcp/ (override with DART_MCP_CACHE_DIR). After that, lookups work even
without a key.
list_disclosures
list_disclosures(company="005930", days=30, disclosure_type="periodic", limit=10)
Filing types: periodic (정기공시), major (주요사항보고), issuance (발행공시),
ownership (지분공시), other (기타공시), audit (외부감사관련), fund, asset-backed,
exchange, ftc. Omit the argument for all types.
{
"corp_code": "00126380",
"source": "opendart",
"period": "2026-02-09..2026-03-11",
"disclosure_type": "A",
"total_count": 2,
"count": 2,
"omitted": 0,
"disclosures": [
{
"date": "2026-03-10",
"report": "사업보고서 (2025.12)",
"filer": "삼성전자",
"rcept_no": "20260310002820",
"url": "https://dart.fss.or.kr/dsaf001/main.do?rcpNo=20260310002820"
},
{
"date": "2026-03-09",
"report": "주식등의대량보유상황보고서(약식)",
"filer": "국민연금공단",
"rcept_no": "20260309000111",
"url": "https://dart.fss.or.kr/dsaf001/main.do?rcpNo=20260309000111",
"note": "유"
}
]
}
get_financial_summary
get_financial_summary(company="005930", year=2025, report="annual", consolidated=True)
Returns revenue, operating profit, net income, total assets, liabilities, equity and cash,
matched by XBRL standard account id (ifrs-full_Revenue, …) with a Korean-name fallback —
account names change between years, ids do not. If consolidated statements are not filed,
the separate ones are used and fallback says so.
{
"corp_code": "00126380",
"source": "opendart",
"year": 2025,
"report": "annual",
"fs_div": "CFS",
"account_count": 229,
"accounts": [
{
"account": "영업수익",
"current": 300870903000000,
"previous": 258935494000000,
"unit": "KRW",
"statement": "손익계산서"
},
{
"account": "영업이익",
"current": 32725961000000,
"previous": 6566976000000,
"unit": "KRW",
"statement": "손익계산서"
},
{
"account": "당기순이익",
"current": 34451351000000,
"previous": 15487100000000,
"unit": "KRW",
"statement": "손익계산서"
},
{
"account": "자산총계",
"current": 514531948000000,
"previous": 455905980000000,
"unit": "KRW",
"statement": "재무상태표"
},
{
"account": "자본총계",
"current": 402192044000000,
"previous": 360543624000000,
"unit": "KRW",
"statement": "재무상태표"
}
]
}
account_count is how many XBRL rows the filing contained (229 for this example); the
accounts list holds only the headline items that were found.
get_major_shareholders
get_major_shareholders(company="005930", year=2025, report="annual", limit=20)
Largest shareholder and related parties with shares and stake at the start and end of the
period, sorted by closing stake and capped by limit.
{
"corp_code": "00126380",
"source": "opendart",
"year": 2025,
"report": "annual",
"period_end": "2025-12-31",
"count": 2,
"omitted": 0,
"shareholders": [
{
"name": "이재용",
"relation": "최대주주 본인",
"stock_kind": "보통주",
"shares_start": 1266991133,
"pct_start": 21.22,
"shares_end": 1266991133,
"pct_end": 21.2,
"note": "특별관계자 포함"
},
{
"name": "삼성생명보험",
"relation": "계열회사",
"stock_kind": "보통주",
"shares_start": 508157148,
"pct_start": 8.51,
"shares_end": 508157148,
"pct_end": 8.51
}
]
}
Design notes
- Errors never raise. A missing key, a bad company name or an upstream
status: 010comes back as{"error": "...", "source": "opendart"}, plus ahintwhen there is an action to take. An agent can correct itself instead of losing the turn. - Empty is not an error. OpenDART answers
013(조회된 데이터가 없습니다) for a company with no data for that period; the tool returns an empty list with a hint. - Token-lean by construction. Amounts are ints, dates are ISO, empty fields are dropped,
free-text fields (
report_nm,rm) are whitespace-collapsed and trimmed, and list lengths are capped with anomittedcount. - Codes are strings. Tickers like
005930keep their leading zeros; nothing is parsed as an int except monetary amounts. - The API key is never echoed. Request failures report the endpoint, HTTP status and
exception type, not the URL that carries
crtfc_key.
Development
git clone https://github.com/partrita/kr-dart-mcp
cd kr-dart-mcp
uv venv && source .venv/bin/activate
uv pip install -e ".[dev]"
ruff check .
pytest # no network: the OpenDART HTTP layer is faked
An optional live check runs the real API and is skipped unless a key is present:
DART_API_KEY=... pytest -m live
한국어 요약
한국 상장사의 DART 공시를 조회하는 MCP 서버입니다. Claude Desktop·Claude Code·Cursor 같은 MCP 클라이언트에 연결하면 네 가지를 바로 물어볼 수 있습니다.
| 툴 | 하는 일 |
|---|---|
search_company |
회사명·종목코드(6자리)·DART 고유번호(8자리)로 회사를 찾습니다 |
list_disclosures |
최근 공시를 유형별로 조회합니다 (정기·주요사항·발행·지분 등) |
get_financial_summary |
매출·영업이익·순이익·자산·부채·자본·현금을 원 단위 정수로 돌려줍니다 |
get_major_shareholders |
최대주주와 특수관계인의 기초·기말 지분을 보여줍니다 |
opendart.fss.or.kr에서 무료 인증키를 발급받아
DART_API_KEY 환경변수로 넣어 주세요. 키가 없어도 회사명 검색은 캐시된 목록으로 동작하며,
나머지 툴은 무엇을 해야 하는지 알려 주는 오류를 돌려줍니다.
License
MIT
Metadata
Release files for kr-dart-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kr_dart_mcp-0.1.0.tar.gz | 19.4 kB | With provenance | Details for kr_dart_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kr_dart_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for kr_dart_mcp-0.1.0-py3-none-any.whl |
Total release size: 37.0 kB
Release files / kr_dart_mcp-0.1.0.tar.gz
| Download URL | kr_dart_mcp-0.1.0.tar.gz |
|---|---|
| Size | 19.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f4a5411c973414ba7071e270c71353581b233207891f52a78dcff635f4287a8
|
|
BLAKE2b-256 checksum How to use checksums |
0845dd633a96c3d7c05678b4680d57c05fc98279e1d7e7e20d7c1869633376bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logRelease files / kr_dart_mcp-0.1.0-py3-none-any.whl
| Download URL | kr_dart_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b54066d3aa7cd848aa01bc0db80ef50cf9d47d622e14e642e8e7d3cdb4667df7
|
|
BLAKE2b-256 checksum How to use checksums |
968f2c3b67c04a5fbe4f4ce7e43a87ab17871345d196b9d01af28b4b62ebf949
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logSecurity for kr-dart-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for kr_dart_mcp-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.