๐ฐ๐ท ํ๊ตญ์ด | ๐บ๐ธ English ํ๊ตญ ์ฃผ์ ๋ถ์์ ์ํ MCP ์๋ฒ์ ๋๋ค. DART(์ ์๊ณต์์์คํ )์ KRX(ํ๊ตญ๊ฑฐ๋์) ๊ณต์ API๋ฅผ ํตํด ์ฃผ๊ฐ ์ ๋ณด์ ๊ณต์ ์๋ฃ ๊ธฐ๋ฐ์ AI๋ถ์์ด ๊ฐ๋ฅํฉ๋๋ค. - ๐ ๊ณต์๊ฒ์ - ํ์ฌ๋ณ, ๊ธฐ๊ฐ๋ณ ๊ณต์ ๊ฒ์ - ๐ ๊ณต์ ๋ฐ์ดํฐ - ๊ณต์๋ณด๊ณ ์ ์๋ณธํ์ผ ํ์ฑํ ๋ฐ์ดํฐ ์ ๊ณต - ๐ผ ์ฌ๋ฌด์ ํ ๋ถ์ - XBRL ๊ธฐ๋ฐ ์์ธ ์ฌ๋ฌด ๋ฐ์ดํฐ - ๐ ์ฃผ์ ๋ฐ์ดํฐ - KRX(์ฝ์คํผ/์ฝ์ค๋ฅ) ์ผ๋ณ ์ฃผ๊ฐ์ ๋ณด, ์ข ๋ชฉ ๊ธฐ๋ณธ์ ๋ณด ๋จผ์ DART์ KRX์ API KEY๋ฅผ ๋ฐ๊ธ๋ฐ์์ผ ํฉ๋๋ค. 1. ํ์๊ฐ์ : OPEN DART ํ์๊ฐ์ 2. ํค ์ ์ฒญ: ์ธ์ฆํค ์ ์ฒญ ํ์ด์ง์์ API KEY ์ ์ฒญ 3. ํค ํ์ธ: ์คํAPI ์ด์ฉํํฉ์์ ๋ฐ๊ธ๋ API KEY ํ์ธ 1. ํ์๊ฐ์ : KRX OPEN
Add this skill
npx mdskills install jjlabsio/korea-stock-mcpWell-documented MCP server for Korean stock market analysis with comprehensive API integration
1# Korea Stock MCP Server23[๐ฐ๐ท ํ๊ตญ์ด](#korea-stock-mcp-server) | [๐บ๐ธ English](#english-version)45ํ๊ตญ ์ฃผ์ ๋ถ์์ ์ํ MCP ์๋ฒ์ ๋๋ค.6DART(์ ์๊ณต์์์คํ )์ KRX(ํ๊ตญ๊ฑฐ๋์) ๊ณต์ API๋ฅผ ํตํด ์ฃผ๊ฐ ์ ๋ณด์ ๊ณต์ ์๋ฃ ๊ธฐ๋ฐ์ AI๋ถ์์ด ๊ฐ๋ฅํฉ๋๋ค.78## ๐ฏ ์ฃผ์ ๊ธฐ๋ฅ910- ๐ **๊ณต์๊ฒ์** - ํ์ฌ๋ณ, ๊ธฐ๊ฐ๋ณ ๊ณต์ ๊ฒ์11- ๐ **๊ณต์ ๋ฐ์ดํฐ** - ๊ณต์๋ณด๊ณ ์ ์๋ณธํ์ผ ํ์ฑํ ๋ฐ์ดํฐ ์ ๊ณต12- ๐ผ **์ฌ๋ฌด์ ํ ๋ถ์** - XBRL ๊ธฐ๋ฐ ์์ธ ์ฌ๋ฌด ๋ฐ์ดํฐ13- ๐ **์ฃผ์ ๋ฐ์ดํฐ** - KRX(์ฝ์คํผ/์ฝ์ค๋ฅ) ์ผ๋ณ ์ฃผ๊ฐ์ ๋ณด, ์ข ๋ชฉ ๊ธฐ๋ณธ์ ๋ณด1415## โก ๋น ๋ฅธ ์์1617### 1๏ธโฃ API KEY ๋ฐ๊ธ1819๋จผ์ DART์ KRX์ API KEY๋ฅผ ๋ฐ๊ธ๋ฐ์์ผ ํฉ๋๋ค.2021#### ๐ DART API KEY ๋ฐ๊ธ22231. **ํ์๊ฐ์ **: [OPEN DART](https://opendart.fss.or.kr) ํ์๊ฐ์242. **ํค ์ ์ฒญ**: [์ธ์ฆํค ์ ์ฒญ ํ์ด์ง](https://opendart.fss.or.kr/uss/umt/EgovMberInsertView.do)์์ API KEY ์ ์ฒญ253. **ํค ํ์ธ**: [์คํAPI ์ด์ฉํํฉ](https://opendart.fss.or.kr/mng/apiUsageStatusView.do)์์ ๋ฐ๊ธ๋ API KEY ํ์ธ2627#### ๐ KRX API KEY ๋ฐ๊ธ28291. **ํ์๊ฐ์ **: [KRX OPEN API](https://openapi.krx.co.kr/contents/OPP/MAIN/main/index.cmd)์์ ํ์๊ฐ์ ๋ฐ ๋ก๊ทธ์ธ302. **ํค ์ ์ฒญ**: ๋ง์ดํ์ด์ง โ API ์ธ์ฆํค ์ ์ฒญ์์ ์ ์ฒญ313. **์๋น์ค ์ ์ฒญ**: ์น์ธ ํ ์๋น์ค์ด์ฉ โ ์ฃผ์ ๋ฉ๋ด๋ก ์ด๋324. **API ์ด์ฉ์ ์ฒญ**: ๋ค์ 6๊ฐ ํญ๋ชฉ์์ ๊ฐ๊ฐ "API ์ด์ฉ์ ์ฒญ" ํด๋ฆญ3334 - ์ ๊ฐ์ฆ๊ถ ์ผ๋ณ๋งค๋งค์ ๋ณด35 - ์ฝ์ค๋ฅ ์ผ๋ณ๋งค๋งค์ ๋ณด36 - ์ฝ๋ฅ์ค ์ผ๋ณ๋งค๋งค์ ๋ณด37 - ์ ๊ฐ์ฆ๊ถ ์ข ๋ชฉ๊ธฐ๋ณธ์ ๋ณด38 - ์ฝ์ค๋ฅ ์ข ๋ชฉ๊ธฐ๋ณธ์ ๋ณด39 - ์ฝ๋ฅ์ค ์ข ๋ชฉ๊ธฐ๋ณธ์ ๋ณด4041 > โฑ๏ธ **์น์ธ๊น์ง ์ฝ 1์ผ ์์๋ฉ๋๋ค.**42435. **ํค ํ์ธ**: ์น์ธ ํ ๋ง์ดํ์ด์ง โ API ์ธ์ฆํค ๋ฐ๊ธ๋ด์ญ์์ API KEY ํ์ธ4445### 2๏ธโฃ Claude Desktop ์ค์ 46471. **Claude Desktop** ์คํ482. **์ค์ ** โ **๊ฐ๋ฐ์** โ **๊ตฌ์ฑํธ์ง** ํด๋ฆญ493. `claude_desktop_config.json` ํ์ผ์ ๋ค์ ๋ด์ฉ ์ถ๊ฐ:5051```json52{53 "mcpServers": {54 "korea-stock-mcp": {55 "command": "npx",56 "args": ["-y", "korea-stock-mcp@latest"],57 "env": {58 "DART_API_KEY": "<YOUR_DART_API_KEY>",59 "KRX_API_KEY": "<YOUR_KRX_API_KEY>"60 }61 }62 }63}64```65664. **์ฌ์์**: Claude Desktop์ ์ฌ์์ํ์ฌ ์ค์ ์ ์ฉ6768> ์ด์ Claude์์ ํ๊ตญ ์ฃผ์ ๋ฐ์ดํฐ ๋ถ์์ ์์ํ ์ ์์ต๋๋ค.6970## ์ฌ์ฉ ๊ฐ๋ฅํ ๋๊ตฌ7172### DART (์ ์๊ณต์์์คํ )73741. **get_disclosure_list** - ๊ณต์๊ฒ์7576 - ๊ณต์ ์ ํ๋ณ, ํ์ฌ๋ณ, ๋ ์ง๋ณ ๊ณต์๋ณด๊ณ ์ ๊ฒ์77782. **get_corp_code** - ๊ณ ์ ๋ฒํธ ์กฐํ7980 - DART ๋ฑ๋ก ๊ณต์๋์ํ์ฌ์ ๊ณ ์ ๋ฒํธ, ํ์ฌ๋ช , ์ข ๋ชฉ์ฝ๋ ์ ๊ณต81823. **get_disclosure** - ๊ณต์๋ณด๊ณ ์ ์๋ฌธ8384 - DART API๋ฅผ ํตํ ๊ณต์๋ณด๊ณ ์ ์๋ณธํ์ผ ํ์ฑ85864. **get_financial_statement** - ์ฌ๋ฌด์ ํ87 - ์์ฅ๋ฒ์ธ ๋ฐ ์ฃผ์ ๋น์์ฅ๋ฒ์ธ XBRL ์ฌ๋ฌด์ ํ88 - ์ ๊ธฐ๋ณด๊ณ ์ ๋ด ๋ชจ๋ ๊ณ์ ๊ณผ๋ชฉ ๋ฐ์ดํฐ ์ ๊ณต8990### KRX (ํ๊ตญ๊ฑฐ๋์)91921. **get_stock_base_info** - ์ข ๋ชฉ ๊ธฐ๋ณธ์ ๋ณด9394 - ์ฝ์คํผ, ์ฝ์ค๋ฅ, ์ฝ๋ฅ์ค ์์ฅ ์ข ๋ชฉ ๊ธฐ๋ณธ ์ ๋ณด95 - ์ข ๋ชฉ๋ช , ์ข ๋ชฉ์ฝ๋, ์์ฅ๊ตฌ๋ถ ๋ฑ ๊ธฐ๋ณธ ๋ฐ์ดํฐ96972. **get_stock_trade_info** - ์ผ๋ณ ๋งค๋งค์ ๋ณด98 - ์ฝ์คํผ, ์ฝ์ค๋ฅ, ์ฝ๋ฅ์ค ์ข ๋ชฉ๋ณ ์ผ๋ณ ๊ฑฐ๋ ๋ฐ์ดํฐ99 - ์ฃผ๊ฐ, ๊ฑฐ๋๋, ์๊ฐ์ด์ก ๋ฑ ์์ธ ๊ฑฐ๋ ์ ๋ณด1001013. **get_market_type** - ์์ฅ๊ตฌ๋ถ ์กฐํ102 - ์ข ๋ชฉ์ฝ๋๋ก ํด๋น ์ข ๋ชฉ์ ์์ฅ๊ตฌ๋ถ(์ฝ์คํผ/์ฝ์ค๋ฅ/์ฝ๋ฅ์ค) ์กฐํ103 - ์ฃผ์ ๋ฐ์ดํฐ ์กฐํ ์ ํ์ํ ์์ฅ ์ ๋ณด ์ ๊ณต104105### ๊ธฐํ ๋๊ตฌ1061071. **get_today_date** - ์ค๋ ๋ ์ง ์กฐํ108 - ํ์ฌ ๋ ์ง๋ฅผ YYYYMMDD ํ์์ผ๋ก ์ ๊ณต109 - AI์ ์ ํํ ๋ ์ง ์กฐํ๋ฅผ ์ํ ๋๊ตฌ110111## ์ค์ ์ฌ์ฉ ์์112113### ๐ ์ฌ๋ฌด ๋ถ์ ์์ 114115**ํ๋กฌํํธ**: "์ผ์์ํ์ 2023๋ , 2024๋ 1~4๋ถ๊ธฐ, 2025๋ 1,2๋ถ๊ธฐ ๋งค์ถ, ์์ ์ด์ต ์กฐ์ฌํด์ฃผ๊ณ ์ฑ์ฅ๋ฅ ๋ ์กฐ์ฌํด์ค"116โ [์ผ์์ํ ๋ถ์ ๊ฒฐ๊ณผ ๋ณด๊ธฐ](./example/์ผ์์ํ.md)117118**ํ๋กฌํํธ**: "์์ดํผ์์ 23๋ 1๋ถ๊ธฐ๋ถํฐ 25๋ 2๋ถ๊ธฐ๊น์ง์ ๋งค์ถ, ์์ ์ด์ต ์ฑ์ฅ๊ณผ ์ฃผ๊ฐ, ์๊ฐ์ด์ก ํ๋ฆ์ ์กฐ์ฌํด์ค"119โ [์์ดํผ์ ๋ถ์ ๊ฒฐ๊ณผ ๋ณด๊ธฐ](./example/์์ดํผ์.md)120121### ๐ข ๊ธฐ์ ๋ถ์ ์์ 122123**ํ๋กฌํํธ**: "HJ์ค๊ณต์ ์ ๋ญ ํด์ ๋์ ๋ฒ๋ ํ์ฌ์ธ์ง๋ ์ฌ์ ๋ถ๋ฌธ๋ณ ๋งค์ถ๊น์ง ๊ฐ์ด ์๋ ค์ค"124โ [HJ์ค๊ณต์ ๋ถ์ ๊ฒฐ๊ณผ ๋ณด๊ธฐ](./example/HJ์ค๊ณต์ .md)125126## API ๋ฐ์ดํฐ ์์ค127128- **DART (์ ์๊ณต์์์คํ )**: ์์ฅ๊ธฐ์ ๊ณต์ ์ ๋ณด ๋ฐ ์ฌ๋ฌด์ ํ129- **KRX (ํ๊ตญ๊ฑฐ๋์)**: ์ข ๋ชฉ ๊ธฐ๋ณธ์ ๋ณด ๋ฐ ์ผ๋ณ ๋งค๋งค์ ๋ณด130131## ๊ธฐ์ฌํ๊ธฐ132133๊ธฐ์ฌ๋ฅผ ํ์ํฉ๋๋ค! Pull Request๋ฅผ ๋ณด๋ด์ฃผ์ธ์.1341351. ์ด ์ ์ฅ์๋ฅผ ํฌํฌํ์ธ์1362. ๊ธฐ๋ฅ ๋ธ๋์น๋ฅผ ๋ง๋์ธ์ (`git checkout -b feature/AmazingFeature`)1373. ๋ณ๊ฒฝ์ฌํญ์ ์ปค๋ฐํ์ธ์ (`git commit -m 'Add some AmazingFeature'`)1384. ๋ธ๋์น์ ํธ์ํ์ธ์ (`git push origin feature/AmazingFeature`)1395. Pull Request๋ฅผ ์ด์ด์ฃผ์ธ์140141## ๋ผ์ด์ ์ค142143ISC ๋ผ์ด์ ์ค144145## ์ง์146147- ๐ ์ด์๊ฐ ์๋ค๋ฉด GitHub Issues์ ๋ฑ๋กํด์ฃผ์ธ์148- โญ ์ ์ฉํ๋ค๋ฉด ์คํ๋ฅผ ๋๋ฌ์ฃผ์ธ์!149150## ๋ฉด์ฑ ์กฐํญ151152๋ณธ ๋๊ตฌ๋ ์ ๋ณด ์ ๊ณต ๋ชฉ์ ์ด๋ฉฐ, ํฌ์ ์กฐ์ธ์ด ์๋๋๋ค. ๋ชจ๋ ํฌ์ ๊ฒฐ์ ์ ๋ณธ์ธ ์ฑ ์์ ๋๋ค.153154---155156# English Version157158MCP Server for Korean stock analysis.159Enables AI-powered analysis of stock prices and disclosure data through official APIs from DART (Data Analysis, Retrieval and Transfer System) and KRX (Korea Exchange).160161## ๐ฏ Key Features162163- ๐ **Disclosure Search** - Search corporate disclosures by company and date164- ๐ **Disclosure Data** - Provides parsed data from original disclosure reports165- ๐ผ **Financial Statement Analysis** - Detailed financial data based on XBRL166- ๐ **Stock Data** - KRX (KOSPI/KOSDAQ) daily stock prices and basic stock information167168## โก Quick Start169170### 1๏ธโฃ API KEY Registration171172You need to obtain API KEYs from both DART and KRX.173174#### ๐ DART API KEY Registration1751761. **Sign Up**: Register at [OPEN DART](https://opendart.fss.or.kr)1772. **Request Key**: Apply for API KEY at [Authentication Key Application Page](https://opendart.fss.or.kr/uss/umt/EgovMberInsertView.do)1783. **Check Key**: Verify issued API KEY at [Open API Usage Status](https://opendart.fss.or.kr/mng/apiUsageStatusView.do)179180#### ๐ KRX API KEY Registration1811821. **Sign Up**: Register and login at [KRX OPEN API](https://openapi.krx.co.kr/contents/OPP/MAIN/main/index.cmd)1832. **Request Key**: Apply for API authentication key in My Page โ API Authentication Key Application1843. **Service Application**: After approval, go to Service Use โ Stock menu1854. **API Usage Application**: Click "API Usage Application" for each of the following 6 items186187 - Securities Daily Trading Information188 - KOSDAQ Daily Trading Information189 - KONEX Daily Trading Information190 - Securities Basic Information191 - KOSDAQ Basic Information192 - KONEX Basic Information193194 > โฑ๏ธ **Approval takes approximately 1 day.**1951965. **Key Verification**: After approval, check API KEY in My Page โ API Authentication Key Issuance History197198### 2๏ธโฃ Claude Desktop Setup1992001. Launch **Claude Desktop**2012. Go to **Settings** โ **Developer** โ **Edit Configuration**2023. Add the following content to `claude_desktop_config.json`:203204```json205{206 "mcpServers": {207 "korea-stock-mcp": {208 "command": "npx",209 "args": ["-y", "korea-stock-mcp@latest"],210 "env": {211 "DART_API_KEY": "<YOUR_DART_API_KEY>",212 "KRX_API_KEY": "<YOUR_KRX_API_KEY>"213 }214 }215 }216}217```2182194. **Restart**: Restart Claude Desktop to apply settings220221> You can now start analyzing Korean stock data with Claude.222223## Available Tools224225### DART (Data Analysis, Retrieval and Transfer System)2262271. **get_disclosure_list** - Disclosure Search228229 - Search disclosure reports by type, company, and date2302312. **get_corp_code** - Corporate Code Inquiry232233 - Provides unique codes, company names, and stock codes of DART-registered disclosure companies2342353. **get_disclosure** - Disclosure Report Content236237 - Parse original disclosure report files through DART API2382394. **get_financial_statement** - Financial Statements240 - XBRL financial statements for listed and major unlisted companies241 - Provides all account data from periodic reports242243### KRX (Korea Exchange)2442451. **get_stock_base_info** - Basic Stock Information246247 - Basic information for KOSPI, KOSDAQ, and KONEX listed stocks248 - Basic data including stock names, codes, and market classifications2492502. **get_stock_trade_info** - Daily Trading Information251 - Daily trading data for KOSPI, KOSDAQ, and KONEX stocks252 - Detailed trading information including stock prices, trading volume, and market capitalization2532543. **get_market_type** - Market Type Inquiry255 - Query market classification (KOSPI/KOSDAQ/KONEX) by stock code256 - Provides market information needed for stock data queries257258### Other Tools2592601. **get_today_date** - Today's Date Inquiry261 - Provides current date in YYYYMMDD format262 - Tool for AI's accurate date inquiry263264## Real Usage Examples265266### ๐ Financial Analysis Examples267268**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"269โ [See Samyang Foods Analysis Results](./example/์ผ์์ํ.md)270271**Prompt**: "Investigate APR's sales and operating profit growth from Q1 2023 to Q2 2025, along with stock price and market cap trends"272โ [See APR Analysis Results](./example/์์ดํผ์.md)273274### ๐ข Corporate Analysis Examples275276**Prompt**: "Tell me what HJ SHIPBUILDING & CONSTRUCTION does to make money and include sales by business segment"277โ [See HJ SHIPBUILDING & CONSTRUCTION Analysis Results](./example/HJ์ค๊ณต์ .md)278279## API Data Sources280281- **DART (Data Analysis, Retrieval and Transfer System)**: Listed company disclosure information and financial statements282- **KRX (Korea Exchange)**: Basic stock information and daily trading information283284## Contributing285286Contributions are welcome! Please send us a Pull Request.2872881. Fork this repository2892. Create a feature branch (`git checkout -b feature/AmazingFeature`)2903. Commit your changes (`git commit -m 'Add some AmazingFeature'`)2914. Push to the branch (`git push origin feature/AmazingFeature`)2925. Open a Pull Request293294## License295296ISC License297298## Support299300- ๐ If you have issues, please register them in GitHub Issues301- โญ If you find it useful, please give it a star!302303## Disclaimer304305This tool is for informational purposes only and is not investment advice. All investment decisions are your own responsibility.306
Full transparency โ inspect the skill content before installing.