Korean public holidays, business-day math, and MOLIT real-estate transactions as MCP tools.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
English | νκ΅μ΄
Clean, developer-friendly REST APIs for Korean public data. Korean government open data is powerful but hard to consume β Korean-only docs, XML responses, legacy auth. This suite normalizes it into simple JSON APIs.
βΆ Try it on RapidAPI β free tier, no setup. Hosted and auto-updated; same code as this repo. For AI agents, it's on the MCP Registry β uvx korea-data-mcp.
| API | Status | Description |
|---|---|---|
| Holidays & Business Days | β v1 | Korean public holidays (incl. substitute & temporary holidays) and business-day calculations |
| Real Estate Transactions | β v1 | Normalized MOLIT real transaction prices (apartment/officetel/land, sale & rent) β nationwide (261 sigungu) |
| Address Toolkit | π§ planned | Road/lot address conversion, romanization |
| Business Registration | π§ planned | BRN validation & enrichment |
Hosted (recommended) β a maintained instance with a free tier and no setup:
β Subscribe on RapidAPI, grab your key, and call any endpoint. RapidAPI injects the key for you β copy a ready-made snippet from its Code Snippets panel.
| RapidAPI (hosted) | Self-host | |
|---|---|---|
| Setup | API key in seconds | data.go.kr key + server + cron |
| Data refresh | automatic (we run the sync) | you manage the scheduler |
| Cost | free tier, then paid | free (your own infra) |
Both run the exact same code (this repo). Pick RapidAPI if you'd rather not operate data pipelines; self-host if you want full control.
Covers official public holidays, substitute holidays (λ체곡ν΄μΌ), temporary holidays (μμ곡ν΄μΌ), and election days β the cases most global holiday APIs get wrong for Korea.
Normalized MOLIT (Ministry of Land) real transaction prices β apartment, officetel, and land; sale, jeonse, and monthly-rent β as clean English JSON with cursor pagination.
Daily sync ingests the current + previous month; use the backfill CLI for history:
Environment variables (prefix KDS_, .env supported):
| Variable | Default | Description |
|---|---|---|
KDS_DEV_MODE | false | Skip API-key auth (local dev) |
KDS_API_KEYS | β | Comma-separated accepted API keys |
KDS_PROXY_SECRETS | β | Comma-separated marketplace proxy secrets |
KDS_DB_PATH | data/kds.db | SQLite path |
KDS_DATA_GO_KR_KEY | β | data.go.kr service key (optional; enables holiday + real-estate sync) |
KDS_ENABLE_SCHEDULER | true | Holiday (weekly) + real-estate (daily) sync scheduler |
KDS_RE_REGIONS | all 261 nationwide sigungu | Comma LAWD codes to sync (subset override) |
KDS_RE_DATASETS | all | Comma dataset keys (apt_trade, apt_rent, offi_trade, offi_rent, land_trade) |
To keep the machine awake for serving, disable system sleep
(sudo pmset -a sleep 0) or use a dedicated always-on machine.
See deploy/cloudflared.example.yml for exposing the API via Cloudflare Tunnel
without opening ports.
The read path and the write path are separated so traffic scales independently:
busy_timeout β readers never block
the daily writer and vice-versa, and multiple read workers can run concurrently.scripts/run.sh runs uvicorn with
--workers ${KDS_WORKERS:-2} and KDS_ENABLE_SCHEDULER=false. Each worker is a
separate process (separate GIL); WAL lets them all read at once. Raise
KDS_WORKERS to scale reads with cores.com.choiyounggi.kds-sync,
04:00) via scripts/sync.py β never inside the API server, so a multi-thousand-row
batch never competes with request handling for the GIL.Cache-Control: no-store for
security. The real-estate data is public and changes at most daily β if origin
load grows, serve it with a short Cache-Control: public, max-age=... and let
the CDN absorb reads.The app is hardened at the code layer (API-key auth fail-closed, parameterized SQL, strict input validation, security headers on every response including 5xx, docs/schema off by default, sanitized errors). The following are edge/deploy responsibilities that must be in place before opening the tunnel:
KDS_DEV_MODE=true in production β it disables all auth. The
app logs a warning at startup if it is on.127.0.0.1 only).KDS_ENABLE_DOCS unset (or false) in production; set true only to
serve /docs /openapi.json at the origin.A static, SEO-optimized marketing site is generated from the live DB by
scripts/gen_site.py. For every region that has real transaction data it emits a
Korean landing page (the query users actually type β "κ°λ¨κ΅¬ μννΈ μ€κ±°λκ° API" β backed
by real MOLIT stats, a working curl example, and a signup CTA), plus a holidays
pillar page, a home page, sitemap.xml, and robots.txt.
Quality gate (important): a region is only published if it has at least
MIN_SALE_ROWS (30) apartment-sale rows. Regions without enough data are skipped β
this deliberately avoids thin/doorway pages, which search engines penalize.
Config is env-driven so the same generator works for any domain (put these in
deploy/site.env, gitignored β copy deploy/site.env.example):
| Env | Meaning |
|---|---|
KDS_SITE_URL | canonical/sitemap base, e.g. https://korea-data.cloud |
KDS_API_ORIGIN | origin shown in the on-page curl examples, e.g. https://api.korea-data.cloud |
KDS_CTA_URL | signup call-to-action (RapidAPI / Zyla / Postman listing) |
KDS_SITE_DIR | output dir the app serves (default site/dist) |
The FastAPI app serves site/dist at all non-API paths (app.mount("/")),
while /v1/* stays the JSON API. The two get different response headers: the API
keeps its locked-down default-src 'none' CSP + no-store; the site gets an
HTML-renderable CSP (script-src 'none', inline styles allowed) + public cache.
Files are read from disk per request, so regenerating the site goes live with no
app restart β only a code change needs a restart.
The site is served on the same host as the API (api.korea-data.cloud) β the
API lives under /v1, the site everywhere else β so no new tunnel hostname or DNS
is needed. One-time on the serving host:
Submit https://api.korea-data.cloud/sitemap.xml once in Google Search Console.
Want the site on a bare
korea-data.cloud/wwwlater? Add an ingress rule pointing that hostname at the samehttp://127.0.0.1:8642, route its DNS, and switchKDS_SITE_URLto it. Not required β the api host works for SEO today.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/korea-data-suite)<a href="https://allmcps.com/mcp/korea-data-suite"><img src="https://allmcps.com/api/badge/korea-data-suite?style=directory" alt="Korea Data Suite on AllMCPs" /></a>