Price Per TokenPrice Per Token
Korean Stocks & Disclosures

Korean Stocks & Disclosures

by jjlabsio

GitHub 11 837 uses Remote
0

About

Korean Stocks & Disclosures is a stock market data service that provides access to Korea Exchange (KRX) trading data and corporate disclosures through South Korea's DART (electronic disclosure system). Key features: - Search company disclosures by date, company, or disclosure type through DART - Parse original disclosure report documents and extract structured data - Access XBRL-based detailed financial statements for listed and major unlisted companies - Retrieve daily trading data for KOSPI, KOSDAQ, and KONEX markets - Get stock profiles including company names, stock codes, and market classifications - Access historical trading metrics including price, volume, and market capitalization

README

Korea Stock MCP Server

๐Ÿ‡ฐ๐Ÿ‡ท ํ•œ๊ตญ์–ด | ๐Ÿ‡บ๐Ÿ‡ธ English

ํ•œ๊ตญ ์ฃผ์‹ ๋ถ„์„์„ ์œ„ํ•œ MCP ์„œ๋ฒ„์ž…๋‹ˆ๋‹ค. DART(์ „์ž๊ณต์‹œ์‹œ์Šคํ…œ)์™€ KRX(ํ•œ๊ตญ๊ฑฐ๋ž˜์†Œ) ๊ณต์‹ API๋ฅผ ํ†ตํ•ด ์ฃผ๊ฐ€ ์ •๋ณด์™€ ๊ณต์‹œ ์ž๋ฃŒ ๊ธฐ๋ฐ˜์˜ AI๋ถ„์„์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.

