Skip to main content
Glama

taxlaw-nts-mcp

An STDIO server that uses MCP tools to search data from the National Tax Law Information System (https://taxlaw.nts.go.kr).

MCP 1.27 TypeScript License: MIT

It provides supplementary searches for National Tax Service (NTS) tax law interpretations, Q&A, tax appeal documents, basic rulings, tables/forms, publications, and Hometax consultation cases that are difficult to find directly through the Ministry of Government Legislation.

To allow access to menus that do not yet have dedicated high-level tools, it also provides tools for listing confirmed site menus/actions, raw action.do calls, and retrieving HTML text from the site.

English

How to use with korean-law-mcp

For tax law inquiries, we recommend a workflow where you first check the Ministry of Government Legislation/statute DB for laws, enforcement decrees, precedents, and tax tribunal decisions using korean-law-mcp, and then use this server for supplementary searches when you cannot find NTS interpretations, basic rulings, Hometax consultation cases, or publications in the Ministry of Government Legislation search.

When both MCPs find the same precedent, decision, or interpretation, consolidate them based on the document number/claim number/case number (with spaces and hyphens removed), production date/decision date, and title. Do not list identical items redundantly; include source IDs from both sides, and use the results from this server to supplement original text snippets, Hometax consultations, basic rulings, and publications that are only available in the National Tax Law Information System.

This server only displays items present in the National Tax Law Information System responses. If a search fails or an external site error occurs, it returns markers such as [NOT_FOUND], [EXTERNAL_API_ERROR], or [INVALID_PARAMETER] along with a warning against making guesses.

Related MCP server: LexLink-ko-mcp

Provided Tools

Tool

Purpose

search_taxlaw_all

Integrated search for the National Tax Law Information System. Searches tables/forms, tax laws, tax interpretations/Q&A, precedents/decisions, publications, and Hometax consultation cases together

search_taxlaw_documents

Searches tax interpretation/Q&A, pre-assessment review, objection, examination, adjudication, precedent, and Constitutional Court documents

get_taxlaw_document_text

Retrieves the detailed document body using DOC_ID/DOCID from search results

get_taxlaw_hometax_counsel_text

Retrieves the detailed body using REQ_STD_ID from integrated Hometax consultation case search results

list_taxlaw_site_menus

Retrieves major menus of the National Tax Law Information System and confirmed action.do call information

call_taxlaw_action

Retrieves raw JSON from action.do using actionId/paramData confirmed from menus

get_taxlaw_page_text

Retrieves static HTML materials and general pages as text

search_taxlaw_interpretations

Alias for legacy compatible tax interpretation search

get_taxlaw_interpretation_text

Alias for legacy compatible tax interpretation detail

list_taxlaw_basic_ruling_laws

Retrieves the list of basic ruling laws

get_taxlaw_basic_ruling_text

Retrieves the body of basic rulings

search_taxlaw_forms

Searches all forms, tables, legal forms, directive forms, and frequently used forms

search_taxlaw_publications

Searches NTS publications. Displays file IDs and download hints from the detailed API when available

list_taxlaw_publication_categories

Retrieves publication category codes

Accessing the Full Menu

First, use list_taxlaw_site_menus to check menu keys, URLs, confirmed actionId, and default paramData. For menus with dedicated tools, use the corresponding high-level tool; for menus without one, pass actionId, defaultParamData, and refererPath to call_taxlaw_action to retrieve the raw response. For materials provided as static HTML, such as summary information by tax item or tax law revision proposals, pass paths like /html/U_0101.html or /cm/USECMJ001M.do to get_taxlaw_page_text. Tax schedules can be retrieved by passing year and month to the ASECMC001MR01 action identified in list_taxlaw_site_menus(query="세무일정").

Quick Start

npm install
npm run build
npm start

To run from a local source path in an MCP client:

{
  "mcpServers": {
    "taxlaw-nts": {
      "command": "node",
      "args": ["/absolute/path/to/taxlaw-nts-mcp/build/index.js"]
    }
  }
}

After publishing to npm, you can register it more concisely after a global installation.

npm install -g taxlaw-nts-mcp
{
  "mcpServers": {
    "taxlaw-nts": {
      "command": "taxlaw-nts-mcp"
    }
  }
}

Environment Variables

No API key is required. You can change the User-Agent used for National Tax Law Information System calls when necessary.

TAXLAW_USER_AGENT="Mozilla/5.0 ..."

Error Response Policy

If there are no search or detail results, it returns [NOT_FOUND] and isError: true. External site errors are returned as [EXTERNAL_API_ERROR], and invalid inputs as [INVALID_PARAMETER]. The result body includes both the source URL and the actual ID retrieved.

Development

npm run build
npm run watch
npm pack --dry-run

License

MIT

Available Tools

14 tools
call_taxlaw_actionB

국세법령정보시스템 action.do 원시 호출. list_taxlaw_site_menus의 actionId/defaultParamData 또는 브라우저에서 확인한 actionId를 사용할 수 있습니다.

Inputs: actionId (required), refererPath (required), paramData, full.

get_taxlaw_basic_ruling_textA

국세법령정보시스템 기본통칙 본문 조회. list_taxlaw_basic_ruling_laws 결과의 lawId 사용.

Inputs: lawId (required), year, query, display, +1 more.

get_taxlaw_document_textA

국세법령정보시스템 문서 상세 조회. search_taxlaw_documents/search_taxlaw_all 결과의 DOC_ID/id를 사용.

Inputs: id (required), docType, full.

get_taxlaw_hometax_counsel_textA

국세법령정보시스템 홈택스 상담사례 상세 조회. search_taxlaw_all의 hometaxCnslThan 결과 ID/REQ_STD_ID를 사용.

Inputs: id (required).

get_taxlaw_interpretation_textB

하위호환용: 세법해석례/질의회신 상세 조회. 내부적으로 get_taxlaw_document_text를 사용.

Inputs: id (required), full.

get_taxlaw_page_textB

국세법령정보시스템 HTML/텍스트 페이지를 같은 사이트 경로로 조회해 텍스트로 변환합니다. 정적 자료(예: 세목별요약정보 /html/U_0101.html) 확인용입니다.

Inputs: path (required), full.

list_taxlaw_basic_ruling_lawsA

국세법령정보시스템 기본통칙 법령 목록 조회. get_taxlaw_basic_ruling_text의 lawId 확보용.

Inputs: query.

list_taxlaw_publication_categoriesC

국세법령정보시스템 발간책자 분야 코드 목록 조회.

Inputs: no named parameters.

list_taxlaw_site_menusA

국세법령정보시스템 주요 메뉴별 접근 경로와 확인된 action.do 호출 정보를 나열합니다. 고수준 도구가 없는 메뉴는 call_taxlaw_action 또는 get_taxlaw_page_text로 접근합니다.

Inputs: query.

search_taxlaw_allA

국세법령정보시스템 통합검색. 법제처 API에 없는 국세청 자료까지 보완 탐색: 별표서식, 국세법령, 세법해석/질의, 판례·결정례, 발간책자, 홈택스 상담사례. korean-law-mcp(법제처 DB)와 병용 권장 — 법조문 본문은 korean-law-mcp의 get_law_text가 정확하고, 본 도구의 statute 컬렉션은 메타·인용 위주.

Inputs: query (required), collections, displayPerCollection, page, +5 more.

search_taxlaw_documentsA

국세법령정보시스템 문서 검색. 세법해석례/질의회신(01-04)과 과세전적부·이의·심사·심판·판례·헌재(05-10)를 검색. 최신 조세심판원 결정례는 NTS가 강세이므로 본 도구 우선; 그래도 없으면 korean-law-mcp의 search_decisions로 병행 확인 권장.

Inputs: query, docType, display, page, +4 more.

search_taxlaw_formsB

국세법령정보시스템 별표/서식 검색. 전체 서식, 별표, 법령서식, 훈령서식, 자주찾는서식을 탐색.

Inputs: query, kind, lawId, display, +1 more.

search_taxlaw_interpretationsC

하위호환용: 세법해석례/질의회신 검색. 내부적으로 search_taxlaw_documents를 사용.

Inputs: query, docType, display, page, +4 more.

search_taxlaw_publicationsC

국세법령정보시스템 발간책자 검색. 세무안내, 신고안내 등 전자도서관 자료 탐색.

Inputs: query, categoryCode, display, page.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 14 tools

    Disambiguation3/5

    Many tools are clearly distinct, but there are redundant tools (get_taxlaw_interpretation_text and search_taxlaw_interpretations) that are just aliases for existing ones, causing potential confusion. Also, multiple search tools with different scopes may overlap in function.

    Naming Consistency5/5

    All tool names follow a consistent verb_taxlaw_object pattern (e.g., call_taxlaw_action, list_taxlaw_basic_ruling_laws, search_taxlaw_documents), making naming predictable and easy to understand.

    Tool Count5/5

    With 14 tools covering various aspects of tax law information access (search, retrieval, listing, raw calls), the count is well-scoped for the server's purpose, neither too few nor excessive.

    Completeness4/5

    The tool set covers search, retrieval, and navigation of the NTS tax law system, including documents, interpretations, rulings, forms, and publications. Minor gaps exist (e.g., reliance on korean-law-mcp for some law text), but the coverage is comprehensive for its intended use.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables searching and retrieving Korean statutes, precedents, and constitutional court decisions via MCP, using the National Law Information Center API.
      4,629 npm
      1
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      MCP 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.
      4
      54
      -
    • A
      license
      A
      quality
      C
      maintenance
      MCP 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.
      9
      3
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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.
      1
      MIT