Skip to main content

MCP Server for Korean Law Open API

Project description

Korean Law MCP Server (대한민국 법령/판례 검색 MCP 서버)

이 프로젝트는 국가법령정보센터(Open API)를 활용하여 대한민국 법령, 판례, 헌재결정례, 행정규칙, 자치법규를 검색하고 상세 내용을 조회할 수 있는 MCP (Model Context Protocol) 서버입니다.

🚀 주요 기능

  • 법령 (Statutes): 현행 법령 검색 및 조문 조회
  • 판례 (Precedents): 대법원 및 각급 법원 판례 검색 및 판시사항, 판결요지 조회
  • 헌재결정례 (Constitutional Court Decisions): 헌법재판소 결정례 검색 및 전문 조회
  • 자치법규 (Autonomous Laws): 각 지자체 조례/규칙 검색 및 조문 조회
  • 행정규칙 (Administrative Rules): 중앙행정기관 훈령/예규/고시 검색 및 내용 조회

🚀 빠른 시작 (Quick Start)

이 패키지는 uvx를 사용하여 설치 없이 즉시 실행할 수 있습니다.

uvx korean-law-mcp

또는 pip로 설치할 수 있습니다:

pip install korean-law-mcp

필수 조건

  • 국가법령정보센터 Open API ID가 필요합니다. (회원가입 및 신청)
  • 실행 시 환경 변수 OPEN_LAW_ID를 설정해야 합니다.

📚 제공 도구 (Tools)

이 서버는 다음과 같은 MCP 도구를 제공합니다.

도구 이름 (Tool) 설명 (Description) 인자 (Arguments)
search_statute 법령(법률, 시행령 등)을 검색합니다. query: 검색어 (예: "건축법")
get_statute_detail 특정 법령의 상세 내용(조문 등)을 조회합니다. law_id: 법령 일련번호 (검색 결과의 ID)
get_statute_article 특정 법령의 특정 조문 내용을 조회합니다. law_id: 법령 ID, article_no: 조문번호 (예: "20", "20-2")
search_precedent 판례를 검색합니다. query: 검색어 (예: "사기")
get_precedent_detail 특정 판례의 상세 내용(판시사항, 전문 등)을 조회합니다. prec_id: 판례 일련번호
search_prec_const 헌법재판소 결정례를 검색합니다. query: 검색어 (예: "위헌")
get_prec_const_detail 특정 헌재결정례의 상세 내용을 조회합니다. detc_id: 헌재결정례 일련번호
search_autonomous_law 자치법규(조례, 규칙)를 검색합니다. query: 검색어 (예: "서울시 주차")
get_autonomous_law_detail 특정 자치법규의 상세 내용을 조회합니다. law_id: 자치법규 일련번호
search_admin_rule 행정규칙(고시, 훈령)을 검색합니다. query: 검색어 (예: "식품안전")
get_admin_rule_detail 특정 행정규칙의 상세 내용을 조회합니다. adm_id: 행정규칙 일련번호

🖥️ 사용 방법 (Claude Desktop 예시)

claude_desktop_config.json 파일에 다음과 같이 설정을 추가하여 사용할 수 있습니다.

{
  "mcpServers": {
    "korean-law": {
      "command": "uvx",
      "args": [
        "korean-law-mcp"
      ],
      "env": {
        "OPEN_LAW_ID": "your_actual_api_id"
      }
    }
  }
}

또는 pipx를 사용하는 경우:

pipx run korean-law-mcp

또는 직접 Python으로 실행할 경우:

{
  "mcpServers": {
    "korean-law": {
      "command": "python3",
      "args": [
        "/absolute/path/to/korean-law-mcp/src/main.py"
      ],
      "env": {
        "OPEN_LAW_ID": "your_actual_api_id"
      }
    }
  }
}

개발자 정보: 소스 코드 확인 및 기여는 GitHub 저장소를 참고하세요.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

korean_law_mcp-0.1.6.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

korean_law_mcp-0.1.6-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file korean_law_mcp-0.1.6.tar.gz.

File metadata

  • Download URL: korean_law_mcp-0.1.6.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for korean_law_mcp-0.1.6.tar.gz
Algorithm Hash digest
SHA256 140f1a696d79b1fab9409c6a9786c6a41dc2b49cc61784f799fcf4145f793ecc
MD5 ce6676b5a011448bb60f75ae8fb7cf09
BLAKE2b-256 674e34f73dc42d0a1d49d60dd063571692e89ab9dbf798c344ac7013e4fae892

See more details on using hashes here.

File details

Details for the file korean_law_mcp-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: korean_law_mcp-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for korean_law_mcp-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0c486a06d7757a3422282129ce608634a2a2b4efde68fa349733f70ac99938b1
MD5 c3b8d54ee524e533976c7298542efcd8
BLAKE2b-256 e2b6ca6010a2a64d12c715409fbf7d679ed930bb44d749bb7b404251ce67b37f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page