ko-stock-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ko-stock-mcp Get Samsung Electronics stock trade info for 2025-03-10"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ko-stock-mcp
An MCP server that exposes Korean DART (전자공시시스템, Financial Supervisory Service electronic disclosure) data to MCP clients such as Claude Desktop.
한국어 문서는 README.ko.md를 참고하세요.
Tools
Both DART (electronic disclosure) and KRX (Korea Exchange) tools are provided.
DART (disclosure)
Tool | Description |
| Look up a company's DART corp_code (8-digit) by name or stock code (6-digit). Entry point for the other tools. |
| Company profile (name, CEO, market class, industry, incorporation date, etc.). |
| Search disclosures by company / date range / disclosure type. |
| Fetch a disclosure's original document. Large docs return a table of contents ( |
| XBRL financial statements (BS / IS / CIS / SCE / CF) from periodic reports. |
| Today's date in KST/UTC ( |
KRX (Korea Exchange) — requires KRX_API_KEY
Tool | Description |
| Determine which market (KOSPI/KOSDAQ/KONEX) a stock code belongs to. Uses DART corp class first, falls back to KRX. |
| Daily trading data for a business day (close, change rate, volume, market cap, etc.). |
| Stock base info (name, standard/short code, listing date, par value, shares outstanding, etc.). |
Typical flow — disclosures/financials: get_corp_code → (get_disclosure_list |
get_financial_statement | get_company_info) → get_disclosure for full text. Market data:
(optionally get_market_type →) get_stock_trade_info | get_stock_base_info (bas_dd
must be a business day; non-trading days return empty).
KRX tools return a friendly error when
KRX_API_KEYis unset; DART features are unaffected. Noteget_market_typeworks with just the DART key (via corp class).
KRX response fields
get_stock_trade_info / get_stock_base_info return the raw KRX fields verbatim under
result (amounts/quantities are strings, dates are YYYYMMDD).
get_stock_trade_info (daily trading data)
Field | Meaning |
| Base date (YYYYMMDD) |
| Stock code (6-digit short code in this response) |
| Stock name |
| Market (KOSPI/KOSDAQ/KONEX) |
| Section/board |
| Closing price |
| Change vs. previous day |
| Change rate (%) |
| Open / High / Low |
| Accumulated trading volume (shares) |
| Accumulated trading value (KRW) |
| Market capitalization (KRW) |
| Listed shares |
get_stock_base_info (stock base info)
Field | Meaning |
| Standard code (12-digit, e.g. KR7005930003) |
| Short code (6-digit, e.g. 005930) |
| Full stock name |
| Abbreviated name |
| English name |
| Listing date (YYYYMMDD) |
| Market (KOSPI/KOSDAQ/KONEX) |
| Security group (e.g. common stock) |
| Section/board |
| Share type (e.g. ordinary) |
| Par value |
| Listed shares |
get_market_type returns { "market": "KOSPI"|"KOSDAQ"|"KONEX", "source": "dart"|"krx"|"cache" }
(source is where the classification came from).
Related MCP server: dart-mcp
Requirements
Python >= 3.10
A DART Open API key — sign up at https://opendart.fss.or.kr (free, instant).
(Optional) A KRX Open API key — sign up at https://openapi.krx.co.kr, request a key, then apply for the six stock services (3 daily-trade + 3 base-info); approval takes ~1 day. Only needed for the KRX market-data tools.
Setup
uv sync
cp .env.example .env # then put your DART_API_KEY in .envRun / develop
# Launch the MCP Inspector for local testing
uv run mcp dev src/ko_stock_mcp/server.py
# Or run the server directly (stdio)
uv run ko-stock-mcpClaude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"ko-stock-mcp": {
"command": "uv",
"args": ["--directory", "/absolute/path/to/ko-stock-mcp", "run", "python", "-m", "ko_stock_mcp.server"]
}
}
}uv --directory runs the server with this project as the working directory, so .env
(with DART_API_KEY, and optionally KRX_API_KEY) is loaded automatically — no need to
duplicate the keys here. If you prefer, you can instead pass them explicitly:
"env": { "DART_API_KEY": "<YOUR_DART_API_KEY>", "KRX_API_KEY": "<YOUR_KRX_API_KEY>" }On macOS the config lives at
~/Library/Application Support/Claude/claude_desktop_config.json. Restart Claude Desktop
after editing.
License
MIT — see LICENSE.
Available Tools
9 toolsget_company_infoA
기업개황: 회사의 기본 정보를 조회합니다. corp_code는 get_corp_code로 확보하세요.
회사명(정식/영문/약식), 대표자명, 법인구분(corp_cls: Y유가/K코스닥/N코넥스/E기타), 종목코드, 업종코드, 설립일, 결산월, 주소, 홈페이지, 전화 등을 제공합니다.
Args: corp_code: 공시대상회사 고유번호(8자리).
Inputs: corp_code (required).
get_corp_codeA
DART 고유번호(corp_code)를 회사명 또는 종목코드로 조회합니다.
다른 DART 도구들은 대부분 corp_code(8자리)를 필요로 하므로, 먼저 이 도구로 회사의 corp_code를 확보하세요. 비상장법인도 조회할 수 있습니다. 회사명은 부분 일치 검색을 지원합니다.
IMPORTANT: 영문명만 알고 한글 정식 명칭을 모르는 경우, 웹 검색으로 정확한 한글 명칭을 먼저 확인한 뒤 corp_name에 입력하면 정확도가 올라갑니다.
Args: corp_name: 회사 명칭(한글 또는 영문). 부분 일치 검색 지원. stock_code: 상장회사의 종목코드(6자리, 예: 005930). limit: 반환할 최대 회사 수 (기본값: 20).
Inputs: limit, corp_name, stock_code.
get_disclosureA
공시서류 원본을 파싱해 가져옵니다. (접수번호는 get_disclosure_list의 rcept_no)
문서가 크면(약 200KB 초과) 전체 대신 목차(result.type == "toc")를 반환합니다. 목차가 반환되면 유저의 질문과 관련된 섹션을 section_id로 다시 조회하세요. 답변 후에는 조회하지 않은 나머지 섹션 목록을 유저에게 안내해 추가 조회 여부를 선택하게 하세요. 지정한 섹션도 크면 하위 목차(parent_section_id 포함)를 반환합니다.
Args: rcept_no: 접수번호(14자리). section_id: 조회할 섹션 ID(목차의 sections[].id = AASSOCNOTE). 생략하면 전체를 시도하고, 크면 목차를 반환합니다.
Inputs: rcept_no (required), section_id.
get_disclosure_listA
공시검색: 회사·기간·공시유형 등 여러 조건으로 공시 목록을 조회합니다.
최근 공시를 검색할 때는 bgn_de(YYYYMMDD)를 반드시 지정하세요. 특정 회사의 공시만 보려면 먼저 get_corp_code로 corp_code(8자리)를 확보하세요.
Args:
corp_code: 공시대상회사 고유번호(8자리).
bgn_de: 검색 시작 접수일자(YYYYMMDD). 기본값은 종료일(end_de).
end_de: 검색 종료 접수일자(YYYYMMDD). 기본값은 당일.
last_reprt_at: 최종보고서만 검색할지 여부(Y/N). 기본값 N.
pblntf_ty: 공시유형 한 글자 — A:정기공시, B:주요사항보고, C:발행공시,
D:지분공시, E:기타공시, F:외부감사관련, G:펀드공시, H:자산유동화,
I:거래소공시, J:공정위공시.
pblntf_detail_ty: 공시상세유형(4자리).
corp_cls: 법인구분 — Y:유가증권, K:코스닥, N:코넥스, E:기타. (복수 지정 불가)
sort: 정렬 기준 — date:접수일자, crp:회사명, rpt:보고서명. 기본값 date.
sort_mth: 정렬 방법 — asc:오름차순, desc:내림차순. 기본값 desc.
page_no: 페이지 번호(1n). 기본값 1.
page_count: 페이지당 건수(1100). 기본값 10, 최대 100.
Inputs: sort, bgn_de, end_de, page_no, +7 more.
get_financial_statementA
재무제표: 정기보고서 내 XBRL 재무제표의 모든 계정과목을 조회합니다.
상장법인(유가·코스닥) 및 주요 비상장법인(사업보고서 제출대상 & IFRS 적용)이 제출한 정기보고서의 전체 계정을 제공합니다. corp_code는 get_corp_code로 확보하세요.
Args: corp_code: 공시대상회사 고유번호(8자리). bsns_year: 사업연도(4자리). 2015년 이후부터 제공. reprt_code: 보고서 코드 — 11013:1분기, 11012:반기, 11014:3분기, 11011:사업보고서. fs_div: 개별/연결 구분 — OFS:재무제표(개별), CFS:연결재무제표. sj_nm: 특정 재무제표만 필터링 — 재무상태표, 손익계산서, 포괄손익계산서, 자본변동표, 현금흐름표 중 하나. 생략하면 전체 반환.
Inputs: fs_div (required), bsns_year (required), corp_code (required), reprt_code (required), +1 more.
get_market_typeA
종목코드가 속한 시장(KOSPI/KOSDAQ/KONEX)을 판별합니다.
먼저 DART 기업개황(corp_cls)으로 판별을 시도하고, 실패하면 KRX 종목기본정보를 시장별로 조회해 판별합니다. KRX 시세/기본정보 조회의 진입점으로 쓰입니다.
Args: stock_code: 종목 단축코드(6자리, 예: 005930). bas_dd: 기준 영업일(YYYYMMDD). 생략 시 최근 영업일로 시도합니다.
Inputs: stock_code (required), bas_dd.
get_stock_base_infoA
특정 종목의 기본정보를 조회합니다.
종목명(ISU_NM/ISU_ABBRV), 표준코드(ISU_CD), 단축코드(ISU_SRT_CD), 시장구분(MKT_TP_NM), 증권구분(SECUGRP_NM), 상장일(LIST_DD), 액면가(PARVAL), 상장주식수(LIST_SHRS) 등을 KRX 원본 필드 그대로 반환합니다.
bas_dd는 영업일(YYYYMMDD)이어야 합니다. market을 모르면 생략하세요(자동 판별).
Args: stock_code: 종목 단축코드(6자리, 예: 005930). bas_dd: 기준 영업일(YYYYMMDD). market: KOSPI | KOSDAQ | KONEX. 생략 시 자동 판별.
Inputs: bas_dd (required), stock_code (required), market.
get_stock_trade_infoA
특정 종목의 특정 영업일 일별 매매정보(시세)를 조회합니다.
종가(TDD_CLSPRC), 전일대비(CMPPREVDD_PRC), 등락률(FLUC_RT), 시/고/저가, 거래량(ACC_TRDVOL), 거래대금(ACC_TRDVAL), 시가총액(MKTCAP), 상장주식수(LIST_SHRS) 등을 KRX 원본 필드 그대로 반환합니다.
bas_dd는 반드시 영업일(YYYYMMDD)이어야 합니다. 주말/공휴일이면 데이터가 없으니, get_today_date로 오늘을 확인하고 비영업일이면 직전 영업일로 다시 조회하세요. market을 모르면 생략하세요 — 시장을 자동 판별합니다.
Args: stock_code: 종목 단축코드(6자리, 예: 005930). bas_dd: 기준 영업일(YYYYMMDD). market: KOSPI | KOSDAQ | KONEX. 생략 시 자동 판별.
Inputs: bas_dd (required), stock_code (required), market.
get_today_dateA
오늘 날짜를 KST와 UTC 기준으로 제공합니다.
DART 조회에 쓰이는 YYYYMMDD 형식과 ISO 형식을 함께 반환합니다. "최근", "올해" 같은 상대적 날짜 질의를 해석할 때 사용하세요.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool has a distinct purpose: company info, corp code lookup, disclosure list/detail, financial statements, market type, stock base info, trade info, and date retrieval. No overlapping functionality.
All tool names follow a consistent verb_noun pattern using snake_case (e.g., get_company_info, get_stock_trade_info), making them predictable and easy to distinguish.
With 9 tools covering company info, disclosures, financials, and stock market data, the count is well-scoped for the domain, neither excessive nor insufficient.
Core workflows (company lookup, disclosure search, financial statements, stock quotes) are covered. Minor gaps like historical price trends or advanced analytics are absent but not critical for basic stock information.
Maintenance
Related MCP Connectors
Search company disclosures and financial statements from the Korean market. Retrieve stock profile…
FinBridge is a hosted MCP server for Korean company disclosures, read in English. DART filings and normalized financial statements, business segments, insider reports and 13F holdings, with US, Japanese and European filers on the same schema for comparison. Search a company by its registered English name or its Korean name. Every answer names the filing, the receipt number and the date. Korean price delivery is planned and not currently served. Docs: https://www.gronox.kr/docs
Financial data MCP server for global quotes, news, financials, funds, bonds, IPOs and macro data.
2812Financial data and research MCP for US/CN/JP equities: filings, statements, ownership, signals.
Related MCP Servers
- FlicenseAqualityDmaintenanceMCP server that provides Korean stock market data including indices, top gainers, stock quotes, news, fundamentals, and buy recommendations. Enables LLMs to access real-time and historical Korean stock information.6-
- AlicenseAqualityDmaintenanceMCP server for Korea's DART (Data Analysis, Retrieval and Transfer) electronic disclosure system, operated by the Financial Supervisory Service (FSS). Exposes company disclosures, company profiles, and financial statements via the OpenDART public API.39 npmMIT

pykrx-mcpofficial
AlicenseNot gradedqualityDmaintenanceProvides Korean stock market data (KOSPI, KOSDAQ, KONEX) including prices, fundamentals, investor trading, short selling, and indices via MCP protocol, enabling natural language queries from AI agents like ChatGPT and Claude.62 PyPI3MIT- AlicenseCqualityBmaintenanceEnables querying South Korean stock disclosures, financial statements, and shareholder reports via the OpenDART API from any MCP-compatible client.8785 PyPIMIT