taxlaw-mcp
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., "@taxlaw-mcp 국세청 예규에서 '접대비 한도' 검색해서 첫 번째 본문 보여줘"
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.
taxlaw-mcp — 국세청 예규 본문 보완 MCP
법제처 OPEN API(korean-law MCP)는 국세청 예규(법령해석)를 목록만 주고 본문은 주지 않습니다. 이 작은 MCP 서버는 그 빈칸을 메웁니다. 목록은 법제처에서, 본문은 국세법령정보시스템(taxlaw.nts.go.kr) 공개 페이지에서 가져옵니다.
원칙: korean-law MCP 를 그대로 쓰고, 국세청 예규 본문이 필요할 때만 이 서버의 도구를 부릅니다.
도구 2개
도구 | 하는 일 |
| 검색어로 국세청 예규 목록 조회. 결과마다 안건명·안건번호·해석일자·ntstDcmId |
| ntstDcmId(숫자 18자리)로 본문을 받아 HTML 을 지운 평문으로 반환. 표는 줄바꿈·탭으로 유지 |
본문 끝에는 항상 두 줄이 붙습니다.
출처: https://taxlaw.nts.go.kr/qt/USEQTA002P.do?ntstDcmId=<18자리>
⚠️ 법제처 OPEN API 가 아닌 국세법령정보시스템 공개 페이지에서 가져온 본문입니다. 인용 전 원문으로 대조하세요.Related MCP server: Korean Law MCP Server
설치 (Node.js 20 이상)
방법 A — 설치 없이 바로 (다른 PC 에 권장)
Claude Code:
claude mcp add -s user taxlaw -e LAW_OC=<법제처_인증키> -- npx -y github:ctahoon55/taxlaw-mcpClaude Desktop 설정 파일의 mcpServers 에:
"taxlaw": { "command": "npx", "args": ["-y", "github:ctahoon55/taxlaw-mcp"], "env": { "LAW_OC": "<법제처_인증키>" } }첫 실행 때만 내려받느라 몇 초 걸리고, 이후엔 캐시를 씁니다.
윈도우(PowerShell)는 두 가지가 다릅니다.
npx앞에cmd /c를 붙여야 Claude Code 가 서버를 띄울 수 있습니다.github:주소는 Git 이 설치돼 있어야 받아지므로, Git 이 없는 PC 는 아래처럼 압축 파일 주소를 씁니다.
claude mcp add -s user taxlaw -e LAW_OC=<법제처_인증키> -- cmd /c npx -y https://github.com/ctahoon55/taxlaw-mcp/tarball/main<법제처_인증키> 는 꺾쇠 없이 본인 키만 넣습니다 (PowerShell 은 < 를 그대로 두면 오류).
제대로 됐는지 확인
claude mcp get taxlawStatus: ✔ Connected 가 보이면 됩니다. 그 다음 Claude Code 안에서 /mcp 를 치면 taxlaw 에 도구 2개가 잡혀 있고,
"국세청 예규에서 '접대비 한도' 검색해서 첫 번째 본문 보여줘" 라고 물으면 끝에 출처: https://taxlaw.nts.go.kr/... 줄이 붙은 답이 옵니다.
Failed to connect 면 ① Node.js 설치 여부(node -v) ② 윈도우는 cmd /c 누락 ③ 인증키 꺾쇠 순으로 확인하세요.
방법 B — 코드를 받아서 (수정하며 쓸 때)
git clone https://github.com/ctahoon55/taxlaw-mcp.git && cd taxlaw-mcp && npm install --omit=devClaude Code 에 등록 (인증키는 법제처 OPEN API 신청 시 받은 ID):
claude mcp add -s user taxlaw -e LAW_OC=<법제처_인증키> -- node /절대경로/taxlaw-mcp/src/server.jsClaude Desktop 은 설정 파일의 mcpServers 에 같은 내용을 넣으면 됩니다:
"taxlaw": { "command": "node", "args": ["/절대경로/taxlaw-mcp/src/server.js"], "env": { "LAW_OC": "<법제처_인증키>" } }점검
npm test # 단위 테스트 (네트워크 불필요)
LAW_OC=<키> npm run check:live # 실제 서버 띄워 검색→본문→없는 번호 순서로 호출예의 규칙 (공식 API 가 아니므로 코드로 강제)
국세청 서버 연속 호출 사이 0.4초 이상 간격, 재시도 1회까지
응답 읽기 상한 5MB (실측 2MB 중 99%는 무관한 목록이고 본문은 그 뒤에 있어 2MB 로 두면 잘림)
GET 이나 잘못된 Referer 는 404 가 아니라 200 + 홈페이지 HTML 로 옴 → "JSON 이 아니면 실패"로 판정
요지·회신·본문을 공백 빼고 이어 20자 미만이면 문서 없음
구조 — 자료원 하나 = 파일 하나
src/server.js 도구 등록 (여기에 registerTool 추가)
src/sources/nts-interpretation.js 국세청 예규 (검색 + 본문)
src/lib/http.js 간격 제한·상한·재시도
src/lib/html-to-text.js HTML → 평문 (표 유지)
test/ 단위 테스트법제처가 못 주는 다른 자료를 발견하면 src/sources/ 에 파일을 하나 추가하고 server.js 에 도구를 등록하면 됩니다.
실측 기록 (2026-09-02)
검색 XML 의
법령해석상세링크안에 ntstDcmId 가 그대로 들어 있음 (변환 불필요)본문:
POST https://taxlaw.nts.go.kr/action.do·actionId=ASIQTB002PR01·paramData={"dcmDVO":{"ntstDcmId":"…"}}본문 위치:
data.ASIQTB002PR01.dcmHwpEditorDVOList[].dcmFleByte(HTML), 메타는dcmDVO(ntstDcmTtl·ntstDcmDscmCntn·ntstDcmRgtDt·ntstDcmGistCntn·ntstDcmCntn)오래된 예규는 HTML 본문이 비어 있고 요지·회신만 있는 경우가 있음 (정상)
Available Tools
2 toolsget_tax_interpretation국세청 예규 본문ARead-only
[국세청 예규 본문 조회] ntstDcmId(숫자 18자리, 또는 taxlaw.nts.go.kr 링크)로 예규 전문을 받아 HTML 을 지운 평문으로 돌려준다(표는 줄바꿈·탭 유지). 제목·문서번호·생산일자·요지·회신·본문 순. 법제처 OPEN API 는 국세청 예규 본문을 제공하지 않으므로 국세법령정보시스템 공개 페이지에서 가져온다. 끝에 출처 링크와 '원문 대조' 경고가 붙는다 — 인용 시 그대로 전달할 것.
Inputs: ntstDcmId (required).
search_tax_interpretation국세청 예규 검색ARead-only
[국세청 예규·법령해석 검색] 법제처 OPEN API(target=ntsCgmExpc)로 국세청이 직접 회신한 예규(서면·재산·법인·부가 등)를 검색한다. 결과마다 안건명·안건번호·해석일자·ntstDcmId 를 보여준다. 본문은 ntstDcmId 로 get_tax_interpretation 을 호출한다. korean-law 의 search_decisions(domain='nts') 와 같은 목록이지만 본문 조회용 ntstDcmId 를 바로 준다.
Inputs: query (required), page, sort, explYd, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct roles: one searches and returns metadata with IDs, the other retrieves the full text by ID. There is no overlap or ambiguity between them.
Both tool names follow the same verb_noun pattern: search_tax_interpretation and get_tax_interpretation. The naming is perfectly consistent and predictable.
With only two tools, the set is minimal and slightly below the typical 3-15 range, but it fits the server's narrow purpose well. The two tools form a complete search-then-fetch workflow without unnecessary extras.
The server fully covers its intended read-only domain: searching for tax interpretations and retrieving their full text. There are no obvious gaps or dead ends in the workflow.
Maintenance
Related MCP Connectors
Korean law: statutes, precedents, ordinances, treaties and citation verification (법제처 API).
Korean accounting standards, audit, tax and legal sources and rulings, with citation checks
Korea Law MCP — South Korean national statutes via the Ministry of Government Legislation's (법제처)…
대한민국 법령·조문·별표·연혁·판례·해석례를 법제처 국가법령정보 OPEN API 로 찾아보는 읽기 전용 MCP 서버. 코어 12 + 보조 12 도구.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables searching and retrieving tax law data from the Korean National Tax Service database, including interpretations, rulings, forms, publications, and site menus via MCP tools.141MIT
- AlicenseNot gradedqualityDmaintenanceEnables searching and retrieving Korean statutes, precedents, and constitutional court decisions via MCP, using the National Law Information Center API.4,629 npm1MIT
- FlicenseAqualityDmaintenanceMCP server for Korean National Law Information. Enables searching and retrieving Korean laws, English-translated laws, administrative rules, court precedents, and constitutional decisions via 54 MCP tools.454-
- AlicenseAqualityCmaintenanceMCP server that directly queries the Korean National Tax Service tax law information system for tax law interpretations, precedents, and guidance. It supports exact document-number lookup, keyword search, and structured retrieval of ruling details and legal grounds.93MIT