Japan Corporate Number & Invoice Check (mcp-houjin-bangou)
Zero-auth MCP App & server for Japan Corporate Number (13-digit 法人番号) and Qualified Invoice Issuer (T-number) lookup, 1-shot counterparty verification (verify_counterparty), and 20-company batch master enrichment using National Tax Agency of Japan public bulk data, with interactive MCP Apps UI cards and TSV copy.
Hosted MCP Server
npx add-mcp 'https://houjin.mcp.sugu-kuru.co.jp/mcp'Installs into Claude Code, Codex, Cursor and more
Documentation
@sugukuru/mcp-houjin-bangou
Model Context Protocol (MCP) server for looking up and verifying Japanese Corporate Numbers (法人番号) and Qualified Invoice Issuers (適格請求書発行事業者) published by the National Tax Agency of Japan.
🇯🇵 日本語版 README: README.ja.md
🔗 Product Pages: Product Overview | Terms of Service | Privacy Policy
Quick Connect (Zero API Key — Hosted Edition)
Connect immediately to https://houjin.mcp.sugu-kuru.co.jp/mcp (all 7 tools + 4 prompts + interactive MCP Apps UI; listed on the Official MCP Registry as jp.co.sugu-kuru/mcp-houjin-bangou):
- ChatGPT (Published Plugin): Open Japan Company & Invoice Check on ChatGPT and connect with one click (no authentication required).
- Claude Code (1 command):
claude mcp add --transport http houjin-bangou https://houjin.mcp.sugu-kuru.co.jp/mcp - Google Antigravity (AGY):
agy plugin install https://github.com/SUGUKURU-CO-LTD/mcp-houjin-bangou - Claude Desktop / Claude.ai / ChatGPT (Web & Desktop UI):
- Open Settings → Connectors (or Apps & Connectors) → Add Custom Connector.
- Enter Server URL:
https://houjin.mcp.sugu-kuru.co.jp/mcp(no authentication required). - Start asking about any Japanese company name, 13-digit corporate number, or
T+13-digit invoice number!
- Glama (Inspect & Test Online): Browse tools, inspect the TDQS quality score, or test the server online with MCP Inspector via the Glama MCP Server listing and Glama MCP Connector.
Overview
An MCP server that enables Claude, ChatGPT, Cursor, Google Antigravity, VS Code Copilot, and any MCP-compatible client to:
- Look up a Japanese corporation by its 13-digit National Corporate Number (
lookup_corporate_by_number), returning published name, furigana, English name/address, head-office address, postal code, legal type, assignment/change dates, closure status/cause, successor corporate number (successor_corporate_number), and outdated-address flag (address_may_be_outdated). - Search corporations by name (
search_corporate_by_name) with optional 2-digit JIS prefecture filter (01–47), cursor-based pagination, 2-stage exact/active-first ranking, and automatic expansion across half/full-width ASCII & spaces (Apple Japan⇔Apple Japan), old/new kanji (野村証券⇔野村證券,高橋⇔髙橋), small/large katakana (キャノン⇔キヤノン,富士フィルム⇔富士フイルム), Zengin half-width kana (カ)スグクル), registered English names, and hiragana-to-katakana (すぐくる→スグクル) in Hosted DB mode. - Verify a Qualified Invoice Issuer by registration number (
lookup_invoice_issuer,T+ 13 digits), with optional factual registration check as of a specified reference date (reference_date→was_registered_on_reference_date), multiple registrationperiods, and corporatecountrycategory. - One-shot counterparty audit (
verify_counterparty) cross-checking a single invoice/contract's company name, address, 13-digit corporate number,T+13-digit registration number, andreference_datein one deterministic call (covering 75 old/new kanji variants, prefix/suffix kabu, Zengin kana, kanji street-block numerals,hihyojiaddress flag, merger predecessor/successor lineage, and JCT period validity—strictly factual, no tax advice, sole-proprietor PII masked). - Batch corporate master enrichment (
enrich_corporate_batch) deduplicating and enriching up to 20 company names or 13-digit corporate numbers in one call using NTA Corporate Number data only (strictly no bulk JCTT-number lookups) with one-click TSV export. - Validate check digits locally (
validate_corporate_number) with zero external network calls. - Normalize fuzzy company names (
normalize_company_name) deterministically across Japanese corporate-name patterns (expansion and position swaps of(株)/㈱/株式会社and other legal entities, Zengin kana such asカ), English-to-Japanese suffixes such asK.K./Co., Ltd./LLC, NFKC, 75 old-to-new kanji variants, IVS stripping, and whitespace canonicalization).
Two Operating Modes
1. Hosted / PostgreSQL Mode (DATA_SOURCE=db — Remote Streamable HTTP)
- Serves all 7 tools (including
lookup_invoice_issuer, fullverify_counterpartyinvoice cross-check, and 2-stageenrich_corporate_batch) from a PostgreSQL 16 (pg_trgm) database populated monthly from the National Tax Agency's public bulk download datasets (all-records CSVs for Corporate Numbers and Qualified Invoice Issuers). - Requires zero API keys for end users and does not use an NTA Web-API Application ID at runtime.
- Enforces
/mcpOriginheader allowlist verification, per-IP rate limiting (Retry-After), and 3-role database privilege separation (houjin_admin,houjin_ingest,houjin_reader).
2. Local / Self-Hosted Mode (HTTP)
- Runs locally as a Streamable HTTP server (default port
3001) using either:- NTA Web-API mode (
DATA_SOURCE=web-api, default): Uses your own NTA Web-API Application ID (NTA_APPLICATION_ID) for corporate number lookups, searches, corporate-sideverify_counterparty, andenrich_corporate_batch. Note that Qualified Invoice Issuer (T+13-digit) database verification (lookup_invoice_issuerand invoice status inverify_counterparty) is not available inweb-apimode (DATA_UNAVAILABLE) and requiresDATA_SOURCE=dbor the Hosted Edition. - Local PostgreSQL mode (
DATA_SOURCE=db): Connects to your own PostgreSQL 16 database (DATABASE_URL) migrated vianpx @sugukuru/mcp-houjin-bangou(npm run db:migrate) and populated via the bundled ingestion CLI (src/ingest/cli.ts), enabling all 7 tools locally.
- NTA Web-API mode (
# Run in local NTA Web-API mode (default port: 3001)
NTA_APPLICATION_ID="YOUR_NTA_APPLICATION_ID" npx @sugukuru/mcp-houjin-bangou
MCP Client Configuration Examples
Cursor (.cursor/mcp.json or ~/.cursor/mcp.json)
{
"mcpServers": {
"houjin-bangou": {
"type": "streamable-http",
"url": "https://houjin.mcp.sugu-kuru.co.jp/mcp"
}
}
}
Claude Code (.mcp.json or ~/.claude.json)
{
"mcpServers": {
"houjin-bangou": {
"type": "http",
"url": "https://houjin.mcp.sugu-kuru.co.jp/mcp"
}
}
}
VS Code (.vscode/mcp.json)
{
"servers": {
"houjin-bangou": {
"type": "http",
"url": "https://houjin.mcp.sugu-kuru.co.jp/mcp"
}
}
}
Claude Desktop (claude_desktop_config.json fallback)
Prefer adding https://houjin.mcp.sugu-kuru.co.jp/mcp via Settings → Connectors in Claude Desktop. If your environment requires claude_desktop_config.json (which expects a local command entry rather than a bare url), bridge via mcp-remote:
{
"mcpServers": {
"houjin-bangou": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://houjin.mcp.sugu-kuru.co.jp/mcp"]
}
}
}
Local HTTP Mode (Self-Hosted)
After starting the local HTTP server in a terminal (http://localhost:3001/mcp), connect using "type": "streamable-http" (Cursor) or "type": "http" (Claude Code / VS Code), or "args": ["-y", "mcp-remote", "http://localhost:3001/mcp"] in claude_desktop_config.json (do not pass @sugukuru/mcp-houjin-bangou directly as a stdio "command"). See examples/ for complete sample files.
Tools (7)
| Tool | Purpose | Annotations (readOnly / destructive / idempotent / openWorld*) | Notes |
|---|---|---|---|
lookup_corporate_by_number | Look up 1 corporation by 13-digit corporate number | true / false / true / true | Returns basic info, EN name/address, assignment/change dates, closure details, successor_corporate_number, and address_may_be_outdated. Linked to ui://corporate-card/mcp-app.html. |
search_corporate_by_name | Search corporations by name & filters | true / false / true / true | Optional prefecture (01–47), limit (1–20), and cursor. Supports JP/EN/Zengin kana in Hosted DB mode. Linked to ui://search-results/mcp-app.html. |
lookup_invoice_issuer | Look up Qualified Invoice Issuer by T + 13 digits | true / false / true / true | Optional reference_date (YYYY-MM-DD) returns was_registered_on_reference_date + periods. Requires Hosted Edition or DATA_SOURCE=db. Linked to ui://corporate-card/mcp-app.html. |
verify_counterparty | 1-shot counterparty verification (name, address, corporate number, T-number, reference_date) | true / false / true / true | Deterministic diff check + merger predecessor/successor lineage + JCT validity & audit TSV copy. Linked to ui://corporate-card/mcp-app.html. |
enrich_corporate_batch | Batch corporate master deduplication & enrichment (max 20 corporations) | true / false / true / true | Corporate Number public data ONLY (no bulk T-number lookups); 2-stage matching + 1-click TSV export. Linked to ui://search-results/mcp-app.html. |
validate_corporate_number | Local Modulo-9 check-digit validation | true / false / true / false | Pure function; no DB or network access (both modes). |
normalize_company_name | Deterministic Japanese company-name normalization | true / false / true / false | Pure function; extracts normalized_name, legal_type, and search_query_optimized (both modes). |
- Note on
openWorldannotation:openWorldHintis declared by the server for each tool as metadata and is not sent by clients.
- In accordance with directory submission guidelines for public/open-ended entities (v1.8+ specification), data lookup tools (
lookup_corporate_by_number,search_corporate_by_name,lookup_invoice_issuer,verify_counterparty,enrich_corporate_batch) declareopenWorldHint: trueacross both Hosted Edition and Local Mode. - Pure calculation tools (
validate_corporate_number,normalize_company_name) declareopenWorldHint: falsein both modes as they operate purely in memory without external data lookups.
Prompts (4), MCP Apps UI Resources (2) & A2UI v1.0 Support
- Prompts:
invoice-verification-check: Verify a received invoice'sT+13-digit registration number, transaction date (reference_date), and corporate existence/merger succession in one step, producing a factual accounting verification record (no tax advice; no personal contact fields).company-master-record: Normalize a company name, search NTA records, and format a clean corporate master entry (strictly corporate data only; no personal contact fields).sales-list-enrichment: Enrich a list of company names (up to 20 per request) with 13-digit corporate numbers and published head-office addresses.customer-master-dedup: Detect duplicate customer master records caused by notation variants, mergers, or relocations.
- MCP Apps UI Resources (
@modelcontextprotocol/ext-appsv1.7 + ChatGPTopenai/outputTemplate):ui://corporate-card/mcp-app.html: Interactive card view forlookup_corporate_by_number(Corporate Card with corporate-number copy, one-click TSV Vendor Master bulk copy for Excel/ERP/kintone, core-name similar-company search, successor drill-down, and one-click Qualified Invoice cross-check + reference-date picker),lookup_invoice_issuer(Invoice Verification Card with corporate profile link), andverify_counterparty(Counterparty Audit Card with diff highlights).ui://search-results/mcp-app.html: Responsive table/card view forsearch_corporate_by_nameandenrich_corporate_batchwith status filter pills, interactivenext_cursorpagination, one-click TSV export, view-history back navigation, OS text-scale adaptation, andupdateModelContextsynchronization.
- A2UI v1.0 Declarative UI Payloads (
application/a2ui+json):- All 5 interactive workflows (
lookup_corporate_by_number,lookup_invoice_issuer,verify_counterparty,search_corporate_by_name,enrich_corporate_batch) also emit standard A2UI v1.0 payloads ([createSurface, updateComponents, updateDataModel]targeting the official Basic Catalog with zero custom components) incontent[1](type: "resource",mimeType: "application/a2ui+json",uri: "a2ui://houjin-bangou/<workflow>/<surfaceId>"). - Every tool continues to return complete human-readable text (
content[0]) and machine-readablestructuredContent, so headless CLI or non-UI clients fulfill all workflows without breaking changes.
- All 5 interactive workflows (
Privacy, Security & Data Freshness
- No input logging: Corporate numbers, invoice registration numbers, and search queries are never written to application logs or leaked in error messages.
- Sole proprietor protection: For individual (sole proprietor) invoice issuers, personal names, trade names, and addresses are never imported into the database or returned by any tool—only the registration number (
T+ 13 digits), entity classification, and registration/cancellation/expiration dates are stored. - Monthly data refresh: The hosted database is updated once per month (snapshot as of the end of the preceding month). Mid-month changes, revocations, or deletion requests (process code
99) are reflected in the next monthly update. Every response includesdata_as_of. - Factual lookup only: Date comparisons (
was_registered_on_reference_date) represent a mechanical comparison against published registration periods as ofdata_as_ofand do not constitute tax or legal advice.
Documentation
- Getting Started
- API Reference
- Usage Cookbook
- Architecture
- MCP Apps UI Resources
- Troubleshooting
- Hosted Deployment Runbook
- Database Roles & Privilege Separation
- Self-Hosting Guide / Docker Guide / npx Quickstart
- Prompt Injection Defense
- Privacy Policy (English)
- Terms of Service (English)
- Architecture Decision Records
- SECURITY / CONTRIBUTING / CODE OF CONDUCT
Attribution
- Corporate Number Data: National Tax Agency Corporate Number Publication Site (
https://www.houjin-bangou.nta.go.jp/) — Public Data License v1.0 (公共データ利用規約 第1.0版) - Qualified Invoice Issuer Data: National Tax Agency Qualified Invoice Issuer Publication Site (
https://www.invoice-kohyo.nta.go.jp/) — Public Data License v1.0 (公共データ利用規約 第1.0版) - Web-API Disclaimer (Self-Hosted
web-apimode):このサービスは、国税庁法人番号システムWeb-API 機能を利用して取得した情報をもとに作成しているが、サービスの内容は国税庁によって保証されたものではない
License & Maintainer
- License: MIT © 2026 SUGUKURU CO., LTD. (スグクル株式会社, Kagoshima, Japan)
- Website: https://sugu-kuru.co.jp
- Contact:
info@sugu-kuru.co.jp