DAPA MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LAW_API_OC | No | Open API authentication value for the National Law Information Center; can be overridden with a custom value. | dusgh4847 |
| DAPA_INFO_PATH | No | Root path for public knowledge data. | ./DAPA_info |
| LAW_API_REFERER | No | Referer header sent to the official API when running on cloud. | https://www.law.go.kr/ |
| LAW_API_TIMEOUT_MS | No | Request timeout in milliseconds; handles slow knowledge base API within the 60-second Vercel function limit. | 55000 |
| LAW_API_USER_AGENT | No | User agent string identifying this server to the official API. | dapa-mcp/0.1 (...) |
| LAW_API_RETRY_LIMIT | No | Maximum number of retries for 429/5xx responses. | 2 |
| LAW_API_CACHE_TTL_MS | No | API search cache TTL in milliseconds; set to 0 to disable caching. | 300000 |
| MCP_MAX_REQUEST_BYTES | No | Maximum HTTP MCP request body size in bytes (1 MiB). | 1048576 |
| LAW_API_MAX_TEXT_RESPONSE_BYTES | No | Maximum response size in bytes for JSON/HTML API responses. | 8388608 |
| LAW_API_MAX_TOOL_RESPONSE_CHARS | No | Maximum number of output characters for law API MCP tools. | 250000 |
| LAW_API_MAX_RESOURCE_RESPONSE_BYTES | No | Maximum response size in bytes for attached files such as asterisks and forms. | 26214400 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_legalC | 공식 국가법령정보 API에서 법령·행정규칙·판례·해석례를 검색합니다. |
| get_legal_detailA | search_legal에서 받은 documentId로 공식 문서 상세를 조회합니다. |
| list_legal_apisB | 국가법령정보 공동활용의 DAPA 관련 14개 범주와 목록·본문 API target을 조회합니다. |
| query_legal_apiA | list_legal_apis의 apiId로 공식 목록·본문을 온디맨드 조회합니다. 콘텐츠를 MCP에 사전 적재하지 않습니다. |
| get_legal_api_bodyA | 목록 apiId와 결과 식별자로 대응 본문 API를 자동 호출합니다. 별표·서식은 목록의 공식 파일 링크를 내려받아 HWP/HWPX/PDF/XLSX/DOCX 본문을 텍스트로 추출합니다. |
| search_legal_contentC | 국가법령정보 API에서 후보 문서를 검색하고 각 문서의 최신 상세 본문과 조문을 함께 조회합니다. |
| get_legal_historyA | 공식 국가법령정보에서 법령의 제정·개정·폐지 연혁을 조회합니다. |
| verify_citationsA | 법령 조문 또는 사건번호가 공식 출처에 실제 존재하는지 검증합니다. |
| search_dapa_infoB | 공개 출처 기반 DAPA_info에서 조직·용어·업무 지식을 검색합니다. |
| get_dapa_organizationA | 방위사업청 조직명 또는 별칭으로 조직 상세를 조회합니다. |
| search_dapa_policyB | 방위사업청 업무·정책 메뉴와 하위 탭에서 동기화한 공개 본문을 검색합니다. |
| get_dapa_policy_pageA | search_dapa_policy에서 받은 ID로 업무·정책 페이지 전체 본문을 조회합니다. |
| search_dapa_legal_catalogC | 방위사업청 공식 홈페이지의 법령·행정규칙 카탈로그를 검색합니다. |
| get_dapa_legal_catalog_itemA | DAPA 공식 법령·행정규칙 카탈로그 항목을 ID로 조회합니다. |
| get_dapa_legal_contentB | DAPA 카탈로그 ID를 국가법령정보 문서와 연결해 실제 본문을 조회합니다. |
| dapa_catalog_statusB | DAPA 공식 법령·행정규칙 카탈로그의 동기화 상태를 반환합니다. |
| source_healthA | 각 데이터 Provider의 설정 및 가용 상태를 반환합니다. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 17 tools
The set is separated by source and action, but get_legal_detail, get_legal_api_body, get_dapa_legal_content, and search_legal_content all concern retrieving legal document text or detail, creating real selection risk. The five search_* tools are more distinct because their source targets are clearer.
Most tools follow a predictable verb_noun snake_case pattern such as search_*, get_*, and list_*. A few exceptions like source_health and dapa_catalog_status are noun-phrase status checks, and the placement of 'dapa' varies across names.
With 17 tools, this is on the heavier side but each covers a distinct area: official legal APIs, DAPA catalog, policy pages, organization lookup, citation verification, and provider health. The count is slightly above a lean toolkit but not bloated.
The read-only domain is broadly covered with search, detail retrieval, legal history, citation verification, catalog status, policy pages, and organization lookup. Minor gaps remain for enumerated browsing such as listing all policy pages or the full organization tree, but agents can work around them.