pykrx-mcp server
io.github.sharebook-kr/pykrx-mcp·v0.1.3·3 starsKorean stock market data (KOSPI/KOSDAQ) with ETF tracking and fundamental analysis
3 stars33 downloads/wk
Reviews
Write oneNobody has reviewed pykrx-mcp yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
pykrx-mcp tools (8)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
get_etf_ohlcv_by_dateRetrieve ETF OHLCV (Open, High, Low, Close, Volume) data.
get_etf_ticker_listRetrieve list of all ETF tickers traded on a specific date.
get_market_cap_by_dateRetrieve market capitalization data for a stock.
get_market_fundamental_by_dateRetrieve fundamental data (PER, PBR, dividend yield, etc.) for a stock.
get_market_ticker_listRetrieve list of stock tickers for a specific market.
get_market_ticker_nameGet the name of a stock from its ticker code.
get_market_trading_value_by_dateRetrieve trading value by investor type for supply/demand analysis.
get_stock_ohlcvRetrieve OHLCV (Open, High, Low, Close, Volume) data for a Korean stock.
Public scan report
scanner v0.1.10 · 2026-09-28 · same rubric, same numbers if you re-run it
- Code scan28 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 239 days ago4/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How pykrx-mcp compares
Against every graded Finance MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 75/100
- higher than 50% of 1,761 Finance servers
- Tools
- 8
- the typical Finance server has 8
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 3
- more than 83% of 946 Finance servers
- Downloads a week
- 33
- more than 23% of 421 Finance servers with a package
What its tools let an agent do: 8 read
Install pykrx-mcp in Claude Code, Cursor or VS Code
claude mcp add pykrx-mcp -- uvx pykrx-mcp
What the publisher says
From the pykrx-mcp repository's README, as published. We do not edit it. Read it on GitHub
pykrx-mcp
한국 주식 시장 데이터를 AI 에이전트에게 제공하는 MCP (Model Context Protocol) 서버입니다.
pykrx 라이브러리를 기반으로 KOSPI, KOSDAQ, KONEX 시장의 주가, 재무제표, 투자자별 수급, 공매도 등 다양한 데이터를 ChatGPT와 Claude에서 자연어로 조회할 수 있습니다.
☕ 후원하기
프로젝트가 도움이 되었다면 개발자를 응원해주세요!
1. 시작하기
1.1 Claude Desktop에서 사용하기
자동 설치 (권장)
MCP Registry를 통한 원클릭 설치:
npx @modelcontextprotocol/inspector install pykrx-mcp수동 설치
Claude Desktop 설정 파일을 직접 수정:
macOS/Linux: ~/Library/Application Support/Claude/claudedesktopconfig.json Windows: %APPDATA%\Claude\claudedesktopconfig.json
{
"mcpServers": {
"pykrx": {
"command": "uvx",
"args": ["pykrx-mcp"]
}
}
}설정 후 Claude Desktop을 재시작하면 바로 사용할 수 있습니다.
2. 지원하는 데이터 및 API
모든 API는 pykrx 라이브러리를 기반으로 구현되었습니다.
2.1 주식 데이터 (Stock Data)
2.1.1 종목 정보
- getmarketticker_list: 시장별 종목 코드 조회
- getmarketticker_name: 종목 코드로 종목명 조회
2.1.2 가격 데이터
- getstockohlcv: 개별 종목 OHLCV (시가/고가/저가/종가/거래량)
- getmarketohlcvbydate: 특정 일자 전종목 시세
- getmarketprice_change: 기간별 전종목 가격 변동
2.1.3 시가총액
- getmarketcapbydate: 개별 종목 시가총액 조회
2.1.4 재무 지표
- getmarketfundamentalbydate: PER, PBR, EPS, DIV, BPS, DPS
2.1.5 투자자별 거래
- getmarkettradingvalueby_date: 종목별 투자자 수급 (거래대금)
- getmarkettradingvolumeby_investor: 투자자별 거래량
- getmarkettradingvalueby_investor: 투자자별 거래대금
- getmarketnetpurchasesof_equities: 투자자별 순매수 상위 종목
2.2 지수 데이터 (Index Data)
2.2.1 지수 정보
- getindexticker_list: 지수 티커 목록
- getindexticker_name: 지수 이름 조회
- getindexportfoliodepositfile: 지수 구성 종목
2.2.2 지수 가격
- getindexohlcv: 지수 OHLCV 데이터
2.2.3 지수 지표
- getindexfundamental: 지수 PER/PBR/배당수익률
2.3 공매도 데이터 (Short Selling)
- getshortingstatusbydate: 종목별 공매도 현황
- getshortingvolumebyticker: 전종목 공매도 거래량
- getshortingbalance_top50: 공매도 잔고 상위 50
- getshortingvolume_top50: 공매도 거래 비중 상위 50
2.4 외국인 투자 (Foreign Investment)
- getexhaustionratesofforeign_investment: 외국인 보유량 및 한도소진률
2.5 ETF 데이터
- getetfticker_list: ETF 종목 리스트
- getetfohlcvbydate: ETF OHLCV 데이터
총 23개의 데이터 조회 도구 지원
3. 사용 예시
3.1 주가 조회
개별 종목 주가
"삼성전자 최근 한달 주가 보여줘"
"SK하이닉스 2024년 1월 OHLCV 데이터"
"카카오 지난주 주가 움직임 분석해줘"시장 전체 시세
"코스피 전종목 오늘 시세 보여줘"
"코스닥 상위 10개 종목 가격 변동률"3.2 시가총액 & 거래량
"삼성전자 시가총액이 얼마야?"
"삼성전자 최근 한달 거래량 추이"
"네이버 거래대금 분석해줘"3.3 재무 지표
"삼성전자 PER, PBR 알려줘"
"삼성전자 배당수익률 얼마야?"
"네이버 최근 EPS는?"3.4 투자자별 수급 분석
"삼성전자 외국인 매수세 어때?"
"카카오 최근 기관 수급 분석"
"코스피 개인 투자자가 많이 산 종목"
"외국인이 순매수한 상위 10개 종목"3.5 공매도 분석
"삼성전자 공매도 비중 얼마야?"
"코스피 공매도 상위 종목 알려줘"
"공매도 잔고가 가장 높은 종목은?"3.6 지수 조회
"코스피 지수 최근 한달 추이"
"코스닥 150 지수 PER은?"
"반도체 섹터 지수 구성 종목 알려줘"3.7 외국인 투자
"삼성전자 외국인 보유 비중은?"
"외국인 한도소진률 높은 종목"Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
pykrx-mcp: common questions
- Is pykrx-mcp server safe?
- Mostly: it is graded B (75/100). Read the pykrx-mcp safety report
- How do I install pykrx-mcp?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does pykrx-mcp need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is pykrx-mcp maintained?
- The last commit was 276 days ago (2026-02-01). The latest release is v0.1.3.
- What can I use instead of pykrx-mcp?
- Servers from other publishers that do the same job: Tapetide - Indian Stock Market MCP server, Akshare One MCP server and Zwldarren Akshare One MCP server.
- How does pykrx-mcp compare with other Finance MCP servers?
- safety score 75/100 (higher than 50% of 1,761 Finance servers); tools 8 (the typical Finance server has 8); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to pykrx-mcp
Same job from other publishers: the closest match first, then the best rated.
- Tapetide - Indian Stock Market MCP48 tools for ~8,000 NSE & BSE stocks: quotes, screener, financials, filings, FII/DII, optionsnot reviewedEstablishedA
- Akshare OneMCP server that provides access to Chinese stock market data using akshare-onenot reviewedEstablishedA
- Zwldarren Akshare OneProvide access to Chinese stock market data including historical prices, real-time data, news, and…not reviewedGrowingA
- Alpha VantageReal-time financial market data: stocks, forex, crypto, commodities, and economic indicatorsnot reviewedGrowingA
- Stock ScreenerDaily stock screens, RS ratings, market breadth and group rankings for 12 markets. No API keys.not reviewedGrowingA