nts-taxlaw-mcp
This MCP server lets you search, retrieve, and organize Korean National Tax Service (NTS) tax-law documents and decisions.
Look up exact NTS documents by document number, with normalization and full text/similar-document handling.
Search NTS tax interpretations (advance, written, advisory, notice-written) by keyword, tax type, law, article, date, etc.
Search tax decisions and cases (pre-assessment, objection, review, tribunal, court, constitutional) with result and attribution-year filters.
Fetch a single document’s body and structured fields by NTS document ID or document number.
Search NTS guidance: basic rulings, execution standards, notices, directives; fetch specific clauses.
Search NTS forms and annexes, returning metadata and lookup URLs.
Run unified NTS-wide searches across interpretations, decisions, guidance, and forms.
Build layered tax research for a question, with authority levels and sources, without making legal conclusions.
Note: statutes are not provided; use korean-law-mcp for law/decree/rule texts; no legal advice.
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., "@nts-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.
nts-taxlaw-mcp
An MCP server that directly queries the National Tax Service Tax Law Information System (https://taxlaw.nts.go.kr).
It is implemented in Python and FastMCP, and uses the National Tax Service's own lookup endpoints rather than going through the Ministry of Government Legislation mirror (ntsCgmExpc).
Look up the latest tax law interpretation rulings
Structure full-text details such as replies, decisions, and conclusions
Exact lookup by document number
Search precedents, decisions, and administrative interpretation standards
Structured responses including the source and the type of legal basis
The existing korean-law-mcp can retrieve lists of National Tax Service interpretation rulings due to the nature of the Ministry of Government Legislation OPEN API, but it has limitations in retrieving detailed full text. nts-taxlaw-mcp queries the National Tax Service original source directly to provide document-number lookup and full-text retrieval.
1. Supported data
Area | Target | Search | Document No. lookup | Full text |
Tax law interpretations | preliminary responses, written replies (written inquiries), tax-base consultations, notice-based written inquiries | O | O | Gist, facts, question, reply, relevant statutes |
Cases and rulings | Selection of assessments, judgment of evidence, review requests, trial requests, precedents, Constitutional Court | O | O | Disposition outline, claimant's claims, tax office opinion, examination and judgment, conclusion |
Administrative interpretation standards | Basic Rules for National Taxes | O | - | Text of the provision |
Administrative interpretation standards | Tax law enforcement rules | O | - | Provision names and table of contents |
Administrative interpretation standards | NTS notices (206), directives (143) | O | - | Metadata |
Schedules and forms | Statutory forms (34,487 cases) | O | - | Metadata and file identifiers |
Volume
Measured as of August 2026.
| Data | Count | | ---- ------- | ------: | | Written inquiries | 132,638 | | Pre-tax answers | 5,117 | | Tax-base consultation | 1,036 | | Notice-based written inquiries | 14 | | Statute interpretation arrangements | 996 | | Tax dispute | 518 | | Appeals | 1,478 | | Review requests | 22,233 | | Trial requests | 71,349 | | Precedents | 55,860 | | Constitutional Court | 355 |
Data not supported
Data | Reason |
Full text of statutes, enforcement decrees, and enforcement rules | The National Law Information Center has the source, a served by |
Tax treaties | Not preferred since the Ministry of Government Legislation treaty API is more stable, so not duplicated |
All general precedents and Constitutional Court rulings | Only tax cases with assigned tax codes are retrieved |
Full text of tax law enforcement standards | The source is distributed as yearly PDFs, so only the table of contents, provision names, and PDF file IDs are provided |
Form file binaries | Download follows a POST form method, so no stable GET URL |
BAI review requests, Supreme Court and Tax Counsel decision cases | Not implemented as separate modules/actions |
Publications, summary by taxpayer, dictionary, tax calendar | Not supported because they are informational materials, not legal sources |
See docs/INVESTIGATION.md for additional research.
Related MCP server: LexLink-ko-mcp
2. Data source
All data is retrieved from the National Tax Service Tax Law Information System.
Uses the public query endpoint
POST /action.doNo login, CAPTCHA, or access control workarounds
No separate session, cookie, or authentication key required
All responses include source traceability information
{
"sourceAgency": "국세청",
"sourceSystem": "국세법령정보시스템",
"sourceId": "200000000000022584",
"documentNumber": "서면-2026-법규재산-0119",
"sourceUrl": "https://taxlaw.nts.go.kr/qt/USEQTA002P.do?ntstDcmId=200000000000022584",
"retrievedAt": "2026-08-19T13:34:58Z"
}3. Document number lookup
Normalize the formatting differences of document numbers to retrieve the same document.
서면-2026-법규재산-0119
서면 2026 법규재산 0119
서면2026법규재산0119
서면서면-2026-법규재산-0119
질의회신 서면-2026-법규재산-0119
질의회신서면-2026-법규재산-0119
국세청 서면-2026-법규재산-0119The recognized document number formats are as follows.
structure | example | |
A |
|
|
B |
|
|
C |
|
|
A and B are distinguished by whether the second element is a four-digit year.
Exact Match Principle
정확히 일치
→ found: true
→ exactMatch: true
→ document 반환
일치 없음
→ NOT_FOUND
→ similarDocuments 별도 반환Documents with only a partial match are not returned as an answer.
lookup_tax_document("법규재산-0119")
→ [NOT_FOUND]
similarDocuments:
· 서면-2026-법규재산-0119
· 서면-2015-징세-0119
· 기준-2023-법규부가-0044
· 적부-국세청-2020-0119similarDocuments is search assistance information and should not be considered the requested document.
If only the zero-padding differs, such as 0119 vs. 119, the document number is treated as the same. Normalization is used only to expand lookup candidates; the final response returns the original National Tax Service document number as-is.
4. Keyword search
It is based on the actual search results of the Tax Law Information System, and applies its search syntax.
| 22,349 | single keyword |
| 22,924 | single keyword |
| 14,913 | AND |
| 14,913 | AND |
| 30,360 | OR |
| 7,436 | NOT |
It is used in MCP as follows.
{"query": "상속 공동상속주택"} # AND
{"query": "상속 증여", "match": "any"} # OR
{"query": "상속", "exclude": ["증여"]} # NOT
{"query": '"공동상속주택 소수지분" 양도'} # 구절 검색Note the following when searching:
The OR operator uses the ASCII pipe
|.¦(U+00A6) does not act as OR.Passing an invalid sort field returns 0 results rather than an error.
The server only uses
DCM_RGT_DTM,FRS_RGT_DTM, andSCORE, which have been verified for actual behavior.
5. Installation
You do not need to install Python directly or create a virtual environment manually. uv manages the required Python and packages.
5.1 Install uv
Windows
PowerShell:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"If script execution is restricted by corporate policy:
winget install --id=astral-sh.uv -emacOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | shAfter installation, reopen the terminal and verify.
uv --version5.2 Install the server
You can install directly from the GitHub address.
uv tool install git+<GitHub 주소>After installing, you can run the nts-taxlaw-mcp command from any path.
Check the installation location:
(Get-Command nts-taxlaw-mcp).Sourcewhich nts-taxlaw-mcpTypical installation paths:
OS | Path |
Windows |
|
macOS / Linux |
|
Update:
uv tool upgrade nts-taxlaw-mcpUninstall:
uv tool uninstall nts-taxlaw-mcp5.3 Install from source
If you want to modify the code or run tests, download the repository.
git clone <GitHub 주소>
cd nts-taxlaw-mcp
uv syncuv sync performs the following:
Checks and installs a Python compatible with
requires-python = ">=3.11"Creates
.venvin the project directoryInstalls dependencies based on
uv.lock
There is no need to activate the virtual environment yourself. Subsequent commands are run with uv run.
If git is unavailable, you can also download the repository via GitHub's Code > Download ZIP, unzip, and run uv sync.
Verify it works:
uv run nts-taxlaw-mcp --help
uv run python scripts/compare_with_site.py5.4 PATH check
If uv or nts-taxlaw-mcp is not found immediately after installation, reopen the terminal and check again.
uv tool update-shellOn Windows, check with an absolute path:
& "$env:USERPROFILE\.local\bin\uv.exe" --versionmacOS / Linux:
~/.local/bin/uv --version6. Connecting Claude Code
When installed with uv tool
claude mcp add nts-taxlaw -- nts-taxlaw-mcpIf the command is not found, confirm the install location and then set the absolute path.
claude mcp add nts-taxlaw -- "C:\Users\<사용자>\.local\bin\nts-taxlaw-mcp.exe"When running from the repository
claude mcp add nts-taxlaw -- uv run --directory /절대경로/nts-taxlaw-mcp nts-taxlaw-mcpVerify registration:
claude mcp listHTTP connection
nts-taxlaw-mcp --http --port 8000Claude Code registration:
claude mcp add --transport http nts-taxlaw http://127.0.0.1:8000/mcp7. Connecting Claude Desktop
Settings file:
OS | Path |
Windows |
|
macOS |
|
For Claude Desktop, it is more reliable to specify the absolute path of the executable.
Windows
uv tool installation:
{
"mcpServers": {
"nts-taxlaw": {
"command": "C:\\Users\\<사용자>\\.local\\bin\\nts-taxlaw-mcp.exe"
}
}
}Running from the repository:
{
"mcpServers": {
"nts-taxlaw": {
"command": "C:\\Users\\<사용자>\\.local\\bin\\uv.exe",
"args": [
"run",
"--directory",
"C:\\Users\\<사용자>\\nts-taxlaw-mcp",
"nts-taxlaw-mcp"
]
}
}
}In JSON, write Windows backslashes as \\ in the path. Using / also works.
macOS
uv tool installation:
{
"mcpServers": {
"nts-taxlaw": {
"command": "/Users/<사용자>/.local/bin/nts-taxlaw-mcp"
}
}
}Running from the repository:
{
"mcpServers": {
"nts-taxlaw": {
"command": "/Users/<사용자>/.local/bin/uv",
"args": [
"run",
"--directory",
"/Users/<사용자>/nts-taxlaw-mcp",
"nts-taxlaw-mcp"
]
}
}
}To verify the actual path:
(Get-Command nts-taxlaw-mcp).Sourcewhich nts-taxlaw-mcpUsing together with korean-law-mcp
The recommended configuration is to look up statute, enforcement decree, and enforcement rule text via korean-law-mcp, and retrieve NTS-specific materials via nts-taxlaw-mcp.
{
"mcpServers": {
"korean-law": {
"command": "npx",
"args": ["-y", "korean-law-mcp"],
"env": {
"LAW_OC": "발급받은-인증키"
}
},
"nts-taxlaw": {
"command": "C:\\Users\\<사용자>\\.local\\bin\\nts-taxlaw-mcp.exe"
}
}
}pip + venv
In environments where uv is not available, you can install Python 3.11 or later directly and run it in the traditional way.
git clone <GitHub 주소>
cd nts-taxlaw-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
python -m nts_taxlaw_mcp --helpActivate the Windows virtual environment:
.venv\Scripts\activateFor Claude Desktop, specify the absolute path to the Python executable inside the virtual environment.
{
"mcpServers": {
"nts-taxlaw": {
"command": "/절대경로/nts-taxlaw-mcp/.venv/bin/python",
"args": ["-m", "nts_taxlaw_mcp"]
}
}
}8. Environment variables
All items are optional and the defaults are sufficient for normal use.
Variable | Default | Description |
|
| Request timeout (ms) |
|
| Number of retry attempts |
|
| Request limit per minute |
|
| Allowed request burst |
|
| Max body character count |
|
| Maximum number of cache entries |
| Chrome UA | User-Agent |
9. MCP tools
A total of 9 tools are provided.
Tool | Purpose |
| Document number exact lookup |
| Search tax interpretations |
| Search precedents and rulings |
| Full-text lookup of interpretations and rulings |
| Search basic rules, enforcement standards, notices, and directives |
| Retrieve a specific provision of basic rules or enforcement standards |
| Search statutory forms and appendix tables |
| Integrated multi-area search |
| Collect legal bases layer by layer for tax questions |
If you know the document number, use lookup_tax_document first.
get_tax_document unifies detailed retrieval of interpretations and rulings into one tool. Since the Tax System Information System uses the same detailed lookup action regardless of document type, it is not split into separate detail tools.
Usage examples
Document number lookup:
{
"name": "lookup_tax_document",
"arguments": {
"document_number": "서면-2026-법규재산-0119"
}
}Example response:
[OK]
found: true
exactMatch: true
서면-2026-법규재산-0119
질의회신 | 양도소득세 | 2026-08-11 | nts_ruling
title:
인구감소지역 내 취득한 분양권이 ’27.1.1.이후 주택으로 전환된 경우 조특법§71의2 적용 여부
relatedLaws:
- 조세특례제한법 제71조의2
- 조세특례제한법 시행령 제68조의2
sections:
- facts
- question
- relatedLawsTextSearch precedents and rulings:
{
"name": "search_tax_decisions",
"arguments": {
"query": "공동상속주택",
"type": "court",
"result": ["국승"],
"limit": 3
}
}Search basic rules:
{
"name": "search_tax_guidance",
"arguments": {
"kind": "basic_ruling",
"law_name": "상속세 및 증여세법",
"query": "상속재산"
}
}Collect legal bases for a tax question:
{
"name": "tax_research",
"arguments": {
"question": "부모가 자녀에게 시가보다 낮은 가격으로 아파트를 양도하면 증여세가 발생하는지"
}
}10. Legal basis classification
Tax materials are returned classified by the nature of the legal basis.
Value | Value |
| Statute |
| Enforcement Decree |
| Enforcement Rule |
| NTS interpretations and rulings |
| Basic rules, enforcement standards, regulations, directives |
| Tax assessments, appeals, review, trial |
| Court precedents, Constitutional Court decisions |
National Tax Service rulings are associations of interpretation for tax authorities and do not bind courts. Basic rules and enforcement standards are internal execution standards, not statutes themselves.
11. Error handling
Errors distinguish a grade in which the data does not actually exist from failures due to problems with the original server.
Error Code | Meaning | Treatable as non-existent |
| The associated content does not exist | O |
| File exists but the body is not served by the source | X |
| NTS error, maintenance, or abnormal response | X |
| Response format does not match the expected schema | X |
| The server's own request quota exceeded | X |
| Request timeout | X |
| Input error | X |
Error responses also include guardrail information that prevents the model from generating unverified body or conclusions.
Even if an HTTP 200 response is received, it is treated as a temporary outage if the content is a maintenance HTML page or the body is abnormally empty, and retried.
12. Request limits and caching
The server limits call volume and reduces repeated lookups to avoid excessive requests to the National Tax Service system.
Request limits
Default period limit: 60 requests per minute
Burst allowance: 20 requests per burst
Uses the token bucket method for multi-row(z)
Cache
Cache target | Retention |
Search results | 30 minutes |
Document text | 24 hours |
Basic rules, general rules, exceptions, directives | 12 hours |
Statute lists | 7 days |
Concurrent request handling
If the same identical request arrives simultaneously, the original Tax Service system call is executed only once and the result is shared.
HTTP connection reuse
Uses the httpx keep-alive connection pool.
13. Disclaimer
This server is a data access layer for searching and structuring NTS original text, and does not provide legal advice or tax advice.
Interpretations and rulings are decided based on the facts of each individual case.
NTS interpretations do not bind the courts.
Basic rules and enforcement standards are internal guidelines, not regulations.
For amended tax law, the effective date must be confirmed separately.
The accuracy and currency of the data follow the update status of the Tax Law Information System.
If the legal effect matters, you need to verify the original text on the Tax Law Information System.
Actions with legal effect, such as filing returns or any protest / dispute resolution, require the substantiated review from qualified professionals such as tax accountants or attorneys.
License
MIT
See NOTICE for data source attribution.
Available Tools
9 toolsget_tax_documentA
국세청 문서 1건의 본문·구조화 필드를 가져온다. ntst_dcm_id(검색 결과의 문서 ID) 또는 document_number 로 지정한다. 해석례는 요지·질의내용·사실관계·회신·관련법령으로, 결정례는 처분개요·청구인주장·처분청의견·심리및판단·결론으로 분해해 반환한다. 문서 종류에 따라 존재하는 절이 다르므로 없는 절은 생략된다. 본문을 원본이 주지 않으면 DETAIL_NOT_AVAILABLE 로 알리고 본문을 생성하지 않는다.
Inputs: body_limit, ntst_dcm_id, document_number, include_full_text. Returns: result
get_tax_guidanceA
기본통칙 또는 세법집행기준의 특정 조항 1건을 가져온다. search_tax_guidance 로 찾은 item_id, 또는 조항명 일부(title)로 지정한다.
Inputs: kind (required), law_name (required), title, item_id, +1 more. Returns: result
lookup_tax_documentA
문서번호로 국세청 문서를 정확히 일치하는 것만 찾아 본문까지 반환한다. 세법해석례(사전답변·질의회신·과세기준자문·고시서면질의)와 판례·결정례(과세적부·이의신청·심사청구·심판청구·판례·헌재)를 자동 판별한다. '서면-2026-법규재산-0119', '서면 2026 법규재산 0119', '서면2026법규재산0119', '질의회신 서면-2026-법규재산-0119' 처럼 표기가 달라도 같은 문서로 정규화한다. 정확히 일치하는 문서가 없으면 NOT_FOUND 를 반환하고, 번호가 일부 겹치는 문서는 similarDocuments 로 분리해 준다(정답이 아님). 문서번호를 아는 경우 항상 이 도구를 먼저 쓸 것.
Inputs: document_number (required), body_limit, include_full_text. Returns: result
search_tax_decisionsA
국세청·조세심판원·법원의 판례·결정례를 검색한다. 대상: 과세적부(05)·이의신청(06)·심사청구(07)·심판청구(08)·판례(09)·헌재(10). 결정결과(인용·기각·각하·경정·재조사·국승·국패 등)와 귀속연도로 필터할 수 있다. 사건번호를 알면 case_number 로 넘기면 exact lookup 이 수행된다.
Inputs: law, page, sort, type, +11 more. Returns: result
search_tax_formsA
국세 법령서식·별표를 검색한다. 서식명·관련법령·개정일·서식 파일 식별자를 반환한다. 파일 실물은 국세법령정보시스템이 POST 폼으로만 내려주므로 이 서버는 바이너리를 제공하지 않고 조회 화면 URL 을 준다.
Inputs: page, limit, query, law_name. Returns: result
search_tax_guidanceA
국세청 행정 해석기준을 검색한다. kind: basic_ruling(국세 기본통칙) | execution_standard(세법집행기준) | notice(국세청 고시) | directive(국세청 훈령). 기본통칙은 조항 본문까지 제공되고, 집행기준은 조항명(목차)까지만 제공된다(원본이 본문을 API 로 주지 않음). 기본통칙·집행기준은 law_name 이 필요하다(예: '상속세 및 증여세법', '상속증여세 집행기준'). 이 자료는 법규가 아닌 국세청 내부 집행기준임을 결과에 함께 표기한다.
Inputs: kind (required), page, limit, query, +2 more. Returns: result
search_tax_interpretationsA
국세청 세법해석례(예규)를 검색한다. 대상: 사전답변(01)·질의회신(02, 서면질의)·과세기준자문(03)·고시서면질의(04). 키워드·세목·관련법령·조문·기간으로 좁힐 수 있다. 공백으로 구분한 낱말은 AND, match='any' 는 OR, exclude 는 NOT 이다. 문서번호를 알고 있으면 document_number 를 넘기면 exact lookup 으로 처리된다. 법제처 미러가 아니라 국세청 원본을 직접 조회하므로 최신 예규가 바로 잡힌다.
Inputs: law, page, sort, type, +9 more. Returns: result
search_taxlawA
국세청 자료 전 영역을 한 번에 검색한다(해석례·결정례·고시훈령·서식). 질의에 문서번호가 섞여 있으면 exact lookup 을 최우선으로 시도한다. domains 를 생략하면 질의 표현('예규', '심판', '통칙', '적부' 등)을 보고 조회 영역을 자동 결정한다. 어느 영역을 봐야 할지 모를 때의 진입점으로 쓸 것.
Inputs: query (required), domains, tax_type, limit_per_domain. Returns: result
tax_researchA
세무 쟁점 하나를 층별 근거로 모아 온다: 법률→시행령→시행규칙(범위 밖, 확인 경로 안내)→기본통칙→세법집행기준→국세청 해석례→불복 결정례→판례·헌재. 각 층에 authorityLevel 을 붙여 법규와 행정해석과 개별 결정의 효력 차이를 구분한다. 법률적 판단이나 결론을 만들지 않는다 — 원문 근거 수집과 출처 제시만 한다. 법령 본문이 필요하면 korean-law-mcp 를 함께 쓸 것.
Inputs: question (required), law, article, tax_type, +2 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool has a clearly distinct purpose: exact lookup, keyword search for interpretations, decisions, guidance, forms, a unified search, and a research aggregator. Even the two get_tool functions target different data types (documents vs guidance). No ambiguity between tools.
Most tools follow a consistent 'verb_noun' pattern: lookup_tax_document, search_tax_interpretations, get_tax_guidance, etc. The exception is tax_research, which breaks the pattern as a compound noun rather than verb_noun, creating a minor deviation.
9 tools is well-scoped for a tax law research server. Each tool covers a distinct aspect (search, retrieve, research synthesis) without redundancy or excessive granularity, and the count feels appropriate for the domain.
The tool set covers the core research lifecycle: search for interpretations, decisions, guidance, and forms; retrieve full documents; and synthesize multi-layer research. Minor gaps include no direct 'get_decision' tool, but get_tax_document covers that, and legal text is deliberately delegated to another MCP server, making it slightly incomplete within this server's scope.
Related MCP Connectors
Korean accounting standards, audit, tax and legal sources and rulings, with citation checks
대한민국 법령·조문·별표·연혁·판례·해석례를 법제처 국가법령정보 OPEN API 로 찾아보는 읽기 전용 MCP 서버. 핵심 도구 12개.
Korean law: statutes, precedents, ordinances, treaties and citation verification (법제처 API).
Korean public procurement law: rule-engine rulings, statutes search, live court precedents
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
- 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-
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to retrieve current Korean tax statutes, judicial precedents, and tax authority interpretations via MCP, with daily-updated legislative history and full-text search.1MIT
- AlicenseAqualityCmaintenanceEnables users to search Korean National Tax Service tax law interpretations (예규) and retrieve their full body text as plain text from the National Tax Law Information System, complementing the korean-law MCP server that only provides list metadata.2MIT