Skip to main content
Glama

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.json

  • Claude Desktop(macOS) ~/Library/Application Support/Claude/claude_desktop_config.json

  • Cursor .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_update_info_basic

hojin_get_basic

届出・認定

hojin_update_info_certification

hojin_get_certification

表彰

hojin_update_info_commendation

hojin_get_commendation

財務

hojin_update_info_finance

hojin_get_finance

特許

hojin_update_info_patent

hojin_get_patent

調達

hojin_update_info_procurement

hojin_get_procurement

補助金

hojin_update_info_subsidy

hojin_get_subsidy

職場情報

hojin_update_info_workplace

hojin_get_workplace

法人ごとの事業所情報は 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 build

License

MIT

Available Tools

19 tools
hojin_get_basicB
Read-onlyIdempotent

Get basic corporate information by corporate number.

Inputs: corporate_number (required), metadata_flg. Returns: object

hojin_get_certificationC
Read-onlyIdempotent

Get corporate certification information by corporate number.

Inputs: corporate_number (required), metadata_flg. Returns: object

hojin_get_commendationB
Read-onlyIdempotent

Get corporate commendation information by corporate number.

Inputs: corporate_number (required), metadata_flg. Returns: object

hojin_get_corporationC
Read-onlyIdempotent

Get corporation registry information by corporate number.

Inputs: corporate_number (required), metadata_flg. Returns: object

hojin_get_financeC
Read-onlyIdempotent

Get financial information by corporate number.

Inputs: corporate_number (required), metadata_flg. Returns: object

hojin_get_patentB
Read-onlyIdempotent

Get patent information by corporate number.

Inputs: corporate_number (required), metadata_flg. Returns: object

hojin_get_procurementC
Read-onlyIdempotent

Get procurement information by corporate number.

Inputs: corporate_number (required), metadata_flg. Returns: object

hojin_get_subsidyC
Read-onlyIdempotent

Get subsidy information by corporate number.

Inputs: corporate_number (required), metadata_flg. Returns: object

hojin_get_workplaceC
Read-onlyIdempotent

Get workplace information by corporate number.

Inputs: corporate_number (required), metadata_flg. Returns: object

hojin_update_info_basicA
Read-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_certificationC
Read-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_commendationB
Read-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_corporationA
Read-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_financeB
Read-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_patentB
Read-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_procurementB
Read-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_subsidyC
Read-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_workplaceB
Read-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

    B3.2/5.0

    Scored across 19 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      MCP server for the Japan National Tax Agency Corporate Number API, enabling corporate number lookup and search via local AI clients.
      3
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP 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
    • 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