Korean public data API gateway for discovering and calling data.go.kr APIs from MCP clients.
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.
Korean public data API gateway. A Model Context Protocol (MCP) server that lets any MCP client discover, inspect, and call 80,000+ APIs on data.go.kr โ weather, real estate, business registration, air quality, transit, and more. Built with C# and the official MCP C# SDK.
401/403 or SERVICE_KEY_IS_NOT_REGISTERED the cached key is invalidated and a re-elicit is attempted (session cap: 2 re-elicits)response/header/body/items wrapper, returns clean JSONAfter installation, the fieldcure-mcp-publicdata-kr command is available globally.
discover_api and describe_api depend on this API
(discover_api, describe_api ๋๊ตฌ๊ฐ ์ด API๋ฅผ ์ฌ์ฉํฉ๋๋ค)This server requires a data.go.kr API key (๊ณต๊ณต๋ฐ์ดํฐํฌํธ ์ธ์ฆํค). Key resolution is lazy (on first tool call) and follows the FieldCure MCP Credential ADR:
DATA_GO_KR_API_KEY (canonical) or PUBLICDATA_API_KEY (legacy alias)tools/list still works and tool calls return a
structured error message asking the user to set the env var.--api-key <value> is also accepted as a CLI arg but is intended for manual testing only,
not as a supported configuration path.
Claude Code / Claude Desktop โ add the key to your MCP config:
On Claude Code (โฅ 2.1.76), if the env var is omitted the server prompts for the key via Elicitation on first use.
AssistStudio โ the key is requested via Elicitation on first use and stored in Windows PasswordVault for subsequent launches; the host then injects it as an env var when starting the server.
Docker / CI โ pass the key as a standard environment variable:
If the server receives an HTTP 401/403 or a resultCode=22 / SERVICE_KEY_IS_NOT_REGISTERED_ERROR
body from data.go.kr, it invalidates the cached key and re-requests via Elicitation
(session cap: 2 re-elicits per ApiKeyResolver lifetime). After exhausting retries, the
tool returns a soft-fail error message.
Note: On data.go.kr an HTTP 401 can mean either an invalid key or an API that you have not applied for (ํ์ฉ์ ์ฒญ). If a re-elicitation prompt appears right after calling an API you haven't subscribed to, entering the same key will produce the final error envelope with details โ at that point visit the API's data.go.kr page and apply for access.
Add to claude_desktop_config.json:
Claude Code supports MCP Elicitation, so DATA_GO_KR_API_KEY may be omitted โ the
server will prompt for the key on first tool use.
Add to .vscode/mcp.json:
Install the dotnet tool first. AssistStudio does not auto-install external MCP servers (only built-in ones are managed via the AssistStudio auto-update path). The
fieldcure-mcp-publicdata-krcommand must be on PATH before you add the server, otherwise the connection fails with a generic "server shut down unexpectedly" message.
Then: Settings > MCP Servers > Add Server:
| Field | Value |
|---|---|
| Name | PublicData.Kr |
| Command | fieldcure-mcp-publicdata-kr |
| Arguments | (empty) |
| Environment | DATA_GO_KR_API_KEY = your data.go.kr API key (optional โ AssistStudio can prompt via Elicitation if unset) |
| Description | (auto-filled on first connection) |
| Tool | Description |
|---|---|
discover_api | Search data.go.kr APIs by keyword โ returns names, providers, endpoint URLs |
describe_api | Get operations, request parameters, and response fields for a specific API |
call_api | Call any data.go.kr API with automatic serviceKey injection and response normalization |
discover_apiSearch Korean public data APIs on data.go.kr by keyword. Results are deduplicated by service โ each API appears once even if it has multiple operations.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search keyword (e.g., ๋ฏธ์ธ๋จผ์ง, ๋ถ๋์ฐ, ์ฌ์
์) |
page | int | โ | Page number (default: 1) |
pageSize | int | โ | Results per page (default: 10, max: 50) |
describe_apiGet the request parameters and response fields of a specific API. Use the serviceId from discover_api results.
| Parameter | Type | Required | Description |
|---|---|---|---|
serviceId | string | Yes | Service ID (list_id) from discover_api |
call_apiCall a Korean public data API. The serviceKey is automatically injected โ never pass it yourself. If the call fails with ACCESS_DENIED, the user needs to apply for access to that specific API at data.go.kr.
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Full endpoint URL from describe_api results |
params | string | โ | Query parameters as a JSON string (not a raw object), e.g. '{"stationName":"์ข
๋ก๊ตฌ","dataTerm":"DAILY"}'. Parameter names must come from describe_api's request_parameters โ do not guess. |
maxResults | int | โ | Max items to return (default: 20, prevents context overflow) |
When a data.go.kr API returns an error, the server translates it into a Korean guidance message the LLM can relay directly:
| Code | Meaning | LLM receives |
|---|---|---|
| 12 | NO_OPENAPI_SERVICE | ์ด API๊ฐ ์กด์ฌํ์ง ์์ต๋๋ค. discover_api๋ก ๋ค์ ๊ฒ์ํด๋ณด์ธ์. |
| 20 | ACCESS_DENIED | ์ด API์ ๋ํ ํ์ฉ์ ์ฒญ์ด ํ์ํฉ๋๋ค. (ํฌํธ ๋งํฌ ํฌํจ) |
| 22 | KEY_NOT_REGISTERED | API ํค๊ฐ ๋ฑ๋ก๋์ง ์์์ต๋๋ค. |
| 30 | TRAFFIC_EXCEEDED | ์ผ์ผ ํธ์ถ ํ๋๋ฅผ ์ด๊ณผํ์ต๋๋ค. |
| 31 | UNREGISTERED_IP | ์ด IP๊ฐ ๋ฑ๋ก๋์ง ์์์ต๋๋ค. |
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/publicdata-kr)<a href="https://allmcps.com/mcp/publicdata-kr"><img src="https://allmcps.com/api/badge/publicdata-kr?style=directory" alt="Publicdata Kr on AllMCPs" /></a>