keonho-kim/OpenDart-mcp
If you are the rightful owner of OpenDart-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
OpenDart-MCP is a Python library that provides access to the DART API using the Model-Context Protocol (MCP) for efficient and standardized financial information retrieval and analysis.
find_company_by_name.py
Search for company information by name.
get_company_financial_stmt_list.py
Retrieve a list of a company's financial statements.
get_debt_summary.py
Retrieve a summary of a company's debt.
get_financial_stmt.py
Retrieve comprehensive financial statements for a single company.
get_investment_summary.py
Retrieve a summary of a company's investments in other entities.
get_people_summary.py
Retrieve information on a company's executives and employees.
get_stock_summary.py
Retrieve information on a company's stock issuance.
OpenDart-MCP
OpenDart-MCP๋ DART (Data Analysis, Retrieval and Transfer System) API๋ฅผ Model-Context Protocol (MCP) ๊ธฐ๋ฐ์ผ๋ก ์ ๊ณตํ์ฌ, ๋ค์ํ ๊ธ์ต ์ ๋ณด ์กฐํ ๋ฐ ๋ถ์ ๊ธฐ๋ฅ์ ๋ณด๋ค ํจ์จ์ ์ด๊ณ ํ์คํ๋ ๋ฐฉ์์ผ๋ก ์ ๊ทผํ ์ ์๋๋ก ๋๋ ํ์ด์ฌ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๋๋ค.
์ฃผ์ ๊ธฐ๋ฅ
OpenDart-MCP๋ MCP๋ฅผ ํตํด ๋ค์๊ณผ ๊ฐ์ ์์ธํ ๊ธ์ต ์ ๋ณด ์กฐํ ๋ฐ ๋ถ์ ๊ธฐ๋ฅ์ ์ ๊ณตํฉ๋๋ค:
- ๊ธฐ์ ๊ธฐ๋ณธ ์ ๋ณด ์กฐํ: MCP ์ธํฐํ์ด์ค๋ฅผ ํตํด ํน์ ํ์ฌ ์ด๋ฆ์ด๋ ์ฝ๋๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ๊ธฐ์ ์ ์์ธ ๊ธฐ๋ณธ ์ ๋ณด(ํ์ฌ๋ช , ์๋ฌธ๋ช , ์ข ๋ชฉ์ฝ๋, ๋ํ์๋ช , ๋ฒ์ธ๊ตฌ๋ถ, ๋ฒ์ธ๋ฑ๋ก๋ฒํธ, ์ฌ์ ์๋ฑ๋ก๋ฒํธ, ์ฃผ์, ํํ์ด์ง, IRํํ์ด์ง, ์ ํ๋ฒํธ, ํฉ์ค๋ฒํธ, ์ค๋ฆฝ์ผ, ๊ฒฐ์ฐ์ ๋ฑ)๋ฅผ ์ ์ํ๊ฒ ์กฐํํฉ๋๋ค.
- ๋จ์ผ ํ์ฌ ์ ์ฒด ์ฌ๋ฌด์ ํ ์กฐํ: MCP๋ฅผ ์ด์ฉํ์ฌ ํน์ ๊ธฐ์ ์ ํน์ ์ฌ์ ์ฐ๋, ๋ณด๊ณ ์ ์ข ๋ฅ(1๋ถ๊ธฐ๋ณด๊ณ ์, ๋ฐ๊ธฐ๋ณด๊ณ ์, 3๋ถ๊ธฐ๋ณด๊ณ ์, ์ฌ์ ๋ณด๊ณ ์)์ ํด๋นํ๋ ์๋ณธ ์ฌ๋ฌด์ ํ(๊ฐ๋ณ/์ฐ๊ฒฐ, XBRL ํ์ค ๊ณ์ ๊ณผ๋ชฉ ์ฒด๊ณ)๋ฅผ ์์ฒญํ๊ณ , JSON ํํ๋ก ๊ฐ๊ณต๋ ์ฌ๋ฌด์ํํ, ์์ต๊ณ์ฐ์, ํ๊ธํ๋ฆํ ๋ฑ์ ๋ฐ์ดํฐ๋ฅผ ์ ๊ณต๋ฐ์ต๋๋ค. (IFRS, GAAP ๋ชจ๋ ์ง์ ๊ฐ๋ฅ)
- ์ฌ๋ฌด์ ํ ๋ชฉ๋ก ์กฐํ: MCP๋ฅผ ํตํด ํน์ ๊ธฐ์ ์ด ๊ณต์ํ ๊ณผ๊ฑฐ ์ฌ๋ฌด์ ํ์ ๋ชฉ๋ก์ ์ฐ๋๋ณ, ๋ถ๊ธฐ๋ณ๋ก ์์ฝ๊ฒ ๊ฐ์ ธ์ฌ ์ ์์ผ๋ฉฐ, ๊ฐ ์ฌ๋ฌด์ ํ์ ์์ธ ์กฐํ๋ก ์ด์ด์ง๋ ์ฐ๊ฒฐ๊ณ ๋ฆฌ๋ฅผ ์ ๊ณตํฉ๋๋ค.
- ๋ถ์ฑ ์ด๊ด ํํฉ ์กฐํ: MCP๋ฅผ ํ์ฉํ์ฌ ๊ธฐ์ ์ ์ต๊ทผ ์ฌ์ ์ฐ๋ ๊ธฐ์ค ๋ถ์ฑ ์ด๊ด ํํฉ (์ ๋๋ถ์ฑ, ๋น์ ๋๋ถ์ฑ์ ์์ธ ํญ๋ชฉ ๋ฐ ๊ธ์ก)์ ์ ์ํ๊ฒ ํ์ ํ์ฌ ์ฌ๋ฌด ๊ฑด์ ์ฑ ๋ถ์์ ํ์ฉํฉ๋๋ค.
- ํ๋ฒ์ธ ์ถ์ ํํฉ ์กฐํ: MCP๋ฅผ ํตํด ํน์ ๊ธฐ์ ์ ํ ๋ฒ์ธ์ ๋ํ ์ถ์ ํํฉ (์ถ์ ๋์ ํ์ฌ๋ช , ์ถ์ ๋ชฉ์ , ์ต์ด์ทจ๋์ผ์, ์ต์ด์ทจ๋๊ธ์ก, ๊ธฐ์ด ๋ฐ ๊ธฐ๋ง ์ง๋ถ์จ, ์ฅ๋ถ๊ฐ์ก ๋ฑ) ์ ๋ณด๋ฅผ ์์ธํ๊ฒ ์กฐํํ์ฌ ๊ธฐ์ ์ ํฌ์ ํฌํธํด๋ฆฌ์ค ๋ฐ ๊ด๊ณ์ฌ ํํฉ์ ๋ถ์ํฉ๋๋ค.
- ์์ ๋ฐ ์ง์ ํํฉ ์กฐํ: MCP ์ธํฐํ์ด์ค๋ฅผ ํตํด ๊ธฐ์ ์ ๋ฑ๊ธฐ์์ ๋ฐ ๋ฏธ๋ฑ๊ธฐ์์ ํํฉ(์ฑ๋ช , ์๋ ์์ผ, ์ง์, ๋ฑ๊ธฐ/๋ฏธ๋ฑ๊ธฐ ๊ตฌ๋ถ, ์ฌ์ง๊ธฐ๊ฐ ๋ฑ)๊ณผ ์ง์ ํํฉ(์ง์ ์, ํ๊ท ๊ทผ์์ฐ์, ์ฐ๊ฐ ๊ธ์ฌ์ด์ก, 1์ธ ํ๊ท ๊ธ์ฌ์ก ๋ฑ, ์ฌ์ ๋ถ๋ฌธ๋ณ/์ฑ๋ณ ์์ธ ์ ๋ณด ํฌํจ)์ ์กฐํํ์ฌ ๊ธฐ์ ์ ์ธ๋ ฅ ๊ตฌ์กฐ ๋ฐ ์ด์ ์ํ๋ฅผ ํ์ ํฉ๋๋ค.
- ์ฃผ์ ์ด์ ํํฉ ์กฐํ: MCP๋ฅผ ํตํด ๊ธฐ์ ์ด ๋ฐํํ ์ฃผ์์ ์ด์, ๋ณดํต์ฃผ/์ฐ์ ์ฃผ ๊ตฌ๋ถ, ์ ํต ์ฃผ์ ์, ์๊ธฐ์ฃผ์ ๋ณด์ ํํฉ ๋ฑ ์ฃผ์ ๊ด๋ จ ํต์ฌ ์ ๋ณด๋ฅผ ์ ๊ณต๋ฐ์ ์ง๋ถ ๊ตฌ์กฐ ๋ฐ ์์ฅ ์ ๋์ฑ ๋ถ์์ ํ์ฉํฉ๋๋ค.
์ ๊ณต ๋๊ตฌ ๋ชฉ๋ก (src/dart_mcp/tools)
find_company_by_name.py
: ํ์ฌ ์ด๋ฆ์ผ๋ก ํ์ฌ ์ ๋ณด ๊ฒ์get_company_financial_stmt_list.py
: ํ์ฌ์ ์ฌ๋ฌด์ ํ ๋ชฉ๋ก ์กฐํget_debt_summary.py
: ๋ถ์ฑ ์ด๊ด ํํฉ ์กฐํget_financial_stmt.py
: ๋จ์ผํ์ฌ ์ ์ฒด ์ฌ๋ฌด์ ํ ์กฐํget_investment_summary.py
: ํ๋ฒ์ธ ์ถ์ ํํฉ ์กฐํget_people_summary.py
: ์์ ๋ฐ ์ง์ ํํฉ ์กฐํget_stock_summary.py
: ์ฃผ์ ์ด์ ํํฉ ์กฐํ
MCP ์ค์ ๊ฐ์ด๋
OpenDart-MCP๋ฅผ Claude Desktop์์ ์ฌ์ฉํ๊ธฐ ์ํ ๋จ๊ณ๋ณ ์ค์ ๋ฐฉ๋ฒ์ ๋๋ค.
1. ์ฌ์ ์ค๋น์ฌํญ
1.1 DART API ํค ๋ฐ๊ธ
- DART ์ ์๊ณต์์์คํ ์ ์
- ์ฐ์๋จ '์คํAPI' ํด๋ฆญ
- 'API ์ ์ฒญ' โ '๊ฐ๋ฐ์ ๋ฑ๋ก' ์งํ
- ๊ฐ์ธ์ ๋ณด ์ ๋ ฅ ํ API ํค ๋ฐ๊ธ (์ด๋ฉ์ผ๋ก ์ ์ก๋จ)
- ๋ฐ๊ธ๋ฐ์ API ํค๋ฅผ ๋ฉ๋ชจ์ฅ์ ์ ์ฅํด ๋์ธ์
1.2 Docker ์ค์น
- Windows: Docker Desktop for Windows ๋ค์ด๋ก๋ ๋ฐ ์ค์น
- macOS: Docker Desktop for Mac ๋ค์ด๋ก๋ ๋ฐ ์ค์น
- Linux: ๋ฐฐํฌํ์ ๋ง๋ Docker ์ค์น ๊ฐ์ด๋ ์ฐธ์กฐ
2. Docker ์ด๋ฏธ์ง ๋น๋
# 1. ๊นํ๋ธ ๋ณต์ฌํ๊ธฐ
git clone https://github.com/keonho-kim/OpenDart-mcp.git
# 1. ํ๋ก์ ํธ ํด๋๋ก ์ด๋
cd OpenDart-mcp
# 2. Docker ์ด๋ฏธ์ง ๋น๋
docker build -t opendart-mcp .
์ฐธ๊ณ : ๋น๋ ๊ณผ์ ์ ๋ช ๋ถ ์ ๋ ์์๋ ์ ์์ต๋๋ค.
3. Claude Desktop ์ค์
3.1 ์ค์ ํ์ผ ์ฐพ๊ธฐ
์ด์์ฒด์ ๋ณ Claude Desktop ์ค์ ํ์ผ ์์น:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
3.2 ์ค์ ํ์ผ ์์
- ์ ๊ฒฝ๋ก์ ์ค์ ํ์ผ์ ํ ์คํธ ์๋ํฐ๋ก ์ด๊ธฐ (ํ์ผ์ด ์๋ค๋ฉด ์๋ก ์์ฑ)
- ๋ค์ ๋ด์ฉ์ ์ถ๊ฐํ๊ฑฐ๋ ๊ธฐ์กด ๋ด์ฉ์ ์์ :
{
"mcpServers": {
"opendart-mcp": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--net=host",
"-e",
"DART_API_KEY=<PUT_YOUR_DART_API_KEY>",
"opendart-mcp"
]
}
}
}
<PUT_YOUR_DART_API_KEY>
๋ถ๋ถ์ 1๋จ๊ณ์์ ๋ฐ๊ธ๋ฐ์ ์ค์ API ํค๋ก ๊ต์ฒด- ์์:
"DART_API_KEY=1234567890abcdef1234567890abcdef12345678"
- ์์:
3.3 ์ค์ ํ์ผ ์์ (์์ฑ๋ ํํ)
{
"mcpServers": {
"opendart-mcp": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--net=host",
"-e",
"DART_API_KEY=1234567890abcdef1234567890abcdef12345678",
"opendart-mcp"
]
}
}
}
4. Claude Desktop ์ฌ์์
์ค์ ํ์ผ์ ์ ์ฅํ ํ Claude Desktop์ ์์ ํ ์ข ๋ฃํ๊ณ ๋ค์ ์คํํ์ธ์.
5. ์ฌ์ฉ ํ์ธ
Claude Desktop์์ ๋ค์๊ณผ ๊ฐ์ด ํ ์คํธํด๋ณด์ธ์:
์ผ์ฑ์ ์์ 2023๋
์ฌ์
๋ณด๊ณ ์๋ฅผ ์กฐํํด์ฃผ์ธ์.
๋ฌธ์ ํด๊ฒฐ
Docker ๊ด๋ จ ์ค๋ฅ
- Docker๊ฐ ์คํ ์ค์ธ์ง ํ์ธํ์ธ์
- Docker Desktop์ ๊ด๋ฆฌ์ ๊ถํ์ผ๋ก ์คํํด๋ณด์ธ์
์ค์ ํ์ผ ๊ด๋ จ ์ค๋ฅ
- JSON ๋ฌธ๋ฒ์ด ์ฌ๋ฐ๋ฅธ์ง ํ์ธํ์ธ์ (์ผํ, ๋ฐ์ดํ ๋ฑ)
- ์ค์ ํ์ผ ๊ฒฝ๋ก๊ฐ ์ ํํ์ง ํ์ธํ์ธ์