Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOSTNostreamable-http 바인딩 호스트. 기본값: 0.0.0.00.0.0.0
PORTNostreamable-http 포트. 기본값: 80008000
OPEN_LAW_IDYes국가법령정보센터 Open API 아이디 (OC 값). 서버 IP 등록도 함께 필요.
MCP_TRANSPORTNostdio (기본, 로컬용) 또는 streamable-http (Docker/게이트웨이용). 기본값: stdiostdio

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_korean_lawA

Primary interface for searching Korean laws, precedents, and administrative rules. It is a "Smart Search" that adapts to the query type.

Capabilities:

  1. Specific Article Lookup (Preferred):

    • Input: "Civil Act Article 103", "민법 제103조", "Criminal Act 250"

    • Behavior: Returns the exact content of the article directly. No need for further steps.

    • Note: Supports both Korean ("민법") and major English names ("Civil Act").

  2. Broad Keyword Search:

    • Input: "school violence", "학교폭력", "adultery case"

    • Behavior: Returns a summarized list of top results across Statutes, Precedents, and Admin Rules.

    • Output: Includes Typed IDs (e.g., statute:12345, prec:67890) which MUST be used with read_legal_resource to get full text.

Usage Tips:

  • ALWAYS try to be specific if you know the law name and article number.

  • If searching for a case by number, just enter it (e.g., "2010다102991").

  • NEW: To find specific articles containing keywords (e.g., "credits" in "Higher Education Act"), first search for the law to get its ID, then use search_law_articles(law_id, "keywords").

search_law_articlesA

Search for specific keywords within the articles of a statute.

Args: law_id: The ID of the law (e.g., "statute:12345" or just "12345"). keywords: Space-separated keywords to search for within article text.

Returns: Markdown formatted text containing the articles that match the keywords.

search_legal_termsA

Search for legal terms (definitions). Returns a list of matching terms with IDs.

search_statutory_interpretationsB

Search for statutory interpretations (authoritative interpretations by Ministry of Government Legislation).

get_statute_attachmentsA

Get a list of attached forms and tables (별표/서식) for a specific statute. Args: law_id: The ID of the law (e.g. "12345" or "statute:12345")

read_legal_resourceA

Reads the full content of a specific legal resource using its Typed ID.

Args: resource_id: A string strictly in the format type:id (e.g., "statute:12345", "prec:98765", "admrul:54321"). The ID is obtained from the search_korean_law output.

Features:

  • Full Text Retrieval: Fetches the complete text of statutes, precedents, or rules.

  • Reference Resolution: Automatically detects references to other laws (e.g., "refer to Article 5") within the text and appends their content to the response, saving you extra round-trips.

  • Robustness: Automatically handles ID formatting issues or outdated IDs by trying fallbacks (ID -> MST -> Detc).

Return:

  • Markdown formatted text containing the resource metadata, body content, and resolved references.

explore_legal_chainA

Perform a 'Deep Search' (Legal Graph). Use this when you want to understand the full context of a law provision, including:

  1. The provision itself.

  2. Other articles it refers to ("Internal/External References").

  3. Detailed regulations that define its scope ("Presidential Decree").

Usage:

  • "Higher Education Act Article 20"

  • "고등교육법 제20조"

Returns:

  • A comprehensive markdown document containing the main article and all connected legal texts.

get_external_linksA

Generate external links to the National Law Information Center (법령정보센터) website.

Use this tool when the user wants to:

  • View the original source on the official government website

  • Share a direct link to a law or precedent

  • Access additional features not available via this MCP (e.g., PDF downloads, official annotations)

Args: resource_id: A Typed ID (e.g., "statute:12345", "prec:98765", "admrul:54321") obtained from search results.

Returns: Markdown formatted links to the official website.

get_article_historyA

Get the revision history (연혁) of a law. Shows when the law was enacted, amended, and what changes were made.

Use this tool when the user wants to:

  • Know when a law was last amended

  • Track the evolution of a law over time

  • Find historical versions of a law

Args: law_name_or_id: Law name (e.g., "고등교육법") or ID (e.g., "statute:12345" or just "12345")

Returns: Markdown formatted list of amendments with dates and summaries.

compare_old_newA

Get the old/new article comparison (신구조문대비) for a law. Shows what changed in the most recent amendment, comparing old and new versions side by side.

Use this tool when the user wants to:

  • See what exactly changed in a recent amendment

  • Compare before/after versions of specific articles

  • Understand the scope of a legal revision

Args: law_name_or_id: Law name (e.g., "고등교육법") or ID (e.g., "statute:12345" or just "12345")

Returns: Markdown formatted comparison showing old and new text for each changed article.

Prompts

Interactive templates invoked by user choice

NameDescription
summarize_law Create a prompt to summarize a specific law. Fetches the full text of the law and asks the LLM to summarize it.
explain_legal_term Create a prompt to explain a legal term based on search results. Performs a smart search for the term and provides the results as context.
compare_laws Create a prompt to compare two laws or articles. Fetches both resources and asks for a comparison.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/joohyukjung/korean-law-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server