Skip to main content
Glama

bango-mcp

Bango API の公式 MCP サーバーです。Claude・Cursor などの AI アシスタントに話しかけるだけで、日本の会社の法人番号・所在地・インボイス(適格請求書発行事業者)の登録状況を調べたり、**エリアと業種で会社のリスト(公式サイトURL・業種つき、CSVも可)**を作ったりできます。

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

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

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

あなた:「大阪市の工務店で、問い合わせフォームがある会社は何社ある?」
AI    :bango_count_companies で件数と内訳を数えます(無料・枠を使いません)

あなた:「じゃあ300社をCSVで」
AI    :bango_export_companies_csv でCSVを作り、24時間有効なダウンロードリンクを返します

できること(ツール)

ツール

使う場面

消費する枠

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行

bango_count_companies

都道府県・市区町村・郵便番号と業種に合う会社の数と内訳(サイト・電話・フォームの有無、業種別)を数える

なし(無料)

bango_list_companies

同じ条件で会社のリストを見る。公式サイト・電話・フォーム・FAXの有無、従業員数、設立年月、最終確認日で絞り込み、社名順・設立が新しい順・従業員が多い順などで並べ替え可。CSVでも返せる

返した社数(エリア・業種リストの月間社数枠)

bango_export_companies_csv

同じ条件で最大10万社をCSVにして、ダウンロードリンク(24時間有効)を返す

書き出した社数(同じ月に同じ会社は1回だけ)

  • 「株式会社/㈱」「全角/半角」「ハイフン入りの番号」などは自動で吸収します。

  • 候補が複数あるときは、AI が勝手に1社に決めずにあなたへ確認するよう設計しています。

  • CSV書き出し以外は読み取り専用です。どのツールもデータの変更や外部への送信は行いません。

  • 同じ月に同じ会社を取り直しても、社数枠は1回分しか使いません。

  • bango_list_companies の月間社数枠は Free 100社、Starter 500社、Growth 3,000社、Pro 10,000社です。電話番号・問い合わせフォームは、Free では有無だけ、Starter 以上では番号とURLまで返します。

  • 公式サイトURLと業種には出典(公的名簿・Common Crawl など)と観測日が付きます。出典を表示すれば、納品・組み込みを含む商用利用ができます。

Related MCP server: japan-data-mcp

はじめかた

いちばん簡単:コネクタURLを追加してログインするだけ(APIキー不要)

claude.ai・Claude Desktop・Claude Code・ChatGPT・Cursor など、リモート MCP(カスタムコネクタ)に対応したアプリなら、次の URL を追加して Bango API アカウントでログインするだけで使えます。Node.js も APIキーの設定も要りません。

https://mcp.bango-api.jp/mcp
  • claude.ai / Claude Desktop: 設定 → コネクタ → 「カスタムコネクタを追加」で、名前に Bango MCP、URL に上の URL を入れる → ログイン画面でメール+パスワードか Google でログイン

  • Claude Code: claude mcp add --transport http bango-mcp https://mcp.bango-api.jp/mcp → /mcp から認証

  • ChatGPT: カスタムMCPサーバーを追加できるプラン(Business・Enterprise/Edu など)で、「+」→「カスタムMCPサーバーを追加」から上の URL を入れ、認証は OAuth

  • Cursor: ~/.cursor/mcp.json に {"mcpServers": {"bango": {"url": "https://mcp.bango-api.jp/mcp"}}} を追加してログイン

  • アカウントがない場合は bango-api.jp/signup で無料登録してから接続してください

  • 詳しい手順と頼み方の例は bango-api.jp/mcp にまとめています

  • 接続すると、ダッシュボードに「MCPコネクタ(アプリ名)」という APIキーが自動で作られます。利用回数はご契約プランの上限に数えられ、そのキーを削除すると接続が切れます

以下は、手元で npx から動かすローカル版の手順です。

1. APIキーを取る(無料)

bango-api.jp/signup で登録し、ダッシュボード で APIキーを発行します。Free プラン(月500回、名寄せ月50件、エリア・業種リスト月100社)はクレジットカードの登録なしで使えます(料金)。

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   # 手元で動作確認

リモート版(コネクタURL+ログインで使う版)の構成と運用は docs/REMOTE.md を参照してください。

不具合や要望は 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) look up corporate numbers (法人番号), addresses and qualified-invoice (T-number) registration status, and build company lists by area and industry with official website URLs and sources (CSV available).

Tools: bango_find_company, bango_get_company, bango_check_invoice, bango_match_companies, bango_count_companies, bango_list_companies (read-only) and bango_export_companies_csv (creates a CSV export).

Easiest: add a custom connector named Bango MCP with the URL https://mcp.bango-api.jp/mcp in claude.ai, Claude Desktop, Claude Code, ChatGPT or Cursor and sign in with your Bango API account (no API key setup needed). Or run it locally:

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 (the Free plan needs no credit card). 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

    ActivityNo data
    ResponsivenessOutdated data

    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
      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
      39 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
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to estimate year-end tax adjustment refunds or additional withholding, look up account titles and sample journal entries, validate qualified invoice registration numbers against published data, and compare consumption tax payment methods.
      550 npm
      1
      -