π°π· νκ΅μ΄ | πΊπΈ 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
npx mdskills install jjlabsio/korea-stock-mcpRelated
@jjlabsio? Sign in with GitHub to claim this listing.Well-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.