Skip to main content
Glama

bango-mcp

Bango API の公式 MCP サーバーです。Claude・Cursor などの AI アシスタントに話しかけるだけで、日本の会社の法人番号・所在地・インボイス(適格請求書発行事業者)の登録状況を調べられます。

あなた:「サンプル商事って大阪の会社の法人番号わかる?」
AI    :bango_find_company で候補を探し、所在地とインボイスの登録状況まで答えます

あなた:「この請求書の T1180301018771、去年の10月1日時点で有効だった?」
AI    :bango_check_invoice でその日付時点の有効性を確認します

あなた:「この取引先リスト30社に法人番号を付けて」
AI    :bango_match_companies でまとめて名寄せし、確実な一致と要確認を分けて返します

できること(ツール)

ツール

使う場面

消費する枠

bango_find_company

会社名(表記ゆれOK)から法人を探す。都道府県・郵便番号で絞り込み可

API 1回

bango_get_company

法人番号(13桁)か T番号から、正式名称・所在地・閉鎖の有無・インボイス登録状況を見る

API 1回

bango_check_invoice

T番号が有効か確かめる。最大20件まとめて、日付指定(その日時点)も可

1件につき API 1回

bango_match_companies

会社名の一覧(最大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-mcp

Claude 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_KEY

○

Bango API の APIキー

BANGO_API_BASE_URL

接続先の上書き(既定 https://api.bango-api.jp/v1)

データの出典

国税庁法人番号システム 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-mcp

Get 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 tools
bango_check_invoiceインボイス登録番号が有効か確かめるA
Read-onlyIdempotent
Inspect

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会社名から法人を探すA
Read-onlyIdempotent
Inspect

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番号から会社情報を調べるA
Read-onlyIdempotent
Inspect

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会社名の一覧に法人番号をまとめて付ける(名寄せ)A
Read-onlyIdempotent
Inspect

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

    A4.7/5.0

    Scored across 4 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness5/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables 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.
      14
      60 PyPI
      13
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      3
      MIT