Share this article:

If you run a legal or compliance agent, or you want to feed authoritative government data into an LLM, the Ministry of Government Legislation’s announcement this week is a resource you can use today. The short version: 7.77 million Korean statute entries are now open through a single URL, and behind that URL sits not just 24 lookup tools but a tool that checks whether the agent’s own citations match the source text. No authentication is required, and it has been live since November 30.

Consider the scene. An agent is asked, “What happens if a company collects personal data without consent?” Until now, the answer’s source of truth was the model’s training data. The article number could be plausible while the fine amount lags an amendment, a citation hallucination with a straight face. That changes now. The agent pulls the current article text from the government server, receives the source URL with it, and finally asks the server whether the answer matches the text. This post reports what we got back when we actually called those 24 tools: what answers in what time, and where the server draws its own lines.

An address was given to 7.77 million entries

The Ministry of Government Legislation (Minister Cho Won-chul) opened the National Law Information Center to MCP, the Model Context Protocol, starting November 30, 2026. The corpus covers roughly 7.77 million entries: statutes, administrative rules, local autonomy rules, and case law with interpretive precedents. The center already serves about 1.06 million people a day. The new door is for machines.

The technical core is format. Alongside the existing HTML and XML feeds, the data now comes in Markdown. A statute’s hierarchy (chapter, article, paragraph, item, sub-item) survives into the format LLMs read natively, so “Article 59, paragraph 2” is a field, not a guess. One boundary is explicit: attached forms and annexes built from complex tables, images, or diagrams are not provided in Markdown, because conversion loses their structure. Penalty schedules live there.

There is a roadmap too. A public AI statute-search service for all citizens is planned for July 2027, and the MCP surface will grow with statute-to-statute relationship lookups and detailed annex search. The 24 tools open today are the foundation.

One URL, 24 tools, no login

The server lives at https://www.law.go.kr/lawmcp. The official connection guide says “no separate login or auth key required,” and the live server agrees: an initialize request without any credentials opens a session, and tools/list returns 24 tools.

Ministry of Government Legislation MCP server. The 24 tools split into four groups: search, fetch, analysis, verification

Grouped by role, the tools form four clusters.

flowchart TB
    Q[Question<br/>"What if personal data is collected without consent?"] --> C[MCP client<br/>no auth · Streamable HTTP]
    C --> T1[Search<br/>search_situation · search_law_name · search_precedent]
    C --> T2[Fetch<br/>get_article · get_law_info · get_law_as_of_date]
    C --> T3[Analyze<br/>compare_law_versions · get_three_tier_comparison · get_penalties]
    C --> T4[Verify<br/>verify_citations · explain_legal_term]
    T1 --> DB[(National Law Information Center<br/>~7.77M entries)]
    T2 --> DB
    T3 --> DB
    T4 --> DB
    DB --> R[Article text + source URL]
    R --> A[Agent answer]
    A -.re-verify once the answer is written.-> T4

The search cluster centers on search_situation: give it a natural-language description of a situation and it returns related articles, and the response’s search-method field says “semantic search”, meaning a search over the full corpus. The fetch cluster’s get_article returns the full article (paragraphs, items, sub-items) plus a source URL. get_law_info returns a statute card: name, statute ID, responsible agency, phone number, and per-duty department contacts. The analysis cluster encodes how legal work actually moves: version comparison (compare_law_versions), the three-tier law-decree-rule delegation view (get_three_tier_comparison), and whether a local ordinance kept pace with its upper law (check_ordinance_updates).

The detail worth noticing is the tool descriptions. Each one carries usage instructions. search_situation tells the caller to read the excerpts, not just the top hit. get_article says to cite only the text this tool returns. The prompt engineering has moved server-side: any agent that reads the tool list gets the operating manual for free.

Connection is one line

If you use Claude Code, the official guide’s command is:

claude mcp add --scope user --transport http law-mcp https://www.law.go.kr/lawmcp

Then check the connection with /mcp in a new session. In ChatGPT, add a custom MCP server under plugins, paste the URL, and set authentication to “none.” In Claude’s web UI, add a custom connector and choose “no login” for auth. Gemini desktop connects through npx mcp-remote https://www.law.go.kr/lawmcp. The guide also offers a prompting tip: prefixing a question with “use the law tools” makes the model reach for the tools more reliably.

108ms article fetch, 2.9s semantic search

