Supports OpenAPI schema integration for generating TypeScript clients from Swagger UI specifications
gBizINFO MCP
gBizINFO 情報提供 API を TypeScript ライブラリおよび Model Context Protocol サーバーとして提供します。サービス層で gBizINFO を呼び出し、MCP では各種取得・検索機能をツールとして公開します。
要件
- Node.js 18+(
fetch
を使用)
セットアップ
- 依存関係をインストール
.env
をプロジェクトルートに作成し、以下を設定
メモ:
- 認証ヘッダは仕様通り
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
へ保存 - クライアント生成生成先:
src/clients/gbizinfo
ライブラリの使い方
GbizinfoService
を直接利用できます。
エクスポートは src/index.ts
を参照(GbizinfoService
, HttpClient
, presenters
, models
など)。
MCP サーバーの使い方
ローカル実行(Cursor 連携)
- ビルド
- Cursor 設定(Settings → MCP → Add Server)
- Type: Command
- Command:
node
- Args:
dist/mcp/server.js
- Working Directory: プロジェクトルート
- Environment:
GBIZINFO_API_TOKEN=...
npx で起動(公開後)
提供ツール
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
: 職場情報
開発
- ウォッチ実行(簡易ランナー)
- ビルド
設計(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
など)を参照してください。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
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.
Related MCP Servers
- AsecurityAlicenseAqualityThis server enables users to perform Google News searches with automatic categorization and multi-language support via SerpAPI integration.Last updated -168273JavaScriptMIT License
- AsecurityAlicenseAqualityEnables interaction with the French business search API from data.gouv.fr, allowing users to search for French companies by text or geographical criteria and access essential business information.Last updated -239TypeScriptMIT License
- -securityAlicense-qualityA FastAPI-based microservice that analyzes job URLs and extracts detailed company information by crawling job postings and company websites, with data enrichment from external providers.Last updated -PythonMIT License
- -securityAlicense-qualityProvides Japanese postal code to address lookup functionality that can be integrated with AI assistants and other MCP clients.Last updated -3PythonMIT License