gBizINFO MCP Server
Enables users to search and retrieve Japanese corporate information from the gBizINFO API. Supports company searches by name, corporate number, industry, location, and other criteria, plus access to detailed business data including financials, certifications, and workplace information.
README
gBizINFO MCP
gBizINFO 情報提供 API を TypeScript ライブラリおよび Model Context Protocol サーバーとして提供します。サービス層で gBizINFO を呼び出し、MCP では各種取得・検索機能をツールとして公開します。
要件
- Node.js 18+(
fetchを使用)
セットアップ
- 依存関係をインストール
npm i .envをプロジェクトルートに作成し、以下を設定GBIZINFO_API_TOKEN=あなたのAPIトークン # 任意(デフォルト: https://info.gbiz.go.jp/hojin/v1/hojin) GBIZINFO_BASE_URL=https://info.gbiz.go.jp/hojin/v1/hojin # 任意(ミリ秒, 既定 15000) REQUEST_TIMEOUT_MS=15000 # 任意(リトライ回数, 既定 1) GBIZINFO_RETRIES=1
メモ:
- 認証ヘッダは仕様通り
X-hojinInfo-api-tokenが自動付与されます(src/services/http.ts)。
OpenAPI スキーマとクライアント生成(任意)
公式 Swagger UI からスキーマを取得し、必要に応じて TypeScript クライアントを生成できます。
- Swagger UI から JSON を取得し
openapi/raw/gbizinfo-openapi.jsonへ保存 - YAML に変換し
openapi/gbizinfo-openapi.yamlへ保存 - クライアント生成
生成先:npm run generate:clientsrc/clients/gbizinfo
ライブラリの使い方
GbizinfoService を直接利用できます。
import { GbizinfoService } from "gbixnfo-mcp";
const service = new GbizinfoService();
// 企業検索(複合条件)
const result = await service.searchCompanies({
name: "テスト",
prefecture: "東京都",
page: 1,
limit: 20,
});
// 法人番号で詳細取得
const basic = await service.getBasicInfo("0000000000000");
エクスポートは src/index.ts を参照(GbizinfoService, HttpClient, presenters, models など)。
MCP サーバーの使い方
ローカル実行(Cursor 連携)
- ビルド
npm run build - Cursor 設定(Settings → MCP → Add Server)
- Type: Command
- Command:
node - Args:
dist/mcp/server.js - Working Directory: プロジェクトルート
- Environment:
GBIZINFO_API_TOKEN=...
npx で起動(公開後)
npx --yes -p gbixnfo-mcp gbizinfo-mcp
提供ツール
search: 企業検索(複合条件:name/corporateNumber/corporateType/existFlg/prefecture/city/address/industry/capitalStockFrom/capitalStockTo/employeeNumberFrom/employeeNumberTo/establishmentFrom/establishmentTo/from/size)get_basic_info: 基本情報取得(法人番号)get_certification: 届出・認定情報get_commendation: 表彰情報get_finance: 財務情報get_patent: 特許情報get_procurement: 調達情報get_subsidy: 補助金情報get_workplace: 職場情報
開発
- ウォッチ実行(簡易ランナー)
npm run dev - ビルド
npm run build
設計(MCP アーキテクチャ)
- エントリポイント:
src/index.ts - 環境/設定:
src/config.ts - MCP サーバー:
src/mcp/server.ts - 層構造:
- Model:
src/model - Controller:
src/controller - Presenter:
src/presenter - Service:
src/services
- Model:
セキュリティ/設定、OpenAPI クライアント生成の詳細は .cursor/rules のルール(openapi-client など)を参照してください。
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.