gbizinfo-mcp
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., "@gbizinfo-mcp Search for Toyota Motor Corporation and show its basic corporate information."
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.
gbizinfo-mcp
Gビズインフォ REST API v2の現行18エンドポイントを、MCP・CLI・Pythonから利用できます。MCPはstdioで動作し、APIのJSONレスポンスをそのまま返します。
MCP登録 · CLI · Pythonライブラリ
MCPクライアントに登録する
Python 3.11以上、uv と Git、Gビズインフォで発行したAPIトークンが必要です。 設定例の your_token は手元で差し替えてください。
Codex
codex mcp add gbizinfo --env "GBIZINFO_API_TOKEN=your_token" -- uvx --python 3.12 --from git+https://github.com/koizumikento/gbizinfo-mcp.git@master gbizinfo-mcp
codex mcp list新しいセッションの /mcp で接続を確認します。デスクトップ版では設定の「MCP servers」でSTDIOを選び、下のJSONと同じコマンド・引数を入力して保存し、再起動します。 環境変数も設定してください。 OpenAI公式のMCP設定
Claude Desktop / Cursor
Claude Desktop(Windows)
%APPDATA%/Claude/claude_desktop_config.jsonClaude Desktop(macOS)
~/Library/Application Support/Claude/claude_desktop_config.jsonCursor
.cursor/mcp.json(プロジェクト内)
既存の mcpServers に項目を追加し、保存後にクライアントを再起動します。uvx が見つからない場合は command に実行ファイルの絶対パスを指定してください。
{
"mcpServers": {
"gbizinfo": {
"command": "uvx",
"args": [
"--python",
"3.12",
"--from",
"git+https://github.com/koizumikento/gbizinfo-mcp.git@master",
"gbizinfo-mcp"
],
"env": {
"GBIZINFO_API_TOKEN": "your_token"
}
}
}
}Related MCP server: hailab-japan-company-data
CLIで使う
CLIとPythonを実行するシェルでトークンを設定します。
$env:GBIZINFO_API_TOKEN = "your_token"macOSやLinuxでは export GBIZINFO_API_TOKEN="your_token" を使います。
クローンせずに実行できます。結果は標準出力に出ます。
引数はJSONオブジェクトで渡します。例の法人番号は照会したい13桁の番号に置き換えてください。次の例はPowerShell 7.3以降またはmacOS・Linuxのシェルで実行できます。
uvx --python 3.12 --from git+https://github.com/koizumikento/gbizinfo-mcp.git@master gbizinfo-mcp hojin_get_basic --args '{"corporate_number":"1234567890123"}'Pythonライブラリとして使う
自分のPythonプロジェクト(pyproject.toml があるディレクトリ)で依存関係に追加します。CLIで使うと同様に、実行するシェルで GBIZINFO_API_TOKEN を設定してください。
uv add "git+https://github.com/koizumikento/gbizinfo-mcp.git@master"次のコードを example.py に保存し、同じディレクトリで uv run python example.py を実行します。
create_toolset() で作ったクライアントで、MCPと同名の非同期メソッドを呼び出せます。
import asyncio
from gbizinfo_mcp import create_toolset
gbizinfo = create_toolset()
print(asyncio.run(gbizinfo.hojin_get_basic(corporate_number="1234567890123")))ツール
法人を探すには hojin_search を使います。更新情報を期間で絞り込むツールと、法人番号で情報を取得するツールは次のとおりです。
情報 | 期間で更新情報を取得 | 法人番号で取得 |
基本情報 |
|
|
届出・認定 |
|
|
表彰 |
|
|
財務 |
|
|
特許 |
|
|
調達 |
|
|
補助金 |
|
|
職場情報 |
|
|
法人ごとの事業所情報は hojin_get_corporation で照会できます。一括取得には公式サイトのデータダウンロードを使ってください。hojin_update_info_corporation を呼ぶと、期間指定のAPIには接続せず、代わりの取得方法を案内します。公式のお知らせ
データ出典・利用条件
本サーバーはGビズインフォの情報提供REST APIを利用します。API利用前に、公式のAPIページ、API・データダウンロード利用規約、Gビズインフォ利用規約を確認してください。取得データの権利・利用条件は提供元に従います。
開発
SitesのWorkerで実行する場合は Sites用adapterと配備手順 を参照してください。
uv sync --frozen
uv run ruff check .
uv run ty check
uv run pytest
uv buildLicense
Available Tools
19 toolshojin_get_basicBRead-onlyIdempotent
Get basic corporate information by corporate number.
Inputs: corporate_number (required), metadata_flg. Returns: object
hojin_get_certificationCRead-onlyIdempotent
Get corporate certification information by corporate number.
Inputs: corporate_number (required), metadata_flg. Returns: object
hojin_get_commendationBRead-onlyIdempotent
Get corporate commendation information by corporate number.
Inputs: corporate_number (required), metadata_flg. Returns: object
hojin_get_corporationCRead-onlyIdempotent
Get corporation registry information by corporate number.
Inputs: corporate_number (required), metadata_flg. Returns: object
hojin_get_financeCRead-onlyIdempotent
Get financial information by corporate number.
Inputs: corporate_number (required), metadata_flg. Returns: object
hojin_get_patentBRead-onlyIdempotent
Get patent information by corporate number.
Inputs: corporate_number (required), metadata_flg. Returns: object
hojin_get_procurementCRead-onlyIdempotent
Get procurement information by corporate number.
Inputs: corporate_number (required), metadata_flg. Returns: object
hojin_get_subsidyCRead-onlyIdempotent
Get subsidy information by corporate number.
Inputs: corporate_number (required), metadata_flg. Returns: object
hojin_get_workplaceCRead-onlyIdempotent
Get workplace information by corporate number.
Inputs: corporate_number (required), metadata_flg. Returns: object
hojin_searchCRead-onlyIdempotent
Search corporations in gBizINFO. Use filters such as name, corporate number, prefecture, and industry-related attributes.
Inputs: city, name, page, limit, +28 more. Returns: object
hojin_update_info_basicARead-onlyIdempotent
List updates to basic corporate info for the specified date range.
Inputs: to_date (required), from_date (required), page, metadata_flg. Returns: object
hojin_update_info_certificationCRead-onlyIdempotent
List updates to corporate certification info for the specified date range.
Inputs: to_date (required), from_date (required), page, metadata_flg. Returns: object
hojin_update_info_commendationBRead-onlyIdempotent
List updates to commendation info for the specified date range.
Inputs: to_date (required), from_date (required), page, metadata_flg. Returns: object
hojin_update_info_corporationARead-onlyIdempotent
Deprecated. gBizINFO suspended establishment updates by date on 2026-07-31. Use hojin_get_corporation with a corporate number, or use the official data download for bulk access.
Inputs: to_date (required), from_date (required), page, metadata_flg. Returns: object
hojin_update_info_financeBRead-onlyIdempotent
List updates to financial info for the specified date range.
Inputs: to_date (required), from_date (required), page, metadata_flg. Returns: object
hojin_update_info_patentBRead-onlyIdempotent
List updates to patent info for the specified date range.
Inputs: to_date (required), from_date (required), page, metadata_flg. Returns: object
hojin_update_info_procurementBRead-onlyIdempotent
List updates to procurement info for the specified date range.
Inputs: to_date (required), from_date (required), page, metadata_flg. Returns: object
hojin_update_info_subsidyCRead-onlyIdempotent
List updates to subsidy info for the specified date range.
Inputs: to_date (required), from_date (required), page, metadata_flg. Returns: object
hojin_update_info_workplaceBRead-onlyIdempotent
List updates to workplace info for the specified date range.
Inputs: to_date (required), from_date (required), page, metadata_flg. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
The get_* and update_info_* families are cleanly separated by resource type (patent, subsidy, finance, workplace, etc.), so an agent can pick by data domain. However, hojin_get_corporation vs hojin_get_basic (basic corporate info vs corporation registry info) is a subtle distinction, and the deprecated hojin_update_info_corporation overlaps confusingly with both.
All tools share a hojin_ prefix and follow predictable patterns: hojin_get_<resource>, hojin_update_info_<resource>, plus hojin_search. Minor deviations exist — hojin_get_basic drops the resource noun used everywhere else, and hojin_search has no object noun — but the schema is easy to infer.
19 tools is on the heavy side but is justified by the systematic pairing of 9 resource families across two access modes (get-by-corporate-number and update-feed-by-date). The only dead weight is the deprecated hojin_update_info_corporation tool, which could be removed.
Coverage is strong: search, per-resource retrieval, and date-range update feeds for basic, certification, commendation, finance, patent, procurement, subsidy, and workplace info. Gaps are minor — no reference/list tool for filter values (prefecture, industry codes) and no bulk/composite fetch, plus the suspended establishment-update path leaves one lifecycle hole.
Maintenance
Related MCP Connectors
Query SEC EDGAR filings, XBRL financials, and company data via MCP. STDIO or Streamable HTTP.
Japan Law MCP — Japanese national laws & ordinances via the e-Gov Law API.
Unofficial GitHub MCP — wraps the GitHub public REST API (no auth required for public endpoints)
SBIR MCP — wraps the SBIR.gov public API (free, no auth)
Related MCP Servers
- AlicenseBqualityBmaintenanceMCP server for the Japan National Tax Agency Corporate Number API, enabling corporate number lookup and search via local AI clients.31MIT
- AlicenseNot gradedqualityDmaintenanceMCP server to search Japanese companies by corporate number or name and retrieve financial, subsidy, and procurement information from gBizINFO public data. Enables AI agents to query Japanese company data through natural language.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
- AlicenseNot gradedqualityBmaintenanceStandalone Python 3.11 MCP stdio server exposing 31 read-only B2B regulatory compliance, KYB/AML sanctions, GLEIF LEI, US SEC EDGAR, openFDA, NHTSA, CISA KEV, ICANN RDAP, and Brazil fiscal audit tools.1MIT