๐ŸŽฏ ์ฃผ์š” ๊ธฐ๋Šฅ

  • ๐Ÿ” ๊ณต์‹œ๊ฒ€์ƒ‰ - ํšŒ์‚ฌ๋ณ„, ๊ธฐ๊ฐ„๋ณ„ ๊ณต์‹œ ๊ฒ€์ƒ‰
  • ๐Ÿ“Š ๊ณต์‹œ ๋ฐ์ดํ„ฐ - ๊ณต์‹œ๋ณด๊ณ ์„œ ์›๋ณธํŒŒ์ผ ํŒŒ์‹ฑํ•œ ๋ฐ์ดํ„ฐ ์ œ๊ณต
  • ๐Ÿ’ผ ์žฌ๋ฌด์ œํ‘œ ๋ถ„์„ - XBRL ๊ธฐ๋ฐ˜ ์ƒ์„ธ ์žฌ๋ฌด ๋ฐ์ดํ„ฐ
  • ๐Ÿ“ˆ ์ฃผ์‹ ๋ฐ์ดํ„ฐ - KRX(์ฝ”์Šคํ”ผ/์ฝ”์Šค๋‹ฅ) ์ผ๋ณ„ ์ฃผ๊ฐ€์ •๋ณด, ์ข…๋ชฉ ๊ธฐ๋ณธ์ •๋ณด
  • โšก ๋น ๋ฅธ ์‹œ์ž‘

    1๏ธโƒฃ API KEY ๋ฐœ๊ธ‰

    ๋จผ์ € DART์™€ KRX์˜ API KEY๋ฅผ ๋ฐœ๊ธ‰๋ฐ›์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค.

    #### ๐Ÿ“ DART API KEY ๋ฐœ๊ธ‰

    1. ํšŒ์›๊ฐ€์ž…: OPEN DART ํšŒ์›๊ฐ€์ž… 2. ํ‚ค ์‹ ์ฒญ: ์ธ์ฆํ‚ค ์‹ ์ฒญ ํŽ˜์ด์ง€์—์„œ API KEY ์‹ ์ฒญ 3. ํ‚ค ํ™•์ธ: ์˜คํ”ˆAPI ์ด์šฉํ˜„ํ™ฉ์—์„œ ๋ฐœ๊ธ‰๋œ API KEY ํ™•์ธ

    #### ๐Ÿ“ˆ KRX API KEY ๋ฐœ๊ธ‰

    1. ํšŒ์›๊ฐ€์ž…: KRX OPEN API์—์„œ ํšŒ์›๊ฐ€์ž… ๋ฐ ๋กœ๊ทธ์ธ 2. ํ‚ค ์‹ ์ฒญ: ๋งˆ์ดํŽ˜์ด์ง€ โ†’ API ์ธ์ฆํ‚ค ์‹ ์ฒญ์—์„œ ์‹ ์ฒญ 3. ์„œ๋น„์Šค ์‹ ์ฒญ: ์Šน์ธ ํ›„ ์„œ๋น„์Šค์ด์šฉ โ†’ ์ฃผ์‹ ๋ฉ”๋‰ด๋กœ ์ด๋™ 4. API ์ด์šฉ์‹ ์ฒญ: ๋‹ค์Œ 6๊ฐœ ํ•ญ๋ชฉ์—์„œ ๊ฐ๊ฐ "API ์ด์šฉ์‹ ์ฒญ" ํด๋ฆญ

    - ์œ ๊ฐ€์ฆ๊ถŒ ์ผ๋ณ„๋งค๋งค์ •๋ณด - ์ฝ”์Šค๋‹ฅ ์ผ๋ณ„๋งค๋งค์ •๋ณด - ์ฝ”๋„ฅ์Šค ์ผ๋ณ„๋งค๋งค์ •๋ณด - ์œ ๊ฐ€์ฆ๊ถŒ ์ข…๋ชฉ๊ธฐ๋ณธ์ •๋ณด - ์ฝ”์Šค๋‹ฅ ์ข…๋ชฉ๊ธฐ๋ณธ์ •๋ณด - ์ฝ”๋„ฅ์Šค ์ข…๋ชฉ๊ธฐ๋ณธ์ •๋ณด

    > โฑ๏ธ ์Šน์ธ๊นŒ์ง€ ์•ฝ 1์ผ ์†Œ์š”๋ฉ๋‹ˆ๋‹ค.

    5. ํ‚ค ํ™•์ธ: ์Šน์ธ ํ›„ ๋งˆ์ดํŽ˜์ด์ง€ โ†’ API ์ธ์ฆํ‚ค ๋ฐœ๊ธ‰๋‚ด์—ญ์—์„œ API KEY ํ™•์ธ

    2๏ธโƒฃ Claude Desktop ์„ค์ •

    1. Claude Desktop ์‹คํ–‰ 2. ์„ค์ • โ†’ ๊ฐœ๋ฐœ์ž โ†’ ๊ตฌ์„ฑํŽธ์ง‘ ํด๋ฆญ 3. claude_desktop_config.json ํŒŒ์ผ์— ๋‹ค์Œ ๋‚ด์šฉ ์ถ”๊ฐ€:

    {
      "mcpServers": {
        "korea-stock-mcp": {
          "command": "npx",
          "args": ["-y", "korea-stock-mcp@latest"],
          "env": {
            "DART_API_KEY": "",
            "KRX_API_KEY": ""
          }
        }
      }
    }
    

    4. ์žฌ์‹œ์ž‘: Claude Desktop์„ ์žฌ์‹œ์ž‘ํ•˜์—ฌ ์„ค์ • ์ ์šฉ

    > ์ด์ œ Claude์—์„œ ํ•œ๊ตญ ์ฃผ์‹ ๋ฐ์ดํ„ฐ ๋ถ„์„์„ ์‹œ์ž‘ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

    ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ๋„๊ตฌ

    DART (์ „์ž๊ณต์‹œ์‹œ์Šคํ…œ)

    1. get_disclosure_list - ๊ณต์‹œ๊ฒ€์ƒ‰

    - ๊ณต์‹œ ์œ ํ˜•๋ณ„, ํšŒ์‚ฌ๋ณ„, ๋‚ ์งœ๋ณ„ ๊ณต์‹œ๋ณด๊ณ ์„œ ๊ฒ€์ƒ‰

    2. get_corp_code - ๊ณ ์œ ๋ฒˆํ˜ธ ์กฐํšŒ

    - DART ๋“ฑ๋ก ๊ณต์‹œ๋Œ€์ƒํšŒ์‚ฌ์˜ ๊ณ ์œ ๋ฒˆํ˜ธ, ํšŒ์‚ฌ๋ช…, ์ข…๋ชฉ์ฝ”๋“œ ์ œ๊ณต

    3. get_disclosure - ๊ณต์‹œ๋ณด๊ณ ์„œ ์›๋ฌธ

    - DART API๋ฅผ ํ†ตํ•œ ๊ณต์‹œ๋ณด๊ณ ์„œ ์›๋ณธํŒŒ์ผ ํŒŒ์‹ฑ

    4. get_financial_statement - ์žฌ๋ฌด์ œํ‘œ - ์ƒ์žฅ๋ฒ•์ธ ๋ฐ ์ฃผ์š” ๋น„์ƒ์žฅ๋ฒ•์ธ XBRL ์žฌ๋ฌด์ œํ‘œ - ์ •๊ธฐ๋ณด๊ณ ์„œ ๋‚ด ๋ชจ๋“  ๊ณ„์ •๊ณผ๋ชฉ ๋ฐ์ดํ„ฐ ์ œ๊ณต

    KRX (ํ•œ๊ตญ๊ฑฐ๋ž˜์†Œ)

    1. get_stock_base_info - ์ข…๋ชฉ ๊ธฐ๋ณธ์ •๋ณด

    - ์ฝ”์Šคํ”ผ, ์ฝ”์Šค๋‹ฅ, ์ฝ”๋„ฅ์Šค ์ƒ์žฅ ์ข…๋ชฉ ๊ธฐ๋ณธ ์ •๋ณด - ์ข…๋ชฉ๋ช…, ์ข…๋ชฉ์ฝ”๋“œ, ์‹œ์žฅ๊ตฌ๋ถ„ ๋“ฑ ๊ธฐ๋ณธ ๋ฐ์ดํ„ฐ

    2. get_stock_trade_info - ์ผ๋ณ„ ๋งค๋งค์ •๋ณด - ์ฝ”์Šคํ”ผ, ์ฝ”์Šค๋‹ฅ, ์ฝ”๋„ฅ์Šค ์ข…๋ชฉ๋ณ„ ์ผ๋ณ„ ๊ฑฐ๋ž˜ ๋ฐ์ดํ„ฐ - ์ฃผ๊ฐ€, ๊ฑฐ๋ž˜๋Ÿ‰, ์‹œ๊ฐ€์ด์•ก ๋“ฑ ์ƒ์„ธ ๊ฑฐ๋ž˜ ์ •๋ณด

    3. get_market_type - ์‹œ์žฅ๊ตฌ๋ถ„ ์กฐํšŒ - ์ข…๋ชฉ์ฝ”๋“œ๋กœ ํ•ด๋‹น ์ข…๋ชฉ์˜ ์‹œ์žฅ๊ตฌ๋ถ„(์ฝ”์Šคํ”ผ/์ฝ”์Šค๋‹ฅ/์ฝ”๋„ฅ์Šค) ์กฐํšŒ - ์ฃผ์‹ ๋ฐ์ดํ„ฐ ์กฐํšŒ ์‹œ ํ•„์š”ํ•œ ์‹œ์žฅ ์ •๋ณด ์ œ๊ณต

    ๊ธฐํƒ€ ๋„๊ตฌ

    1. get_today_date - ์˜ค๋Š˜ ๋‚ ์งœ ์กฐํšŒ - ํ˜„์žฌ ๋‚ ์งœ๋ฅผ YYYYMMDD ํ˜•์‹์œผ๋กœ ์ œ๊ณต - AI์˜ ์ •ํ™•ํ•œ ๋‚ ์งœ ์กฐํšŒ๋ฅผ ์œ„ํ•œ ๋„๊ตฌ

    ์‹ค์ œ ์‚ฌ์šฉ ์˜ˆ์‹œ

    ๐Ÿ“Š ์žฌ๋ฌด ๋ถ„์„ ์˜ˆ์ œ

    ํ”„๋กฌํ”„ํŠธ: "์‚ผ์–‘์‹ํ’ˆ์˜ 2023๋…„, 2024๋…„ 1~4๋ถ„๊ธฐ, 2025๋…„ 1,2๋ถ„๊ธฐ ๋งค์ถœ, ์˜์—…์ด์ต ์กฐ์‚ฌํ•ด์ฃผ๊ณ  ์„ฑ์žฅ๋ฅ ๋„ ์กฐ์‚ฌํ•ด์ค˜" โ†’ ์‚ผ์–‘์‹ํ’ˆ ๋ถ„์„ ๊ฒฐ๊ณผ ๋ณด๊ธฐ

    ํ”„๋กฌํ”„ํŠธ: "์—์ดํ”ผ์•Œ์˜ 23๋…„ 1๋ถ„๊ธฐ๋ถ€ํ„ฐ 25๋…„ 2๋ถ„๊ธฐ๊นŒ์ง€์˜ ๋งค์ถœ, ์˜์—…์ด์ต ์„ฑ์žฅ๊ณผ ์ฃผ๊ฐ€, ์‹œ๊ฐ€์ด์•ก ํ๋ฆ„์„ ์กฐ์‚ฌํ•ด์ค˜" โ†’ ์—์ดํ”ผ์•Œ ๋ถ„์„ ๊ฒฐ๊ณผ ๋ณด๊ธฐ

    ๐Ÿข ๊ธฐ์—… ๋ถ„์„ ์˜ˆ์ œ

    ํ”„๋กฌํ”„ํŠธ: "HJ์ค‘๊ณต์—…์€ ๋ญ˜ ํ•ด์„œ ๋ˆ์„ ๋ฒ„๋Š” ํšŒ์‚ฌ์ธ์ง€๋ž‘ ์‚ฌ์—…๋ถ€๋ฌธ๋ณ„ ๋งค์ถœ๊นŒ์ง€ ๊ฐ™์ด ์•Œ๋ ค์ค˜" โ†’ HJ์ค‘๊ณต์—… ๋ถ„์„ ๊ฒฐ๊ณผ ๋ณด๊ธฐ

    API ๋ฐ์ดํ„ฐ ์†Œ์Šค

  • DART (์ „์ž๊ณต์‹œ์‹œ์Šคํ…œ): ์ƒ์žฅ๊ธฐ์—… ๊ณต์‹œ ์ •๋ณด ๋ฐ ์žฌ๋ฌด์ œํ‘œ
  • KRX (ํ•œ๊ตญ๊ฑฐ๋ž˜์†Œ): ์ข…๋ชฉ ๊ธฐ๋ณธ์ •๋ณด ๋ฐ ์ผ๋ณ„ ๋งค๋งค์ •๋ณด
  • ๊ธฐ์—ฌํ•˜๊ธฐ

    ๊ธฐ์—ฌ๋ฅผ ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค! Pull Request๋ฅผ ๋ณด๋‚ด์ฃผ์„ธ์š”.

    1. ์ด ์ €์žฅ์†Œ๋ฅผ ํฌํฌํ•˜์„ธ์š” 2. ๊ธฐ๋Šฅ ๋ธŒ๋žœ์น˜๋ฅผ ๋งŒ๋“œ์„ธ์š” (git checkout -b feature/AmazingFeature) 3. ๋ณ€๊ฒฝ์‚ฌํ•ญ์„ ์ปค๋ฐ‹ํ•˜์„ธ์š” (git commit -m 'Add some AmazingFeature') 4. ๋ธŒ๋žœ์น˜์— ํ‘ธ์‹œํ•˜์„ธ์š” (git push origin feature/AmazingFeature) 5. Pull Request๋ฅผ ์—ด์–ด์ฃผ์„ธ์š”

    ๋ผ์ด์„ ์Šค

    ISC ๋ผ์ด์„ ์Šค

    ์ง€์›

  • ๐Ÿ› ์ด์Šˆ๊ฐ€ ์žˆ๋‹ค๋ฉด GitHub Issues์— ๋“ฑ๋กํ•ด์ฃผ์„ธ์š”
  • โญ ์œ ์šฉํ•˜๋‹ค๋ฉด ์Šคํƒ€๋ฅผ ๋ˆŒ๋Ÿฌ์ฃผ์„ธ์š”!
  • ๋ฉด์ฑ… ์กฐํ•ญ

    ๋ณธ ๋„๊ตฌ๋Š” ์ •๋ณด ์ œ๊ณต ๋ชฉ์ ์ด๋ฉฐ, ํˆฌ์ž ์กฐ์–ธ์ด ์•„๋‹™๋‹ˆ๋‹ค. ๋ชจ๋“  ํˆฌ์ž ๊ฒฐ์ •์€ ๋ณธ์ธ ์ฑ…์ž„์ž…๋‹ˆ๋‹ค.

    ---

    English Version

    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).

    ๐ŸŽฏ 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

    1. Sign Up: Register at OPEN DART 2. Request Key: Apply for API KEY at Authentication Key Application Page 3. Check Key: Verify issued API KEY at Open API Usage Status

    #### ๐Ÿ“ˆ KRX API KEY Registration

    1. Sign Up: Register and login at KRX OPEN API 2. Request Key: Apply for API authentication key in My Page โ†’ API Authentication Key Application 3. Service Application: After approval, go to Service Use โ†’ Stock menu 4. 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.

    5. Key Verification: After approval, check API KEY in My Page โ†’ AP

    Related MCP Servers

    AI Research Assistant

    AI Research Assistant

    hamid-vakilzadeh

    AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar

    Web & Search
    12 8
    Linkup

    Linkup

    LinkupPlatform

    Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages

    Web & Search
    2 24
    Math-MCP

    Math-MCP

    EthanHenrickson

    Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support

    Developer Tools
    22 81