korea-stock-mcp MCP Server
MCP server for korea stock
korea-stock-mcp scores 71 (Good), licensed ISC and written in TypeScript. It can be reached as a remote MCP endpoint. It does not declare tools yet. Filed under Finance. GitHub shows 193 stars. Package registries report about 850 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
71 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: isc.
License, quality and maintenance
Quality: Grade C
55/100 for listing completeness. Lost points: no listed tools, short summary, no docs link.
How quality is graded
Where the 71 comes from
22 + 20 + 11 + 10 + 4 + 4 = 71. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 11 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 4 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "jjlabsio-korea-stock-mcp": { "command": "npx", "args": [ "-y", "korea-stock-mcp@1.1.4" ], "env": { "DART_API_KEY": "YOUR_DART_API_KEY", "KRX_API_KEY": "YOUR_KRX_API_KEY" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
DART_API_KEYSecret | Required | DART API key for the service |
KRX_API_KEYSecret | Required | KRX API key for the service |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
Korea Stock MCP Server
๐ฐ๐ท ํ๊ตญ์ด | ๐บ๐ธ English
๐ Korea Stock MCP๊ฐ ์คํ์์ค MCP์์ ํ ๋จ๊ณ ๋ ๋์๊ฐ๋๋ค. ์ ํํ ํ๊ตญ ์ฃผ์ ๋ฐ์ดํฐ๋ฅผ ๋ฐํ์ผ๋ก, AI๊ฐ ๋ ๋ฏฟ์ ์ ์๋ ๋ต๋ณ์ ์ ๊ณตํ๋๋ก ๋๋ ์๋ก์ด ์๋น์ค๋ฅผ ์ค๋นํ๊ณ ์์ต๋๋ค. ์๋ก์ด ์๋น์ค์ ๋ฐฉํฅ์ ํ์ธํด๋ณด์ธ์.
ํ๊ตญ ์ฃผ์ ๋ถ์์ ์ํ MCP ์๋ฒ์
๋๋ค.
DART(์ ์๊ณต์์์คํ
)์ KRX(ํ๊ตญ๊ฑฐ๋์) ๊ณต์ API๋ฅผ ํตํด ์ฃผ๊ฐ ์ ๋ณด์ ๊ณต์ ์๋ฃ ๊ธฐ๋ฐ์ AI๋ถ์์ด ๊ฐ๋ฅํฉ๋๋ค.
๐ฌ ๊ฐ์ ์์ฒญ & ํผ๋๋ฐฑ ํ์ํฉ๋๋ค! ์ฌ์ฉํ๋ฉด์ ๋ถํธํ ์ ์ด๋ ๊ฐ์ ์์ด๋์ด๊ฐ ์์ผ์๋ฉด ํธํ๊ฒ ์ด๋ฉ์ผ ์ฃผ์ธ์. ๋น ๋ฅด๊ฒ ํ์ธํ๊ณ ๋ฐ์ํ๊ฒ ์ต๋๋ค. ๐ง wowlxx28@gmail.com
๐ฏ ์ฃผ์ ๊ธฐ๋ฅ
- ๐ ๊ณต์๊ฒ์ - ํ์ฌ๋ณ, ๊ธฐ๊ฐ๋ณ ๊ณต์ ๊ฒ์
- ๐ ๊ณต์ ๋ฐ์ดํฐ - ๊ณต์๋ณด๊ณ ์ ์๋ณธํ์ผ ํ์ฑํ ๋ฐ์ดํฐ ์ ๊ณต
- ๐ผ ์ฌ๋ฌด์ ํ ๋ถ์ - XBRL ๊ธฐ๋ฐ ์์ธ ์ฌ๋ฌด ๋ฐ์ดํฐ
- ๐ ์ฃผ์ ๋ฐ์ดํฐ - KRX(์ฝ์คํผ/์ฝ์ค๋ฅ) ์ผ๋ณ ์ฃผ๊ฐ์ ๋ณด, ์ข ๋ชฉ ๊ธฐ๋ณธ์ ๋ณด
โก ๋น ๋ฅธ ์์
1๏ธโฃ API KEY ๋ฐ๊ธ
๋จผ์ DART์ KRX์ API KEY๋ฅผ ๋ฐ๊ธ๋ฐ์์ผ ํฉ๋๋ค.
๐ DART API KEY ๋ฐ๊ธ
- ํ์๊ฐ์ : OPEN DART ํ์๊ฐ์
- ํค ์ ์ฒญ: ์ธ์ฆํค ์ ์ฒญ ํ์ด์ง์์ API KEY ์ ์ฒญ
- ํค ํ์ธ: ์คํAPI ์ด์ฉํํฉ์์ ๋ฐ๊ธ๋ API KEY ํ์ธ
๐ KRX API KEY ๋ฐ๊ธ
-
ํ์๊ฐ์ : KRX OPEN API์์ ํ์๊ฐ์ ๋ฐ ๋ก๊ทธ์ธ
-
ํค ์ ์ฒญ: ๋ง์ดํ์ด์ง โ API ์ธ์ฆํค ์ ์ฒญ์์ ์ ์ฒญ
-
์๋น์ค ์ ์ฒญ: ์น์ธ ํ ์๋น์ค์ด์ฉ โ ์ฃผ์ ๋ฉ๋ด๋ก ์ด๋
-
API ์ด์ฉ์ ์ฒญ: ๋ค์ 6๊ฐ ํญ๋ชฉ์์ ๊ฐ๊ฐ "API ์ด์ฉ์ ์ฒญ" ํด๋ฆญ
- ์ ๊ฐ์ฆ๊ถ ์ผ๋ณ๋งค๋งค์ ๋ณด
- ์ฝ์ค๋ฅ ์ผ๋ณ๋งค๋งค์ ๋ณด
- ์ฝ๋ฅ์ค ์ผ๋ณ๋งค๋งค์ ๋ณด
- ์ ๊ฐ์ฆ๊ถ ์ข ๋ชฉ๊ธฐ๋ณธ์ ๋ณด
- ์ฝ์ค๋ฅ ์ข ๋ชฉ๊ธฐ๋ณธ์ ๋ณด
- ์ฝ๋ฅ์ค ์ข ๋ชฉ๊ธฐ๋ณธ์ ๋ณด
โฑ๏ธ ์น์ธ๊น์ง ์ฝ 1์ผ ์์๋ฉ๋๋ค.
-
ํค ํ์ธ: ์น์ธ ํ ๋ง์ดํ์ด์ง โ API ์ธ์ฆํค ๋ฐ๊ธ๋ด์ญ์์ API KEY ํ์ธ
2๏ธโฃ Claude Desktop ์ค์
- Claude Desktop ์คํ
- ์ค์ โ ๊ฐ๋ฐ์ โ ๊ตฌ์ฑํธ์ง ํด๋ฆญ
claude_desktop_config.jsonํ์ผ์ ๋ค์ ๋ด์ฉ ์ถ๊ฐ:
{
"mcpServers": {
"korea-stock-mcp": {
"command": "npx",
"args": ["-y", "korea-stock-mcp@latest"],
"env": {
"DART_API_KEY": "<YOUR_DART_API_KEY>",
"KRX_API_KEY": "<YOUR_KRX_API_KEY>"
}
}
}
}
- ์ฌ์์: Claude Desktop์ ์ฌ์์ํ์ฌ ์ค์ ์ ์ฉ
์ด์ Claude์์ ํ๊ตญ ์ฃผ์ ๋ฐ์ดํฐ ๋ถ์์ ์์ํ ์ ์์ต๋๋ค.
๋์ฉ๋ ๊ณต์ ๋ฌธ์ ์ฒ๋ฆฌ
์ผ๋ถ ๊ณต์๋ณด๊ณ ์(์ฌ์ ๋ณด๊ณ ์, ๋ถ๊ธฐ๋ณด๊ณ ์ ๋ฑ)๋ ์ MB์ ๋ฌํ๋ ๋์ฉ๋ XML ๋ฌธ์์ ๋๋ค. ์ด๋ฐ ๋ฌธ์๋ฅผ ํ ๋ฒ์ ๋ชจ๋ ์ฒ๋ฆฌํ๋ฉด AI ์๋ต ํ๋๋ฅผ ์ด๊ณผํ๊ฑฐ๋ ์ค๋ฅ๊ฐ ๋ฐ์ํ ์ ์์ต๋๋ค.
์ด๋ป๊ฒ ๋์ํ๋์?
๋ฌธ์ ํฌ๊ธฐ์ ๋ฐ๋ผ ์๋์ผ๋ก ์ฒ๋ฆฌ ๋ฐฉ์์ด ๋ฌ๋ผ์ง๋๋ค.
- ์์ฉ๋ ๋ฌธ์ (1MB ๋ฏธ๋ง): ๋ฌธ์ ์ ์ฒด๋ฅผ ๋ฐ๋ก ๋ฐํํฉ๋๋ค.
- ๋์ฉ๋ ๋ฌธ์ (1MB ์ด์): ๋ฌธ์ ์ ์ฒด ๋์ **๋ชฉ์ฐจ(TOC)**๋ฅผ ๋จผ์ ๋ฐํํฉ๋๋ค. Claude๊ฐ ๋ชฉ์ฐจ๋ฅผ ๋ณด๊ณ ์ง๋ฌธ๊ณผ ๊ด๋ จ๋ ์น์ ์ ์๋์ผ๋ก ์ ํํด ๋ด์ฉ์ ๊ฐ์ ธ์ต๋๋ค.
์ ์ ์๋ด
๋ณ๋๋ก ์กฐ์ํ ํ์๊ฐ ์์ต๋๋ค. Claude๊ฐ ๋์ฉ๋ ๋ฌธ์๋ฅผ ์๋์ผ๋ก ์ฒ๋ฆฌํฉ๋๋ค.
๋ฌธ์๊ฐ ํฌ๋ฉด Claude๊ฐ ์๋์ผ๋ก ๋ค์๊ณผ ๊ฐ์ด ๋์ํฉ๋๋ค:
- ๋ฌธ์ ๋ชฉ์ฐจ๋ฅผ ํ์ธํฉ๋๋ค.
- ์ง๋ฌธ๊ณผ ๊ด๋ จ๋ ์น์ ์ ์๋์ผ๋ก ์ ํํด ๋ด์ฉ์ ์กฐํํฉ๋๋ค.
- ๋ต๋ณ ํ ๋๋จธ์ง ์น์ ๋ชฉ๋ก์ ์๋ดํ๋ฏ๋ก, ์ถ๊ฐ๋ก ๊ถ๊ธํ ์น์ ์ด ์์ผ๋ฉด ์์ฒญํ ์ ์์ต๋๋ค.
์์:
- "์ฌ์ ๋ณด๊ณ ์์์ ๋งค์ถ ํํฉ ์๋ ค์ค" โ Claude๊ฐ ๋งค์ถ ๊ด๋ จ ์น์ ์ ์๋ ์ ํ
- "๋ฐฉ๊ธ ๋ชฉ์ฐจ์์ 3๋ฒ ์น์ ๋ ์กฐํํด์ค" โ ํน์ ์น์ ์ง์ ์์ฒญ ๊ฐ๋ฅ
๐ก ๋ณต์กํ ์ง๋ฌธ์ ๋จ๊ณ๋ณ๋ก ๋๋ ์ ์ง๋ฌธํ์ธ์
ํ ๋ฒ์ ์ํ๋ ๋ต์ ์ป์ง ๋ชปํ ๋๋, ์ง๋ฌธ์ ์ฌ๋ฌ ๋จ๊ณ๋ก ๋๋๋ฉด ๋ ์ ํํ ๊ฒฐ๊ณผ๋ฅผ ์ป์ ์ ์์ต๋๋ค.
์๋ฅผ ๋ค์ด, "์ธ๋ฒคํ ๋ผ์ ์ฆ๊ถ์ ๊ณ ์์์ ์ธ๊ตญ์ธ ๋ฐฐ์ ๋ด์ญ ์๋ ค์ค"๊ฐ ํ ๋ฒ์ ์ ๋๋ค๋ฉด:
- "์ธ๋ฒคํ ๋ผ์ ๊ณ ์ ๋ฒํธ(corp_code) ์๋ ค์ค"
- "๊ทธ ํ์ฌ์ ์ฆ๊ถ๋ฐํ ๊ด๋ จ ๊ณต์ ๋ชฉ๋ก ๋ณด์ฌ์ค"
- "ํด๋น ๊ณต์ ๋ณธ๋ฌธ์ ๊ฐ์ ธ์์ค"
- "์ธ๊ตญ์ธ ๋ฐฐ์ ๋ด์ญ์ ์ฐพ์์ค"
์ด๋ ๊ฒ ๋จ๊ณ๋ณ๋ก ์งํํ๋ฉด ๊ฐ ๋จ๊ณ์ ๊ฒฐ๊ณผ๋ฅผ ํ์ธํ๋ฉด์ ์ํ๋ ์ ๋ณด์ ๋๋ฌํ ์ ์์ต๋๋ค.
์ฌ์ฉ ๊ฐ๋ฅํ ๋๊ตฌ
DART (์ ์๊ณต์์์คํ )
-
get_disclosure_list - ๊ณต์๊ฒ์
- ๊ณต์ ์ ํ๋ณ, ํ์ฌ๋ณ, ๋ ์ง๋ณ ๊ณต์๋ณด๊ณ ์ ๊ฒ์
-
get_corp_code - ๊ณ ์ ๋ฒํธ ์กฐํ
- DART ๋ฑ๋ก ๊ณต์๋์ํ์ฌ์ ๊ณ ์ ๋ฒํธ, ํ์ฌ๋ช , ์ข ๋ชฉ์ฝ๋ ์ ๊ณต
- ํ์ฌ๋ช
(
corp_name) ๋๋ ์ข ๋ชฉ์ฝ๋(stock_code) ์ค ํ๋๋ก ์กฐํ ๊ฐ๋ฅ - ํ์ฌ๋ช ๊ฒ์ ์คํจ ์ ์ข ๋ชฉ์ฝ๋๋ก ์ฌ์๋ ์๋ด
-
get_disclosure - ๊ณต์๋ณด๊ณ ์ ์๋ฌธ
- DART API๋ฅผ ํตํ ๊ณต์๋ณด๊ณ ์ ์๋ณธํ์ผ ํ์ฑ
- ๋์ฉ๋ ๋ฌธ์์ ๊ฒฝ์ฐ ๋ชฉ์ฐจ๋ฅผ ๋ฐํํ๋ฉฐ,
section_id๋ก ํน์ ์น์ ์กฐํ ๊ฐ๋ฅ
-
get_financial_statement - ์ฌ๋ฌด์ ํ
- ์์ฅ๋ฒ์ธ ๋ฐ ์ฃผ์ ๋น์์ฅ๋ฒ์ธ XBRL ์ฌ๋ฌด์ ํ
- ์ ๊ธฐ๋ณด๊ณ ์ ๋ด ๋ชจ๋ ๊ณ์ ๊ณผ๋ชฉ ๋ฐ์ดํฐ ์ ๊ณต
KRX (ํ๊ตญ๊ฑฐ๋์)
-
get_stock_base_info - ์ข ๋ชฉ ๊ธฐ๋ณธ์ ๋ณด
- ์ฝ์คํผ, ์ฝ์ค๋ฅ, ์ฝ๋ฅ์ค ์์ฅ ์ข ๋ชฉ ๊ธฐ๋ณธ ์ ๋ณด
- ์ข ๋ชฉ๋ช , ์ข ๋ชฉ์ฝ๋, ์์ฅ๊ตฌ๋ถ ๋ฑ ๊ธฐ๋ณธ ๋ฐ์ดํฐ
-
get_stock_trade_info - ์ผ๋ณ ๋งค๋งค์ ๋ณด
- ์ฝ์คํผ, ์ฝ์ค๋ฅ, ์ฝ๋ฅ์ค ์ข ๋ชฉ๋ณ ์ผ๋ณ ๊ฑฐ๋ ๋ฐ์ดํฐ
- ์ฃผ๊ฐ, ๊ฑฐ๋๋, ์๊ฐ์ด์ก ๋ฑ ์์ธ ๊ฑฐ๋ ์ ๋ณด
-
get_market_type - ์์ฅ๊ตฌ๋ถ ์กฐํ
- ์ข ๋ชฉ์ฝ๋๋ก ํด๋น ์ข ๋ชฉ์ ์์ฅ๊ตฌ๋ถ(์ฝ์คํผ/์ฝ์ค๋ฅ/์ฝ๋ฅ์ค) ์กฐํ
- ์ฃผ์ ๋ฐ์ดํฐ ์กฐํ ์ ํ์ํ ์์ฅ ์ ๋ณด ์ ๊ณต
๊ธฐํ ๋๊ตฌ
- get_today_date - ์ค๋ ๋ ์ง ์กฐํ
- ํ์ฌ ๋ ์ง๋ฅผ YYYYMMDD ํ์์ผ๋ก ์ ๊ณต
- AI์ ์ ํํ ๋ ์ง ์กฐํ๋ฅผ ์ํ ๋๊ตฌ
์ค์ ์ฌ์ฉ ์์
๐ ์ฌ๋ฌด ๋ถ์ ์์
ํ๋กฌํํธ: "์ผ์์ํ์ 2023๋
, 2024๋
1~4๋ถ๊ธฐ, 2025๋
1,2๋ถ๊ธฐ ๋งค์ถ, ์์
์ด์ต ์กฐ์ฌํด์ฃผ๊ณ ์ฑ์ฅ๋ฅ ๋ ์กฐ์ฌํด์ค"
โ ์ผ์์ํ ๋ถ์ ๊ฒฐ๊ณผ ๋ณด๊ธฐ
ํ๋กฌํํธ: "์์ดํผ์์ 23๋
1๋ถ๊ธฐ๋ถํฐ 25๋
2๋ถ๊ธฐ๊น์ง์ ๋งค์ถ, ์์
์ด์ต ์ฑ์ฅ๊ณผ ์ฃผ๊ฐ, ์๊ฐ์ด์ก ํ๋ฆ์ ์กฐ์ฌํด์ค"
โ ์์ดํผ์ ๋ถ์ ๊ฒฐ๊ณผ ๋ณด๊ธฐ
๐ข ๊ธฐ์ ๋ถ์ ์์
ํ๋กฌํํธ: "HJ์ค๊ณต์
์ ๋ญ ํด์ ๋์ ๋ฒ๋ ํ์ฌ์ธ์ง๋ ์ฌ์
๋ถ๋ฌธ๋ณ ๋งค์ถ๊น์ง ๊ฐ์ด ์๋ ค์ค"
โ HJ์ค๊ณต์
๋ถ์ ๊ฒฐ๊ณผ ๋ณด๊ธฐ
๐ ๊ณต์ ๋ถ์ ์์
ํ๋กฌํํธ: "Get the foreign allocation details for an IPO (e.g., Inventera / 0007J0)" โ ์ธ๋ฒคํ ๋ผ IPO ์ธ๊ตญ์ธ ๋ฐฐ์ ๋ถ์ ๊ฒฐ๊ณผ ๋ณด๊ธฐ
API ๋ฐ์ดํฐ ์์ค
- DART (์ ์๊ณต์์์คํ ): ์์ฅ๊ธฐ์ ๊ณต์ ์ ๋ณด ๋ฐ ์ฌ๋ฌด์ ํ
- KRX (ํ๊ตญ๊ฑฐ๋์): ์ข ๋ชฉ ๊ธฐ๋ณธ์ ๋ณด ๋ฐ ์ผ๋ณ ๋งค๋งค์ ๋ณด
๋ก์ปฌ ๊ฐ๋ฐ ๋ฐ ํ ์คํธ
์์ค๋ฅผ ์์ ํ๋ฉด์ ๋ฐ๋ก ํ ์คํธํ๋ ๋ฐฉ๋ฒ์ ๋๋ค.
1๏ธโฃ ์์กด์ฑ ์ค์น
npm install
2๏ธโฃ ํ๊ฒฝ๋ณ์ ์ค์
ํ๋ก์ ํธ ๋ฃจํธ์ .env ํ์ผ์ ์์ฑํฉ๋๋ค:
DART_API_KEY=your_dart_api_key
KRX_API_KEY=your_krx_api_key
3๏ธโฃ MCP Inspector ์คํ
npm run inspect
ํฐ๋ฏธ๋์ ์ถ๋ ฅ๋๋ ์ฃผ์(http://localhost:6274 ๋ฑ)๋ฅผ ๋ธ๋ผ์ฐ์ ์์ ์ด๋ฉด MCP Inspector UI๊ฐ ์ด๋ฆฝ๋๋ค.
Inspector์์ Connect ๋ฒํผ์ ํด๋ฆญํ ํ, ์ข์ธก ํด ๋ชฉ๋ก์์ ์ํ๋ ํด์ ์ ํํด ์ง์ ํธ์ถํ ์ ์์ต๋๋ค.
4๏ธโฃ ์์ค ์์ ํ ์ฌํ ์คํธ
src/ ํ์ผ์ ์์ ํ๊ณ ์ ์ฅํ๋ฉด ์๋ฒ๊ฐ ์๋์ผ๋ก ์ฌ์์๋ฉ๋๋ค.
Inspector์์ Reconnect ๋ฒํผ์ ํด๋ฆญํ๋ฉด ๋ณ๊ฒฝ์ฌํญ์ด ์ฆ์ ๋ฐ์๋ฉ๋๋ค.
์ฐธ๊ณ : Node.js 18 ์ด์์ด ํ์ํฉ๋๋ค.
๊ธฐ์ฌํ๊ธฐ
๊ธฐ์ฌ๋ฅผ ํ์ํฉ๋๋ค! Pull Request๋ฅผ ๋ณด๋ด์ฃผ์ธ์.
- ์ด ์ ์ฅ์๋ฅผ ํฌํฌํ์ธ์
- ๊ธฐ๋ฅ ๋ธ๋์น๋ฅผ ๋ง๋์ธ์ (
git checkout -b feature/AmazingFeature) - ๋ณ๊ฒฝ์ฌํญ์ ์ปค๋ฐํ์ธ์ (
git commit -m 'Add some AmazingFeature') - ๋ธ๋์น์ ํธ์ํ์ธ์ (
git push origin feature/AmazingFeature) - Pull Request๋ฅผ ์ด์ด์ฃผ์ธ์
๋ผ์ด์ ์ค
ISC ๋ผ์ด์ ์ค
์ง์
- ๐ ์ด์๊ฐ ์๋ค๋ฉด GitHub Issues์ ๋ฑ๋กํด์ฃผ์ธ์
- โญ ์ ์ฉํ๋ค๋ฉด ์คํ๋ฅผ ๋๋ฌ์ฃผ์ธ์!
๋ฉด์ฑ ์กฐํญ
๋ณธ ๋๊ตฌ๋ ์ ๋ณด ์ ๊ณต ๋ชฉ์ ์ด๋ฉฐ, ํฌ์ ์กฐ์ธ์ด ์๋๋๋ค. ๋ชจ๋ ํฌ์ ๊ฒฐ์ ์ ๋ณธ์ธ ์ฑ ์์ ๋๋ค.
English Version
๐ Korea Stock MCP is taking the next step beyond an open-source MCP. Built on reliable Korean stock data, weโre preparing a new service that helps AI deliver answers you can trust. See what weโre building.
MCP Server for Korean stock analysis.
Enables AI-powered analysis of stock prices and disclosure data through official APIs from DART (Data Analysis, Retrieval and Transfer System) and KRX (Korea Exchange).
๐ฌ Feedback & Feature Requests Welcome! If you have any ideas for improvement or issues while using this tool, feel free to email me. I'll review and address them as quickly as possible. ๐ง wowlxx28@gmail.com
๐ฏ Key Features
- ๐ Disclosure Search - Search corporate disclosures by company and date
- ๐ Disclosure Data - Provides parsed data from original disclosure reports
- ๐ผ Financial Statement Analysis - Detailed financial data based on XBRL
- ๐ Stock Data - KRX (KOSPI/KOSDAQ) daily stock prices and basic stock information
โก Quick Start
1๏ธโฃ API KEY Registration
You need to obtain API KEYs from both DART and KRX.
๐ DART API KEY Registration
- Sign Up: Register at OPEN DART
- Request Key: Apply for API KEY at Authentication Key Application Page
- Check Key: Verify issued API KEY at Open API Usage Status
๐ KRX API KEY Registration
-
Sign Up: Register and login at KRX OPEN API
-
Request Key: Apply for API authentication key in My Page โ API Authentication Key Application
-
Service Application: After approval, go to Service Use โ Stock menu
-
API Usage Application: Click "API Usage Application" for each of the following 6 items
- Securities Daily Trading Information
- KOSDAQ Daily Trading Information
- KONEX Daily Trading Information
- Securities Basic Information
- KOSDAQ Basic Information
- KONEX Basic Information
โฑ๏ธ Approval takes approximately 1 day.
-
Key Verification: After approval, check API KEY in My Page โ API Authentication Key Issuance History
2๏ธโฃ Claude Desktop Setup
- Launch Claude Desktop
- Go to Settings โ Developer โ Edit Configuration
- Add the following content to
claude_desktop_config.json:
{
"mcpServers": {
"korea-stock-mcp": {
"command": "npx",
"args": ["-y", "korea-stock-mcp@latest"],
"env": {
"DART_API_KEY": "<YOUR_DART_API_KEY>",
"KRX_API_KEY": "<YOUR_KRX_API_KEY>"
}
}
}
}
- Restart: Restart Claude Desktop to apply settings
You can now start analyzing Korean stock data with Claude.
Large Disclosure Document Handling
Some disclosure reports (annual reports, quarterly reports, etc.) are large XML documents of several MB. Processing such documents all at once can exceed AI response limits or cause errors.
How does it work?
The processing method changes automatically depending on document size.
- Small documents (under 1MB): Returns the entire document immediately.
- Large documents (1MB or more): Returns a Table of Contents (TOC) instead of the full document. Claude reads the TOC and automatically selects and fetches the sections relevant to your question.
User Guide
No manual action required. Claude handles large documents automatically.
When a document is large, Claude automatically:
- Checks the document's table of contents.
- Selects and fetches the sections relevant to your question.
- After answering, lists the remaining sections โ so you can request any other section you're curious about.
Examples:
- "Show me the revenue overview from the annual report" โ Claude auto-selects the revenue-related section
- "Also fetch section 3 from the TOC you just showed" โ You can request a specific section directly
๐ก Break Complex Questions into Steps
If you can't get the answer you want in one shot, try breaking your question into smaller steps for more accurate results.
For example, instead of "Show me the foreign investor allocation details from Inventera's securities registration statement", try:
- "Get the corp_code for Inventera"
- "Search for securities issuance disclosures for that company"
- "Fetch the document content for that disclosure"
- "Find the foreign investor allocation table"
This way, you can verify each step's output and guide Claude toward the exact information you need.
Available Tools
DART (Data Analysis, Retrieval and Transfer System)
-
get_disclosure_list - Disclosure Search
- Search disclosure reports by type, company, and date
-
get_corp_code - Corporate Code Inquiry
- Provides unique codes, company names, and stock codes of DART-registered disclosure companies
- Search by company name (
corp_name) or stock code (stock_code) - If name search fails (e.g. non-Korean input), suggests retrying with stock code
-
get_disclosure - Disclosure Report Content
- Parse original disclosure report files through DART API
- For large documents, returns a TOC; use
section_idto fetch a specific section
-
get_financial_statement - Financial Statements
- XBRL financial statements for listed and major unlisted companies
- Provides all account data from periodic reports
KRX (Korea Exchange)
-
get_stock_base_info - Basic Stock Information
- Basic information for KOSPI, KOSDAQ, and KONEX listed stocks
- Basic data including stock names, codes, and market classifications
-
get_stock_trade_info - Daily Trading Information
- Daily trading data for KOSPI, KOSDAQ, and KONEX stocks
- Detailed trading information including stock prices, trading volume, and market capitalization
-
get_market_type - Market Type Inquiry
- Query market classification (KOSPI/KOSDAQ/KONEX) by stock code
- Provides market information needed for stock data queries
Other Tools
- get_today_date - Today's Date Inquiry
- Provides current date in YYYYMMDD format
- Tool for AI's accurate date inquiry
Real Usage Examples
๐ Financial Analysis Examples
Prompt: "Investigate Samyang Foods's sales and operating profit for Q1-Q4 2023, Q1-Q4 2024, and Q1-Q2 2025, and also check growth rates"
โ See Samyang Foods Analysis Results
Prompt: "Investigate APR's sales and operating profit growth from Q1 2023 to Q2 2025, along with stock price and market cap trends" โ See APR Analysis Results
๐ข Corporate Analysis Examples
Prompt: "Tell me what HJ SHIPBUILDING & CONSTRUCTION does to make money and include sales by business segment" โ See HJ Shipbuilding & Construction Analysis Results
๐ Disclosure Analysis Examples
Prompt: "Get the foreign allocation details for an IPO (e.g., Inventera / 0007J0)" โ See Inventera IPO Foreign Allocation Analysis Results
API Data Sources
- DART (Data Analysis, Retrieval and Transfer System): Listed company disclosure information and financial statements
- KRX (Korea Exchange): Basic stock information and daily trading information
Local Development & Testing
How to test while modifying the source code.
1๏ธโฃ Install dependencies
npm install
2๏ธโฃ Set up environment variables
Create a .env file in the project root:
DART_API_KEY=your_dart_api_key
KRX_API_KEY=your_krx_api_key
3๏ธโฃ Run MCP Inspector
npm run inspect
Open the URL printed in the terminal (e.g. http://localhost:6274) in your browser to open the MCP Inspector UI.
Click Connect in the Inspector, then select any tool from the left panel to call it directly.
4๏ธโฃ Re-test after modifying source
When you save a file under src/, the server restarts automatically.
Click Reconnect in the Inspector to pick up the changes immediately.
Note: Node.js 18 or higher is required.
Contributing
Contributions are welcome! Please send us a Pull Request.
- Fork this repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
ISC License
Support
- ๐ If you have issues, please register them in GitHub Issues
- โญ If you find it useful, please give it a star!
Disclaimer
This tool is for informational purposes only and is not investment advice. All investment decisions are your own responsibility.
Frequently asked questions
What is korea-stock-mcp MCP Server?
MCP server for korea stock
How do I install korea-stock-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. korea-stock-mcp MCP Server runs locally from the npm package korea-stock-mcp with the command npx -y korea-stock-mcp@1.1.4.
Is korea-stock-mcp MCP Server free and open source?
Yes. korea-stock-mcp MCP Server is released under the ISC license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does korea-stock-mcp MCP Server support remote (HTTP) connections?
Yes. korea-stock-mcp MCP Server is listed as a remote server, so HTTP-capable clients can connect to it without running anything locally.
How is korea-stock-mcp MCP Server's trust score calculated?
korea-stock-mcp MCP Server scores 71 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yetโBe the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.