On the afternoon of 2026-12-01 we called each tool from this network. Single run, so treat the latencies as reference values.

Measured tool latency. Article-fetch tools all answer under a second; semantic search and the dictionary take 3 to 5 seconds

Tool Call Latency (single run)
get_article PIPA Article 71 full text 107.8ms
search_law_name “PIPA” -> 2 hits (act + decree) 291.7ms
get_law_info PIPA statute card 827.6ms
verify_citations 1 citation cross-check 104.5ms
get_law_as_of_date Article 71 as-of lookup 109.4ms
compare_law_versions 1 article, two points in time 162.3ms
get_three_tier_comparison Article 15 delegation, 3-tier 619.2ms
search_situation 1 natural-language query -> 30 excerpts 2,936.9ms
explain_legal_term “jeonse” plain/legal term 5,112.9ms

What get_article returns is more than the text. The response carried the current Article 71, “up to 5 years imprisonment or a fine of up to 50,000,000 won,” with its amendment history (2016, 2020, 2023) and the statute’s effective date (2026-09-11) attached, plus the source URL (www.law.go.kr). A 2026-amended penalty arrived as the server’s current version, not whatever year the model’s memory happened to hold.

For search_situation, the measured input was “the article requiring apps to notify users and obtain consent before collecting location data.” It returned 30 hits, and the top one was Article 39 (penalties) of the Location Information Protection Act, excerpt included. Because the search is semantic, the query never needed to know a statute name or an article number.

The slow tools tell you what they do. explain_legal_term took 5.1 seconds, the slowest call, because one word fans out across the everyday-terms dictionary, the legal English dictionary, and the statute body search. Its response carries an advisory field that warns, in the server’s own words, that dictionary mappings can lag real usage. The server discloses its limits before you hit them.

How a legal answer gets built. The old manual site-search path versus the agent MCP tool chain

Direct article fetch (108ms) and semantic search (2,937ms) processing the same requests. The count on the right is what each lane handled in 8 seconds.

One honest failure is recorded here. get_penalties bundles sanctions by article title (penalties, administrative fines, dual-liability rules). With a free-form duty phrasing (“providing personal data to a third party without consent”), it returned empty results twice: fast at 83.6ms and 95.3ms, but empty. Tool input precision decides the output.

The server catches hallucinations

The most important measurement is verify_citations. The tool cross-checks the citations in an answer against the source: does the article exist, was it deleted, and do the numbers (sentences, amounts) in the quote appear in the original. We fed it three things.

First, a correct citation. “Under PIPA Article 71, up to 5 years imprisonment or a fine of up to 50,000,000 won” came back “1 of 1 confirmed,” with the full source text and its URL.

Second, a real article with a wrong number. The same Article 71, but with the pre-2023 penalty: “up to 3 years or 30,000,000 won.” The server answered: “Warning: the number [‘3000’] in the citation is not in the source. Compare sentences, durations, and amounts against the original.” Its summary field goes further: “The article exists, but the penalty, duration, or amount in the citation is not in the source. You may have attached the content of a different article, compare the passage, and if you cannot confirm it, remove it from your answer.” 30,000,000 won was the fine ceiling before the 2023 amendment. That is the classic pattern of a model’s memory trailing an amendment. And the server caught it by comparing numbers.

Third, a nonexistent article. “Article 999” without a statute name came back as “existence: cannot confirm,” with the reason “it is unknown which law this refers to” and the instruction “re-verify with the formal statute name. Do not assert it does not exist.” Absence is reported as unconfirmed, not as false. Conservative by design.

Three real responses. Natural-language search returns 30 excerpts, the article fetch returns full text with source, and the citation check flags the wrong number

In plain terms: the librarian no longer just lends the book; it checks the page numbers in your notes. The place to put this in an agent design is equally clear. Build the answer with the search tools, pin verify_citations as the final step of the loop. The pattern is not obeying the server’s “remove it” instruction verbatim; it is feeding the verifier’s output back into the agent’s judgment.

The law’s history lives on the server too

The hardest question in legal work is often “what did the law say then?” We measured four tools that take dates.

Asked for PIPA Article 71 as of 2022-05-01 via get_law_as_of_date, the server did not return a stale article. It returned a boundary: “As of that date this statute had not yet entered into force (we checked its full enforcement history). A different statute, a repealed older law, may have governed that day. Do not answer as if this article applied then.” The result field simply says “pre-effective.” This server’s PIPA record (statute ID 011357) begins at the version effective 2026-09-11 (promulgated 2026-03-10, No. 21445). The 2022 law lives in a different record. The server chose not to hand back the wrong article and say nothing. It hands back the right answer, which is the boundary. 109.4ms.

