KRX moved its data behind a Kakao login, which is why this server carries a headless browser rather than an API client. That is also its cost: it holds a real Kakao account's credentials, and that account cannot have 2FA enabled.
A Python MCP server serving KOSPI and KOSDAQ market data from KRX, signing in through Kakao with a headless Playwright browser.
- Every KOSPI and KOSDAQ ticker and name loaded for lookup
- OHLCV — open, high, low, close, volume — for a given stock
- Market capitalization data
- Fundamentals: PER, PBR and dividend yield
- Trading volume broken down by investor type — institutional, foreign, individual
- Index OHLCV for the KOSPI and KOSDAQ indices
- Sessions managed for you, with a 4-hour timeout and automatic re-login
Python 3.10+, playwright install chromium, and the username and password of a Kakao account, supplied as environment variables — KRX now requires a Kakao or Naver login before it will serve its data. Two-step verification must be off on that account, and the first login may need approving in KakaoTalk.
One command plus a key — uv pip install kospi-kosdaq-stock-server, then supply credentials
