
finalchild/law-mcp
Developer toolsThis page was translated automatically. Technical details may differ from the original. View the original
MCP server for Korean law data access via open.law.go.kr API (experimental. Works in Claude Code)
Overview
This is a Model Context Protocol (MCP) server that allows you to query Korean laws and local regulations (ordinances). Data is provided through the National Legal Information Center (open.law.go.kr) API of the Ministry of Government Legislation. ⚠️ Currently, this MCP server is an experimental implementation that relies on Claude Code's file reading capabilities. get_law_details tool stores statutory information as a file, and Claude Code uses the CLI tool to read the file. Therefore, it works fully only within the Claude Code environment. 📚 For instructions on downloading open.law.go.kr's API documentation, please refer to API_DOCS_DOWNLOAD_GUIDE.md. - Supports searching laws and autonomous regulations (ordinances) - Search by law name or main text - Pagination and various sorting options - Query detailed information of laws/autonomous regulations and save automatic files (JSON/Markdown) - Includes articles, supplementary provisions, amendments, and reasons for amendments 3. Added MCP server settings: For macOS ARM64 (Apple Silicon): Parameters: - query (required): Name or content of the law to search - type: Search type - "law"=Statute (default), "ordinance"=Autonomous Regulation (Ordinance) - page: Page number (default: 1) - display: Number of results per page, up to 100 (default: 20) - search: Search range - 1=Name of law (default), 2=Search text - sort: Sort option - lasc: Statute name ascending (default) - ldes: Name of law ascending - DASC: Ascending of promulgation date - ddes: Ascending promulgation number - NASC: Ascending promulgation number - ndes: Descending promulgation number - EFASC: Ascending order of enforcement date - EFDES: Descending order of enforcement date Parameters: - lawId or mst (either is required): - lawId: Statutory/Autonomous Regulation ID (e.g., '001638' - Road Traffic Act, '2026666' - Autonomous Regulation) -...
Overview (machine translated)
This is a Model Context Protocol (MCP) server that allows you to query Korean laws and local regulations (ordinances). Data is provided through the National Legal Information Center (open.law.go.kr) API of the Ministry of Government Legislation.
⚠️ > Experimental Implementation Guide
Currently, this MCP server is an experimental implementation that relies on Claude Code’s file reading capabilities. The
get_law_detailstool stores statutory information as a file, and Claude Code uses the CLI tool to read the file. Therefore, it cannot be used normally on standard MCP clients like Claude Desktop and only works fully in Claude Code environments.
📚 > API documentation
For instructions on downloading > open.law.go.kr’s API documentation, please refer to API_DOCS_DOWNLOAD_GUIDE.md.
Key Features
- Support for searching laws and autonomous regulations (ordinances)
- Search by law name or main text
- Pagination and various sorting options
- Detailed information inquiry and automatic file saving for laws/autonomous regulations (JSON/Markdown)
- Including provisions, supplementary provisions, amendment texts, and reasons for amendment
Installation and Execution
Using Claude Code
-
First, binary build:
-
Open the Claude Code configuration file:
macOS:
Linux:
- Adding MCP Server Settings:
For macOS ARM64 (Apple Silicon):
- Available in Claude Code after restarting VS Code
Setting Environment Variables
How to Run for Developers
Available Tools
search_laws
Search for Korean laws and local regulations.
Parameters:
query(Required): Name or content of the law to be searched fortype: Search type - “law”=Statutes (default), “ordinance”=Autonomous Regulations (Ordinances)page: Page number (default: 1)display: Number of results per page, up to 100 (default: 20)search: Search range - 1=Law name (default), 2=Main text searchsort: Sorting optionslasc: Ascending order of law names (default)ldes: Descending order of law namesdasc: Ascending order of the date of promulgationddes: Descending order of promulgation date
This page was translated automatically. Technical details may differ from the original.
Install
This server does not publish a one-line install command.
Open the repository installation guide New to MCP? Start with the mcpskill.org guide →Configuration
{
"mcpServers": {
"law-mcp": {
"command": "/path/to/law-mcp/build/law-mcp",
"env": {
"LAW_API_OC": "your-email-id"
}
}
}
}