Labsco
MCP SERVER

KOSPI/KOSDAQ Stock Server

by dragon1086

Pull KOSPI and KOSDAQ prices, market caps and fundamentals straight from the KRX Data Marketplace.

Equity & Fund Market Data
Summary
Korean market data, past the login wall.

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.

What it is

A Python MCP server serving KOSPI and KOSDAQ market data from KRX, signing in through Kakao with a headless Playwright browser.

What you get
  • 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
Requirements

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.

Setup effort

One command plus a key — uv pip install kospi-kosdaq-stock-server, then supply credentials