Skip to main content
Glama
law-ontology-mcp
by wintenboy

법제처 법령 LOD 온톨로지의 SPARQL 엔드포인트를 활용한 법령 검색 MCP 서버입니다.

설치

git clone https://github.com/wintenboy/law-ontology-mcp.git
cd law-ontology-mcp
pip install -e .

Related MCP server: LexLink

설정

MCP 클라이언트 설정 파일에 추가:

{
  "mcpServers": {
    "law-ontology": {
      "command": "law-ontology-mcp"
    }
  }
}

클라이언트

설정 파일 경로

Claude Desktop (macOS)

~/Library/Application Support/Claude/claude_desktop_config.json

Claude Desktop (Windows)

%APPDATA%\Claude\claude_desktop_config.json

Cursor

.cursor/mcp.json

Windsurf

~/.codeium/windsurf/mcp_config.json

Claude Code

claude mcp add law-ontology -- law-ontology-mcp

도구

도구

설명

search_law

키워드로 법령 검색

get_law_detail

법령 상세 정보 조회

search_by_agency

소관부처별 법령 검색

search_by_region

지역별 자치법규 검색

get_statistics

법령 유형별 통계

execute_sparql

SPARQL 쿼리 직접 실행

list_laws

법령 유형별 목록 조회

visualize_law_network

법령 온톨로지 네트워크 시각화

사용 예시

"개인정보보호 관련 법령 검색해줘"
"민법 상세 정보 보여줘"
"국방부 소관 법령 찾아줘"
"서울특별시 자치법규 검색해줘"
"법령 유형별 통계 알려줘"
"법령 온톨로지 네트워크 시각화해줘"

라이선스

MIT

Available Tools

8 tools
execute_sparqlA

SPARQL 쿼리를 직접 실행합니다. PREFIX는 자동 추가됩니다. 주의: FILTER에서 contains(), str(), regex(), lang() 등 문자열 함수는 서버에서 지원하지 않습니다. URI 비교만 가능합니다.

Inputs: query (required), include_prefixes. Returns: result

get_law_detailA

특정 법령의 상세 정보를 조회합니다. 법령 리소스 ID(예: LSI259471, SCPB2200000130717)를 사용합니다. search_law 결과의 URI에서 ID를 추출할 수 있습니다.

Inputs: resource_id (required). Returns: result

get_statisticsC

법령 데이터 통계를 조회합니다.

Inputs: type. Returns: result

list_lawsA

법령 유형별 목록을 조회합니다. 키워드 검색 없이 유형별 법령 목록을 가져옵니다.

Inputs: type, limit. Returns: result

search_by_agencyB

소관부처별 법령을 검색합니다.

Inputs: agency_name (required), type, limit. Returns: result

search_by_regionB

지역별 자치법규를 검색합니다.

Inputs: region_name (required), limit. Returns: result

search_lawA

법령을 키워드로 검색합니다. 법령명, 조문 내용 등에서 키워드를 찾습니다. 현행법령, 자치법규, 행정규칙, 판례, 조약 등 모든 유형을 검색할 수 있습니다.

Inputs: keyword (required), type, limit, agency. Returns: result

visualize_law_networkB

법령 온톨로지 네트워크를 시각화합니다. 온톨로지 스키마(클래스/프로퍼티 관계)와 법령 간 관계 네트워크를 인터랙티브 HTML로 생성합니다. 키워드를 입력하면 검색된 법령의 관계 네트워크도 함께 표시됩니다.

Inputs: limit, keyword, output_path, open_browser. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 8 tools

    Disambiguation4/5

    Most tools have distinct purposes, but the search variants (search_law, search_by_agency, search_by_region, list_laws) could potentially be confused since they all retrieve laws with different filters. The descriptions help clarify, and execute_sparql, get_statistics, and visualize_law_network are clearly distinct.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using lowercase and underscores (search_law, get_law_detail, search_by_agency, etc.). The naming consistently reflects the action and target, making the API predictable.

    Tool Count5/5

    With 8 tools, the server is well-scoped for a law ontology domain. Each tool serves a specific purpose, and there is no unnecessary bloat or overly sparse coverage.

    Completeness5/5

    The tool set covers the full spectrum of read-only law ontology interactions: searching, filtering by agency/region, listing by type, retrieving details, viewing statistics, running arbitrary SPARQL queries, and visualizing relationships. No obvious gaps for the stated purpose.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    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
      C
      quality
      B
      maintenance
      Enables searching, comparing, and analyzing Korean laws and public institution regulations through natural language, integrating 110 MCP tools covering statutes, precedents, and internal rules.
      100
      56 npm
      24
      MIT