compare_law_versions turns the same question into numbers: between 2022-05-01 and 2026-12-01, “1 amendment took effect,” a comparison summary of “1 newly added, 0 amended, 0 deleted,” and the new article’s full text. The advisory field repeats that the start point predates effectiveness. get_upcoming_changes looks the other direction: promulgated-but-not-yet-effective amendments. “None scheduled,” plus an operational detail nobody asks for. “This server caches the ministry’s responses for up to one day, so amendments promulgated in the meantime may not be visible yet.” A one-day response cache, stated by the server itself. 77.7ms.

We also ran get_three_tier_comparison on Article 15 (collection and use), which lists six legitimate grounds for processing personal data. The tool lays the statute’s text next to the lower-level provisions that give the delegation effect, labels which text is today’s effective version and which comes from the three-tier comparison material, and closes with “for confirmed citations, use the original text.” 619.2ms.

All four history tools answer under a second. And the advisory field, repeated in every response, reveals the design intent: this is not a data feed. It is an actor that performs legal duty care in strings. “Do not answer that way.” “Compare against the original.” “If you cannot confirm, remove it.” Alongside the usage instructions in the tool descriptions, the response advisories form a second layer that steers agent behavior.

What this says to ThakiCloud

From the Paxis perspective, this server is the simplest possible MCP connector. There is nothing to connect. The URL is the whole handshake. Paxis runs an agent’s tool calls in an isolated sandbox and routes every action through a policy gate with an audit log. With 24 tools, the audit trail records exactly which tool was called, with what arguments, and what came back in how many milliseconds. For a customer running a compliance agent, the distance between “official government data” and “inside the agent loop” shrinks: no ETL, no scraping.

The bigger idea is what verify_citations demonstrates: a tool that does not only serve data but verifies the agent’s answer, living in the same server. That pattern is not specific to law. Any organization with an authoritative ledger (financial transactions, clinical dosing, manufacturing quality) can open its MCP as a pair: lookup tools plus a verification tool. When Paxis connects domain ledgers to agents, the design question is where the verification tool sits: second in the list, or first in the loop.

From the ai-platform perspective, the service shape is the reference. A 7.77-million-entry public corpus served as stateless HTTP MCP, with single-request latencies in the low hundreds of milliseconds and 3 to 5 seconds for the semantic and dictionary paths, with no GPU on the server side. It is the lower bound for what a domain ledger service looks like when the client model keeps getting bigger. To be clear: this service is the ministry’s, not ThakiCloud’s. Our difference is that we build the same shape of domain MCP on top of a customer’s internal ledgers.

The limits the server states itself

Three, compressed. First, the attached forms and annexes: penalty and fine schedules often live in annex tables that the Markdown conversion excludes. get_attached_form exists, but the “complex table” zone is where measured answers came back empty. Amount-centric questions still need a person or another channel. Second, no authentication means no guaranteed rate limit. This is a public service used by 1.06 million people a day. Do not batch-scrape 7.77 million entries through it. Third, the latency split: direct fetches answer in ~100ms, semantic search and the dictionary take 3 to 5 seconds. Design the agent loop’s tool order and call budget around that gap.

One more: these tools provide legal information, not legal advice. get_article responses carry source URLs, and the tool descriptions repeat “cite only what this tool returns.” Judgment remains with the human and the lawyer.

In closing

The source of truth for legal answers moved from the model’s memory to the government’s server. The current article now arrives with its amendment history. Every answer carries a source URL. Citations get cross-checked against the original. The 30,000,000-won case is the symbol: verify_citations warned that the number was not in the source. Hallucinations did not disappear. The point where they get caught moved out of the agent and onto the server.

Connect to it. One-line command, no authentication. And pin verify_citations as the last step of your agent loop. When the public AI statute search ships in July 2027 and the MCP surface grows, today’s 24 tools will be among the oldest public MCP servers in Korea.

References

This post was written from the sources below; latency figures are single-network measurements from 2026-12-01.

Share this article:

Tags: agent-tools, citation-verification, korean-government, law-go-kr, legal, mcp, rag

Categories:

Updated: