opendart-mcp-server
Enables AI agents to access Korean corporate disclosure data from DART, allowing natural language queries about companies, financial statements, and disclosures.
README
🇰🇷 OpenDART MCP Server
AI 에이전트를 위한 한국 기업 공시 데이터 — powered by DART
DART(전자공시시스템) 데이터를 AI에게 넘기는 가장 쉬운 방법.
Claude Desktop, Cursor 등 MCP 지원 AI에게 "삼성전자 재무제표 보여줘"라고 말하면 바로 답을 받을 수 있습니다.
<!-- TODO: 데모 GIF 추가 -->
<!--
-->
⚡ 빠른 시작
npm으로 바로 사용 (권장)
npx opendart-mcp
Claude Desktop이나 Cursor 설정에서 바로 사용할 수 있습니다. 기업 고유번호는 최초 실행 시 자동 다운로드됩니다.
소스 코드에서 설치
git clone https://github.com/SongHyojun0228/opendart-mcp-server.git
cd opendart-mcp-server
npm install
npm run build && npm start
DART API 키는 OpenDART 에서 무료로 발급받을 수 있습니다 (일 10,000건).
🔧 제공하는 도구
| 도구 | 설명 | 입력 예시 |
|---|---|---|
search_company |
기업 검색 및 기본 정보 조회 | "삼성전자", "005930" |
search_disclosures |
공시 보고서 검색 | company: "카카오", type: "annual" |
get_financial_summary |
주요 재무 데이터 조회 (매출, 영업이익, 순이익 등) | company: "삼성전자", year: 2024 |
compare_financials |
다중 회사 재무 비교 | companies: ["삼성전자", "SK하이닉스"] |
get_full_financial_statements |
전체 재무제표 상세 조회 | company: "카카오", statement_type: "IS" |
💬 사용 예시
"삼성전자 기본 정보 알려줘"
삼성전자(주) (SAMSUNG ELECTRONICS CO,.LTD)
────────────────────────────────────────
종목코드: 005930 (유가증권시장상장법인)
대표이사: 전영현, 노태문
법인구분: 유가증권시장상장법인
설립일: 1969-01-13
결산월: 12월
홈페이지: https://www.samsung.com/sec
주소: 경기도 수원시 영통구 삼성로 129 (매탄동)
"오늘 나온 공시 있어?"
전체 공시 검색 결과 (2026-01-14 ~ 2026-02-13)
────────────────────────────────────────
[기타공시] 투자판단관련주요경영사항 (2026-02-13)
https://dart.fss.or.kr/dsaf001/main.do?rcpNo=20260213801610
[주요사항] 주요사항보고서(유상증자결정) (2026-02-13)
https://dart.fss.or.kr/dsaf001/main.do?rcpNo=20260213000234
...
총 847건
"카카오 2023년 매출이랑 영업이익 알려줘"
카카오 2023년 연간 재무 요약 (연결)
────────────────────────────────────────
매출액 7조 5,570억원 (+11.2%)
영업이익 4,609억원 (-19.1%)
당기순이익 -1조 8,167억원 (-270.3%)
────────────────────────────────────────
자산총계 25조 1,800억원
부채총계 11조 3,214억원
자본총계 13조 8,586억원
────────────────────────────────────────
부채비율 81.7%
📦 상세 설치 가이드
1. DART API 키 발급
- OpenDART 접속
- 회원가입 후 로그인
- 인증키 신청 → API 키 발급 (즉시 발급, 무료)
- 발급받은 키를 복사해두세요
2. 프로젝트 설치
git clone https://github.com/SongHyojun0228/opendart-mcp-server.git
cd opendart-mcp-server
npm install
3. 환경변수 설정
cp .env.example .env
.env 파일을 열어서 발급받은 API 키를 입력:
DART_API_KEY=여기에_발급받은_키_입력
4. 기업 고유번호 데이터 다운로드 (선택)
npm run update-corp-codes
서버 최초 실행 시 자동으로 다운로드되므로 이 단계는 선택사항입니다. 수동으로 업데이트하고 싶을 때만 실행하세요.
5. 빌드 & 실행
npm run build
npm start
⚙️ AI 클라이언트 설정
Claude Desktop (npx — 권장)
claude_desktop_config.json에 추가:
{
"mcpServers": {
"opendart": {
"command": "npx",
"args": ["-y", "opendart-mcp"],
"env": {
"DART_API_KEY": "발급받은_키"
}
}
}
}
<details> <summary>설정 파일 위치</summary>
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
</details>
<details> <summary>소스 코드에서 직접 실행하는 경우</summary>
{
"mcpServers": {
"opendart": {
"command": "node",
"args": ["/절대경로/opendart-mcp-server/dist/src/index.js"],
"env": {
"DART_API_KEY": "발급받은_키"
}
}
}
}
</details>
Cursor
Cursor Settings → MCP → Add Server:
{
"mcpServers": {
"opendart": {
"command": "npx",
"args": ["-y", "opendart-mcp"],
"env": {
"DART_API_KEY": "발급받은_키"
}
}
}
}
MCP Inspector (디버깅)
npx @modelcontextprotocol/inspector node dist/src/index.js
🛠️ 개발 참여
# 빌드
npm run build
# 빌드 + 실행
npm run dev
# 기업 고유번호 업데이트
npm run update-corp-codes
# MCP Inspector로 테스트
npx @modelcontextprotocol/inspector node dist/src/index.js
프로젝트 구조
src/
├── index.ts # FastMCP 서버 진입점
├── tools/
│ ├── disclosure.ts # search_company, search_disclosures
│ └── financial.ts # get_financial_summary, compare_financials, get_full_financial_statements
└── utils/
├── dart-client.ts # DART API HTTP 클라이언트
├── corp-code.ts # 회사명/종목코드 → 고유번호 변환
└── formatters.ts # 금액 포매팅 헬퍼
기여 방법
- Fork → 브랜치 생성 → 커밋 → PR
- 커밋 메시지:
feat:,fix:,docs:등 Conventional Commits 스타일 console.log()사용 금지 (stdio 전송 오염 방지).console.error()만 사용
📄 라이선스
MIT — 자유롭게 사용, 수정, 배포할 수 있습니다.
이 프로젝트는 금융감독원 DART OpenAPI의 공개 데이터를 사용합니다.
English
OpenDART MCP Server
Korean corporate disclosure data for AI agents — powered by DART
MCP server that connects Korea's DART (Electronic Disclosure System) to AI agents like Claude, ChatGPT, and Cursor.
Ask your AI "What's Samsung Electronics' revenue?" and get real answers from official Korean financial filings.
Available Tools
| Tool | Description |
|---|---|
search_company |
Search Korean companies by name, stock code, or DART corp code |
search_disclosures |
Search disclosure filings with date/type filters |
get_financial_summary |
Get key financials: revenue, operating profit, net income, assets, liabilities |
compare_financials |
Compare financials across multiple companies side by side |
get_full_financial_statements |
Get full financial statements (BS, IS, CIS, CF, SCE) |
Quick Start
Add to your Claude Desktop claude_desktop_config.json:
{
"mcpServers": {
"opendart": {
"command": "npx",
"args": ["-y", "opendart-mcp"],
"env": {
"DART_API_KEY": "your_api_key"
}
}
}
}
Get your free DART API key at opendart.fss.or.kr. Corp code data is automatically downloaded on first run.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。