🇰🇷 한국어 | 🇺🇸 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.