bango-mcp
This server lets AI assistants look up Japanese company and invoice registration information via Bango API in a read-only way.
Search Japanese companies by name with fuzzy matching, optional prefecture or postal-code filters, and ranked candidates.
Retrieve company details by 13-digit corporate number or T+13 invoice number, including official name, kana, address, closure status, and invoice registration status.
Validate up to 20 invoice registration numbers at once, optionally as of a specified date.
Batch-match up to 50 company names to corporate numbers, returning confident, review, or unmatched results and supporting job_id polling.
Automatically absorb common notation variants and avoid choosing among ambiguous company candidates without user confirmation.
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., "@bango-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.
bango-mcp
Bango API の公式 MCP サーバーです。Claude・Cursor などの AI アシスタントに話しかけるだけで、日本の会社の法人番号・所在地・インボイス(適格請求書発行事業者)の登録状況を調べられます。
あなた:「サンプル商事って大阪の会社の法人番号わかる?」
AI :bango_find_company で候補を探し、所在地とインボイスの登録状況まで答えます
あなた:「この請求書の T1180301018771、去年の10月1日時点で有効だった?」
AI :bango_check_invoice でその日付時点の有効性を確認します
あなた:「この取引先リスト30社に法人番号を付けて」
AI :bango_match_companies でまとめて名寄せし、確実な一致と要確認を分けて返しますできること(ツール)
ツール | 使う場面 | 消費する枠 |
| 会社名(表記ゆれOK)から法人を探す。都道府県・郵便番号で絞り込み可 | API 1回 |
| 法人番号(13桁)か T番号から、正式名称・所在地・閉鎖の有無・インボイス登録状況を見る | API 1回 |
| T番号が有効か確かめる。最大20件まとめて、日付指定(その日時点)も可 | 1件につき API 1回 |
| 会社名の一覧(最大50件)に法人番号をまとめて付ける(名寄せ) | 名寄せ 1件につき1行 |
「株式会社/㈱」「全角/半角」「ハイフン入りの番号」などは自動で吸収します。
候補が複数あるときは、AI が勝手に1社に決めずにあなたへ確認するよう設計しています。
すべて読み取り専用です。データの変更や外部への送信は行いません。
Related MCP server: mcp-gbizinfo
はじめかた
1. APIキーを取る(無料)
bango-api.jp/signup で登録し、ダッシュボード で APIキーを発行します。新規登録すると30日間Proプラン無料トライアルが自動で始まり、通常APIは月500,000回、名寄せは月10,000件まで試せます。クレジットカードの登録は不要で、自動で課金されることはありません。終了後は Free プラン(月500回、名寄せ月50件)で続けて使えます(料金)。
2. AI アシスタントに登録する
Node.js 20 以上が必要です。
Claude Code
claude mcp add bango -e BANGO_API_KEY=あなたのAPIキー -- npx -y bango-mcpClaude Desktop(設定 → 開発者 → 設定を編集 で claude_desktop_config.json を開く)
{
"mcpServers": {
"bango": {
"command": "npx",
"args": ["-y", "bango-mcp"],
"env": { "BANGO_API_KEY": "あなたのAPIキー" }
}
}
}Cursor(~/.cursor/mcp.json またはプロジェクトの .cursor/mcp.json)
{
"mcpServers": {
"bango": {
"command": "npx",
"args": ["-y", "bango-mcp"],
"env": { "BANGO_API_KEY": "あなたのAPIキー" }
}
}
}VS Code・Windsurf など他の MCP クライアントも、同じ npx -y bango-mcp と環境変数 BANGO_API_KEY で動きます。
3. 話しかける
「トヨタ自動車の法人番号と本社所在地を教えて」
「T1180301018771 は今も有効?」
「この5社がインボイス登録しているか一覧にして:…」
「スプレッドシートの取引先名に法人番号を付けたい。要確認のものは候補も出して」
設定
環境変数 | 必須 | 説明 |
| ○ | Bango API の APIキー |
| 接続先の上書き(既定 |
データの出典
国税庁法人番号システム Web-API 機能および国税庁適格請求書発行事業者公表システム Web-API 機能を利用して取得した情報をもとに、Bango API が編集・加工して提供しています。内容は国税庁によって保証されたものではありません。
開発
npm install
npm test # ユニットテスト(実際のAPIは呼びません)
npm run build # dist/ に出力
BANGO_API_KEY=... npx @modelcontextprotocol/inspector node dist/index.js # 手元で動作確認不具合や要望は Issues へ。お問い合わせ: support@bango-api.jp
リリースやデータ更新のお知らせは公式X @bangoapi で発信しています。
English
Official MCP server for Bango API. It lets AI assistants identify Japanese companies by name (fuzzy matching) and look up corporate numbers (法人番号), addresses and qualified-invoice (T-number) registration status.
Tools: bango_find_company, bango_get_company, bango_check_invoice, bango_match_companies (all read-only).
claude mcp add bango -e BANGO_API_KEY=your_key -- npx -y bango-mcpGet a free API key at https://bango-api.jp/signup (new sign-ups get a 30-day Pro trial, no credit card required). Updates: @bangoapi on X. License: MIT.
Available Tools
4 toolsbango_check_invoiceインボイス登録番号が有効か確かめるARead-onlyIdempotentInspect
Check whether invoice registration numbers (適格請求書発行事業者の登録番号, T + 13 digits) are valid, for one or many numbers at once (up to 20). Typical use: verifying the T-number printed on an invoice or receipt before claiming input tax credit (仕入税額控除). Without date, checks validity as of today (JST) and also returns the registered name so the user can compare it with the invoice. With date (e.g. the invoice issue date), checks validity on that date; the name is not returned in that mode. A number with only 13 digits is treated as a T-number. Invalid or unknown numbers are reported per item and do not fail the whole call. Uses 1 API request per number.
Inputs: registration_numbers (required), date.
bango_find_company会社名から法人を探すARead-onlyIdempotentInspect
Find Japanese companies (法人) by name and return candidate corporate numbers (法人番号). Use this when the user gives a company name instead of a number, e.g. 「トヨタ自動車」「㈱サンプル 大阪」「sample shoji」. Name variants are absorbed automatically (株式会社/㈱/(株), full-width/half-width, spaces), so pass the name as the user wrote it; do not guess a 13-digit number. Narrow with prefecture when the user mentions a place. Results are ranked by score (0-1). If several candidates look plausible, ask the user which one they mean (show name and prefecture) instead of picking one. Then call bango_get_company with the chosen corporate_number for address and invoice status. Each call uses 1 API request from the user's Bango API quota.
Inputs: company_name (required), exact, limit, post_code, +1 more.
bango_get_company法人番号・T番号から会社情報を調べるARead-onlyIdempotentInspect
Look up one Japanese company or invoice issuer by its corporate number (法人番号, 13 digits) or invoice registration number (登録番号, 'T' + 13 digits). Hyphens, spaces and full-width digits are accepted, e.g. 「T1-1803-0101-8771」. Returns official name, kana, address, whether the company is still active (閉鎖の有無), and its invoice registration status (有効/失効/登録取消/未登録). T-numbers of sole proprietors (個人事業主) also work, but personal address is returned only if the person chose to publish it. If you only have a company name, call bango_find_company first. Uses 1 API request.
Inputs: number (required), response_format.
bango_match_companies会社名の一覧に法人番号をまとめて付ける(名寄せ)ARead-onlyIdempotentInspect
Match a list of company names (e.g. a customer list, sales list, or vendor master from a spreadsheet) to corporate numbers in one go (名寄せ). Each row gets a confidence: 'confident' (safe to use), 'review' (several close candidates; show them to the user), or 'unmatched'. Pass up to 50 names per call; adding a prefecture per row improves accuracy. The job usually finishes within seconds. If it is still running when this tool returns, call it again with the returned job_id (and no companies) to fetch the result; do not resubmit the list. Uses batch-row quota (Free plan: 50 rows per month). For a single company, bango_find_company is cheaper.
Inputs: job_id, companies.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clear primary role: name-to-number search, number-to-details lookup, invoice validation, and bulk name matching. The main overlap is between bango_get_company and bango_check_invoice, since both can accept T-numbers and report invoice-related information, but their descriptions distinguish single-record detail lookup from batch validation.
All tools use the same bango_ prefix followed by a clear verb_noun pattern: find_company, get_company, check_invoice, match_companies. The verbs are distinct and the snake_case convention is consistent throughout.
Four tools is well scoped for a focused Japanese corporate-number and invoice lookup server. Each tool covers a distinct workflow need without redundant surface area.
The set covers the key workflows: resolving a name to a corporate number, retrieving details by number, validating invoice registration numbers, and batch-matching company lists. No obvious operational gap remains for the stated lookup domain.
Maintenance
Related MCP Connectors
Verify Japanese companies, invoice-issuer registrations and addresses against government open data.
Japan data tools for AI agents: calendar (rokuyo), address, name splitting, corporate number lookup
Japan corporate number & invoice registration number lookup — official National Tax Agency data.
Search Japanese company credit, financials, subsidies, and procurement via AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform Japanese invoice and tax calculations, including consumption tax, withholding tax, invoice number validation, and invoice data generation, all locally without external APIs.MIT
- AlicenseNot gradedqualityBmaintenanceEnables querying the Japanese corporate registry from METI's gBizINFO for company profiles, government procurement, subsidies, patents, certifications, financials, and workplace disclosures using corporate numbers or names.95 npmMIT
- AlicenseAqualityDmaintenanceEnables AI assistants to access and compare Japanese public data from e-Stat, corporate registration, real estate, and invoice APIs, automatically converting codes into human-readable formats with sources and timestamps.1460 PyPI13MIT
- AlicenseAqualityBmaintenanceEnables AI agents to validate a Japanese qualified invoice against the six required items, reduced-rate markings, per-rate totals, and once-per-invoice-per-rate tax rounding, while flagging the common line-by-line rounding mistake, and to normalize and verify T + 13-digit registration numbers. Read-only tools also compute expected consumption tax for a given amount, rate, price basis, and rounding method.3MIT