Skip to main content
Glama

korealaw

Read South Korean law in English without leaving your tools. korealaw is a small forwarding client for the hosted Koreanics law service: the tool list is answered from your own machine using captured definitions, and each call travels upstream, with the service's answer handed back exactly as it arrived.

All seven of the service's captured tools are exposed. Search the English text of Acts and their enforcement decrees by keyword and pull the full text of a single article; get the shape of a law before diving into it, or list the laws in the database by subject area; search the National Assembly bills Koreanics tracks, open one bill by its seven-digit number, and read the latest Bill Briefs and Weekly Briefs.

The tools

  • search_law_articles — Keyword search over the English text of South Korean statutes and enforcement decrees. Each Act and its Enforcement Decree are separate laws with their own slugs, and periods, amounts and thresholds often live in the Decree, so searching it too matters. Optionally narrow to one law with law, and cap results with limit. Returns matching articles with a short snippet and URL.

  • get_law_article — The full English text of one article of a statute or decree, given by law (slug or name) and article number, with a one-line plain-English explanation where available, the version date and the official Korean source link.

  • get_law_overview — The structure of one law without its full text: official English name, version in force, how much is translated, its chapters and sections with article ranges, the linked decree or parent Act, and how many amendment bills are pending.

  • list_laws — The statutes and decrees available in English, with slug, subject area, version in force and translated article counts. Paged at 50 per call by default; pass offset to continue, or filter by area.

  • search_bills — Keyword search over tracked National Assembly bills, with English titles and one-line summaries. Returns stage, dates, topic tags and URL; optionally filter by stage.

  • get_bill — Facts about one bill by its bill_no: English title, current stage and date, filing date, effective dates when promulgated, a one-line summary of what the bill proposed as filed, and links.

  • latest_briefs — The most recent Koreanics briefs, Bill Briefs analysing one bill for foreign companies or Weekly Briefs, chosen with kind (bill by default, or weekly), with title, date, summary line and URL.

Related MCP server: LexLink

Install and run

As an MCP server via npm:

npx -y @reneturcios/korealaw mcp

MCP client configuration:

{
  "mcpServers": {
    "korealaw": {
      "command": "npx",
      "args": ["-y", "@reneturcios/korealaw", "mcp"]
    }
  }
}

As a container:

docker run -i ghcr.io/cloudcorprecords/korealaw
docker run --rm ghcr.io/cloudcorprecords/korealaw list_laws '{}'

CLI

A single binary covers both the command line and the MCP server. Every tool is a subcommand whose one argument is a JSON string of that tool's inputs:

korealaw search_law_articles '{"query":"overtime pay"}'
korealaw get_law_article '{"law":"labor-standards-act","article":"56"}'
korealaw get_law_overview '{"law":"labor-standards-act"}'
korealaw list_laws '{"area":"Employment & Labor"}'
korealaw search_bills '{"query":"customs"}'
korealaw get_bill '{"bill_no":"2216797"}'
korealaw latest_briefs '{"kind":"weekly"}'
korealaw --version

Exit codes: 0 for a successful forwarded call, 1 when the result that comes back is an error, and 2 for usage mistakes like an unknown subcommand or a JSON argument that does not parse.

Configuration

  • KOREANICS_MCP_URL — Replaces the upstream endpoint. Defaults to the pinned hosted endpoint, https://koreanics.com/wp-json/koreanics/v1/mcp. (This override variable is a reconstruction introduced by this rebuild.)

The Koreanics registry record lists no headers for its remote, so korealaw never attaches an authentication header — every call goes upstream keyless.

When the upstream cannot answer — it returns a JSON-RPC error, answers with a non-2xx status, sends a body that cannot be read, or the request itself fails — the caller receives an error result whose text begins with korealaw error:.

How forwarding works

The first call of a process opens a session against the upstream: an initialize request (protocol version 2025-03-26), a notifications/initialized notification, and then the tools/call. If the service issues an Mcp-Session-Id header during initialize, korealaw repeats it on subsequent requests and keeps reusing that one session until the process ends. Replies are understood in both plain JSON and server-sent-events framing. Successful results are passed through untouched, isError flag and any extra fields included.

Development

npm install
npm run build   # tsc -> dist/ (dist/cli.js is the bin)
npm test        # tsx --test test/*.test.ts — stubbed upstream, no network
npm run dev     # run the CLI from source

The suite compares the served tool list against the captured surface tool for tool, walks the session handshake and its reuse, proves no Authorization header is sent under any environment, and confirms that arguments travel upstream unchanged and results return unchanged for every one of the seven tools.

License

MIT — see LICENSE. Copyright (c) 2026 Rene Turcios.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables searching and retrieving Korean legal information including laws, court precedents, legal interpretations, and local ordinances from the Korean National Law Information Center API with intelligent search ranking.
      -
    • F
      license
      A
      quality
      B
      maintenance
      Enables AI systems to search, retrieve, and analyze Korean legal information from the National Law Information API (law.go.kr), including laws, administrative rules, English translations, and law-ordinance linkages.
      26
      2
      -
    • A
      license
      A
      quality
      D
      maintenance
      Enables users to search and retrieve South Korean statutes, precedents, and administrative rules via the National Law Information Center API. It supports deep legal chain analysis, legislative history tracking, and legal terminology lookups through natural language.
      10
      82 PyPI
      5
      MIT