Bango API(法人番号・インボイス)

v0.3.0
io.github.taku1211/bango-mcp Checked 9 hours ago Published 5 days ago

Japanese companies: corporate numbers, invoice status, and company lists by area and industry.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

bango_find_company 会社名から法人を探す

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) inste…

ParameterTypeDescription
company_name *string会社名(一部でも可)。例: 「サンプル商事」「株式会社サンプル」
exactbooleantrue にすると表記ゆれを吸収したうえでの完全一致だけを返す。既定は部分一致(false)
limitinteger返す候補の数(1〜20、既定5)
post_codestring郵便番号(7桁、ハイフン可)で絞り込む
prefecturestring都道府県で絞り込む。「大阪」「大阪府」「27」「osaka」のどれでも可

bango_get_company 法人番号・T番号から会社情報を調べる

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…

ParameterTypeDescription
number *string法人番号(13桁)またはインボイス登録番号(T+13桁)
response_formatstringconcise(既定)は要点だけ。detailed はAPIの全項目(英語名、変更履歴など)も含める

bango_check_invoice インボイス登録番号が有効か確かめる

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 unkno…

ParameterTypeDescription
registration_numbers *array確認したい登録番号の配列(1〜20件)。例: ["T1180301018771"]
datestringこの日付時点で有効だったかを判定する(YYYY-MM-DD、2024/10/1 なども可)。省略時は今日

bango_match_companies 会社名の一覧に法人番号をまとめて付ける(名寄せ)

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).…

ParameterTypeDescription
companiesarray会社名の配列(1〜50件)。文字列か {name, prefecture} の形
job_idstring前回の呼び出しで返った job_id。結果の取得だけを行う

bango_list_companies エリア・業種で会社のリストを作る

