opendart-mcp-server
README.md
# π°π· OpenDART MCP Server
> AI μμ΄μ νΈλ₯Ό μν νκ΅ κΈ°μ
곡μ λ°μ΄ν° β powered by DART




**DART(μ μ곡μμμ€ν
) λ°μ΄ν°λ₯Ό AIμκ² λκΈ°λ κ°μ₯ μ¬μ΄ λ°©λ².**
Claude Desktop, Cursor λ± MCP μ§μ AIμκ² "μΌμ±μ μ μ¬λ¬΄μ ν 보μ¬μ€"λΌκ³ λ§νλ©΄ λ°λ‘ λ΅μ λ°μ μ μμ΅λλ€.
<!-- TODO: λ°λͺ¨ GIF μΆκ° -->
<!--  -->
---
## β‘ λΉ λ₯Έ μμ
### npmμΌλ‘ λ°λ‘ μ¬μ© (κΆμ₯)
```bash
npx opendart-mcp
```
> Claude Desktopμ΄λ Cursor μ€μ μμ λ°λ‘ μ¬μ©ν μ μμ΅λλ€. κΈ°μ
κ³ μ λ²νΈλ μ΅μ΄ μ€ν μ μλ λ€μ΄λ‘λλ©λλ€.
### μμ€ μ½λμμ μ€μΉ
```bash
git clone https://github.com/SongHyojun0228/opendart-mcp-server.git
cd opendart-mcp-server
npm install
npm run build && npm start
```
> DART API ν€λ [OpenDART](https://opendart.fss.or.kr) μμ 무λ£λ‘ λ°κΈλ°μ μ μμ΅λλ€ (μΌ 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 ν€ λ°κΈ
1. [OpenDART](https://opendart.fss.or.kr) μ μ
2. νμκ°μ
ν λ‘κ·ΈμΈ
3. **μΈμ¦ν€ μ μ²** β API ν€ λ°κΈ (μ¦μ λ°κΈ, 무λ£)
4. λ°κΈλ°μ ν€λ₯Ό 볡μ¬ν΄λμΈμ
### 2. νλ‘μ νΈ μ€μΉ
```bash
git clone https://github.com/SongHyojun0228/opendart-mcp-server.git
cd opendart-mcp-server
npm install
```
### 3. νκ²½λ³μ μ€μ
```bash
cp .env.example .env
```
`.env` νμΌμ μ΄μ΄μ λ°κΈλ°μ API ν€λ₯Ό μ
λ ₯:
```
DART_API_KEY=μ¬κΈ°μ_λ°κΈλ°μ_ν€_μ
λ ₯
```
### 4. κΈ°μ
κ³ μ λ²νΈ λ°μ΄ν° λ€μ΄λ‘λ (μ ν)
```bash
npm run update-corp-codes
```
> μλ² μ΅μ΄ μ€ν μ μλμΌλ‘ λ€μ΄λ‘λλλ―λ‘ μ΄ λ¨κ³λ μ νμ¬νμ
λλ€. μλμΌλ‘ μ
λ°μ΄νΈνκ³ μΆμ λλ§ μ€ννμΈμ.
### 5. λΉλ & μ€ν
```bash
npm run build
npm start
```
---
## βοΈ AI ν΄λΌμ΄μΈνΈ μ€μ
### Claude Desktop (npx β κΆμ₯)
`claude_desktop_config.json`μ μΆκ°:
```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>
```json
{
"mcpServers": {
"opendart": {
"command": "node",
"args": ["/μ λκ²½λ‘/opendart-mcp-server/dist/src/index.js"],
"env": {
"DART_API_KEY": "λ°κΈλ°μ_ν€"
}
}
}
}
```
</details>
### Cursor
Cursor Settings β MCP β Add Server:
```json
{
"mcpServers": {
"opendart": {
"command": "npx",
"args": ["-y", "opendart-mcp"],
"env": {
"DART_API_KEY": "λ°κΈλ°μ_ν€"
}
}
}
}
```
### MCP Inspector (λλ²κΉ
)
```bash
npx @modelcontextprotocol/inspector node dist/src/index.js
```
---
## π οΈ κ°λ° μ°Έμ¬
```bash
# λΉλ
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 # κΈμ‘ ν¬λ§€ν
ν¬νΌ
```
### κΈ°μ¬ λ°©λ²
1. Fork β λΈλμΉ μμ± β μ»€λ° β PR
2. μ»€λ° λ©μμ§: `feat:`, `fix:`, `docs:` λ± [Conventional Commits](https://www.conventionalcommits.org) μ€νμΌ
3. `console.log()` μ¬μ© κΈμ§ (stdio μ μ‘ μ€μΌ λ°©μ§). `console.error()`λ§ μ¬μ©
---
## π λΌμ΄μ μ€
[MIT](LICENSE) β μμ λ‘κ² μ¬μ©, μμ , λ°°ν¬ν μ μμ΅λλ€.
μ΄ νλ‘μ νΈλ κΈμ΅κ°λ
μ [DART OpenAPI](https://opendart.fss.or.kr)μ κ³΅κ° λ°μ΄ν°λ₯Ό μ¬μ©ν©λλ€.
---
## English
### OpenDART MCP Server
> Korean corporate disclosure data for AI agents β powered by DART
MCP server that connects Korea's [DART](https://opendart.fss.or.kr) (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`:
```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](https://opendart.fss.or.kr). Corp code data is automatically downloaded on first run.
### License
MIT
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo issues