law-ontology-mcp
Allows Codeium's Windsurf IDE to query Korean law ontology, enabling law-related searches and analysis within the development environment.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@law-ontology-mcp search for laws related to personal information protection"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
법제처 법령 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) |
|
Claude Desktop (Windows) |
|
Cursor |
|
Windsurf |
|
Claude Code |
|
도구
도구 | 설명 |
| 키워드로 법령 검색 |
| 법령 상세 정보 조회 |
| 소관부처별 법령 검색 |
| 지역별 자치법규 검색 |
| 법령 유형별 통계 |
| SPARQL 쿼리 직접 실행 |
| 법령 유형별 목록 조회 |
| 법령 온톨로지 네트워크 시각화 |
사용 예시
"개인정보보호 관련 법령 검색해줘"
"민법 상세 정보 보여줘"
"국방부 소관 법령 찾아줘"
"서울특별시 자치법규 검색해줘"
"법령 유형별 통계 알려줘"
"법령 온톨로지 네트워크 시각화해줘"라이선스
MIT
Available Tools
8 toolsexecute_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
Scored across 8 tools
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.
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.
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.
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
Related MCP Connectors
Korean law: statutes, precedents, ordinances, treaties and citation verification (법제처 API).
Official English text of Korean laws (law.go.kr): search by name, get articles; flags outdated texts
Korean government open data - weather, population, law search via data.go.kr
대한민국 법령·조문·별표·연혁·판례·해석례를 법제처 국가법령정보 OPEN API 로 찾아보는 읽기 전용 MCP 서버. 코어 12 + 보조 12 도구.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceEnables 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.-
- FlicenseAqualityBmaintenanceEnables 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.262-
- AlicenseCqualityBmaintenanceEnables searching, comparing, and analyzing Korean laws and public institution regulations through natural language, integrating 110 MCP tools covering statutes, precedents, and internal rules.10056 npm24MIT
- AlicenseAqualityDmaintenanceEnables querying Korean legal knowledge graph with 160K precedents and 130K statutes via MCP tools for relation exploration and semantic search.71MIT