List Japanese companies (法人) by area and industry, with official website URL and industry, each carrying its source and observation date. Use this for requests like 「大阪市の工務店で公式サイトがある会社をリストにして」「堺市の介護事業所を100社CSVで」. Give at least one of prefecture, city, post_code_prefix, industry or jsic_code. city accepts a designated city name (大阪市, 横浜市, 東京23区 ...) which covers all its wards, or a 5-digit local government code for any other city. Filter by contact data (has_website / has_phone / has_contact_fo…

ParameterTypeDescription
citystring市区町村。政令指定都市は名前(大阪市・横浜市・東京23区など)で全区が対象。それ以外は5桁の全国地方公共団体コード(例: 27203 豊中市)
cursorstring前回の next_cursor。続きのページを取るときに、同じ条件・同じ order と一緒に渡す
established_fromstringこの年月以降に設立された会社だけ(YYYY-MM)。例: 3年以内なら3年前の年月
established_knownbooleanfalse で設立年月が分からない会社だけ。ほぼ2015年10月(法人番号の制度開始)より前に設立された会社
established_tostringこの年月までに設立された会社だけ(YYYY-MM)
formatstringcsv にすると、表と一緒に保存用のCSV文字列(csv)も返す
has_contact_formbooleantrue で問い合わせフォームがある会社だけ(フォーム営業向け)、false でない会社だけ
has_faxbooleantrue でFAX番号がある会社だけ、false でない会社だけ
has_insured_employeesbooleanfalse で従業員数のデータがない会社だけ(true であるだけ)
has_phonebooleantrue で電話番号がある会社だけ、false でない会社だけ
has_websitebooleantrue で公式サイトURLがある会社だけ、false でない会社だけ
industrystring業種の大分類(推定値)。工務店・建設会社は「建設」、介護事業所は「介護・福祉・保育」
insured_employees_maxinteger従業員数(厚生年金の被保険者数)の上限。例: 29
insured_employees_mininteger従業員数(厚生年金の被保険者数)の下限。例: 10
jsic_codestring日本標準産業分類(第14回改定)の中分類2桁。例: 06 総合工事業、85 社会保険・社会福祉・介護事業
limitinteger1回に返す社数(1〜100、既定20)。返した社数だけ月間の社数枠を使う
orderstring並び順。companies_first(既定。株式会社などの会社を先に)、name(社名の50音順)、established_desc(設立が新しい順)、employees_desc(従業員が多い順)々
post_code_prefixstring郵便番号の前方一致(3〜7桁、ハイフン可)。例: 530 / 591-0001
prefecturestring都道府県。「大阪」「大阪府」「27」「osaka」のどれでも可
verified_onlybooleantrue でサイト自身が社名を名乗っている根拠のあるURLだけに絞る
web_verified_fromstring公式サイト・連絡先をこの日以降に確認した会社だけ(YYYY-MM-DD)

bango_count_companies エリア・業種に合う会社の数を数える(無料)

Count Japanese companies matching an area / industry before making a list, with a breakdown (with website, with phone, with contact form, by industry). Free: it does not use the monthly company quota, so call it first whenever the user asks for a list, and tell them the count before fetching rows. Also returns how many of them were already delivered this month (re-delivering them is free) and how many quota rows a full export would use. Takes the same filters as bango_list_companies (order does not change a count).

ParameterTypeDescription
citystring市区町村。政令指定都市は名前(大阪市・横浜市・東京23区など)で全区が対象。それ以外は5桁の全国地方公共団体コード(例: 27203 豊中市)
established_fromstringこの年月以降に設立された会社だけ(YYYY-MM)。例: 3年以内なら3年前の年月
established_knownbooleanfalse で設立年月が分からない会社だけ。ほぼ2015年10月(法人番号の制度開始)より前に設立された会社
established_tostringこの年月までに設立された会社だけ(YYYY-MM)
has_contact_formbooleantrue で問い合わせフォームがある会社だけ(フォーム営業向け)、false でない会社だけ
has_faxbooleantrue でFAX番号がある会社だけ、false でない会社だけ
has_insured_employeesbooleanfalse で従業員数のデータがない会社だけ(true であるだけ)
has_phonebooleantrue で電話番号がある会社だけ、false でない会社だけ
has_websitebooleantrue で公式サイトURLがある会社だけ、false でない会社だけ
industrystring業種の大分類(推定値)。工務店・建設会社は「建設」、介護事業所は「介護・福祉・保育」
insured_employees_maxinteger従業員数(厚生年金の被保険者数)の上限。例: 29
insured_employees_mininteger従業員数(厚生年金の被保険者数)の下限。例: 10
jsic_codestring日本標準産業分類(第14回改定)の中分類2桁。例: 06 総合工事業、85 社会保険・社会福祉・介護事業
post_code_prefixstring郵便番号の前方一致(3〜7桁、ハイフン可)。例: 530 / 591-0001
prefecturestring都道府県。「大阪」「大阪府」「27」「osaka」のどれでも可
verified_onlybooleantrue でサイト自身が社名を名乗っている根拠のあるURLだけに絞る
web_verified_fromstring公式サイト・連絡先をこの日以降に確認した会社だけ(YYYY-MM-DD)

bango_export_companies_csv エリア・業種の会社リストをCSVで書き出す

Export a company list (same filters as bango_list_companies) as a CSV file and return a download link valid for 24 hours, instead of putting rows in the chat. Use this when the user wants more than a handful of companies or asks for a CSV / Excel file. Count first with bango_count_companies and agree on max_rows. Each newly delivered company uses the monthly company quota once per month; companies already delivered this month are free. If the quota runs out midway, the CSV contains what fit. The export runs in the background: if status is still running, call again with only export_id. On the F…

ParameterTypeDescription
citystring市区町村。政令指定都市は名前(大阪市・横浜市・東京23区など)で全区が対象。それ以外は5桁の全国地方公共団体コード(例: 27203 豊中市)
established_fromstringこの年月以降に設立された会社だけ(YYYY-MM)。例: 3年以内なら3年前の年月
established_knownbooleanfalse で設立年月が分からない会社だけ。ほぼ2015年10月(法人番号の制度開始)より前に設立された会社
established_tostringこの年月までに設立された会社だけ(YYYY-MM)
export_idstring前回の export_id。処理中だった書き出しの結果を取りに来るときは、これだけを渡す
has_contact_formbooleantrue で問い合わせフォームがある会社だけ(フォーム営業向け)、false でない会社だけ
has_faxbooleantrue でFAX番号がある会社だけ、false でない会社だけ
has_insured_employeesbooleanfalse で従業員数のデータがない会社だけ(true であるだけ)
has_phonebooleantrue で電話番号がある会社だけ、false でない会社だけ
has_websitebooleantrue で公式サイトURLがある会社だけ、false でない会社だけ
industrystring業種の大分類(推定値)。工務店・建設会社は「建設」、介護事業所は「介護・福祉・保育」
insured_employees_maxinteger従業員数(厚生年金の被保険者数)の上限。例: 29
insured_employees_mininteger従業員数(厚生年金の被保険者数)の下限。例: 10
jsic_codestring日本標準産業分類(第14回改定)の中分類2桁。例: 06 総合工事業、85 社会保険・社会福祉・介護事業
max_rowsinteger書き出す最大社数(1〜100000)。新しく始めるときは必須
orderstring並び順。companies_first(既定。株式会社などの会社を先に)、name(社名の50音順)、established_desc(設立が新しい順)、employees_desc(従業員が多い順)々
post_code_prefixstring郵便番号の前方一致(3〜7桁、ハイフン可)。例: 530 / 591-0001
prefecturestring都道府県。「大阪」「大阪府」「27」「osaka」のどれでも可
verified_onlybooleantrue でサイト自身が社名を名乗っている根拠のあるURLだけに絞る
web_verified_fromstring公式サイト・連絡先をこの日以降に確認した会社だけ(YYYY-MM-DD)