jgrants-mcp-poc
Jグランツ補助金検索 MCP — torchi PoC
デジタル庁のJグランツ公開APIを、NotionなどのMCPクライアントから利用するための読み取り専用リモートMCPです。
デジタル庁の公開サンプル digital-go-jp/jgrants-mcp-server を基に、Sliplane常設運用向けの認証、ヘルスチェック、コンテナ構成、出力量制御を追加しています。
提供ツール
ping— 接続確認search_subsidies— キーワード、地域、業種、従業員数、利用目的で検索get_subsidy_overview— 締切期間・上限金額別の集計get_subsidy_detail— 詳細と添付資料一覧を取得get_file_content— 選択した添付資料だけをMarkdown化
検索結果には公式JグランツURLと出典を付けます。取得情報は参考情報であり、申請前に公式ページの最新情報を確認してください。
Related MCP server: koko-call-mcp
リモート構成
Notion
-> HTTPS + Bearer token
-> Caddy gateway(公開)
-> FastMCP server(Sliplane内部のみ)
-> Jグランツ公開API/healthは監視用として認証なしで公開します。/mcpはGatewayとMCP本体の両方で同じBearer tokenを検証します。TokenはSliplaneのSecret環境変数にだけ保存し、GitHubやログへ入れません。
添付資料はMCP本体の一時領域へ保存され、必要なファイルだけ本文を返します。
ローカル開発
Python 3.10以上とuvを使用します。
uv sync
uv run pytest
JGRANTS_REQUIRE_AUTH=0 uv run python -m jgrants_mcp_server認証付きのDocker構成は次のとおりです。
cp .env.example .env
# .envのMCP_AUTH_TOKENを32文字以上のランダム値へ変更
docker compose up --build
curl http://localhost:8080/health
curl -i http://localhost:8080/mcp未認証の /mcp はHTTP 401になります。
Sliplane設定
同じGitHubリポジトリから2サービスを作成します。
jgrants-mcp
Dockerfile:
Dockerfile公開: オフ
Healthcheck:
/health環境変数:
JGRANTS_HOST=0.0.0.0JGRANTS_PATH=/mcpJGRANTS_REQUIRE_AUTH=1MCP_AUTH_TOKEN=<secret>PORT=8000
jgrants-mcp-gateway
Dockerfile:
gateway/Dockerfile公開: オン
Healthcheck:
/health環境変数:
MCP_AUTH_TOKEN=<same secret>UPSTREAM_URL=http://jgrants-mcp.internal:8000
mainへのpushを自動デプロイ対象にします。NotionにはGatewayの公開URLに /mcp を付けたURLとBearer tokenを登録します。
ライセンスと出典
コードはMIT Licenseです。JグランツAPIの利用はJグランツAPI利用規約に従ってください。公開・転用時はJグランツを出典として明記してください。
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only MCP server for searching Japan government procurement bid information from the KKJ portal.
Search Japanese subsidies and public company data using J-Grants, gBizINFO, and EDINET.
Search verified-open US grants (federal, state, foundation). Read-only MCP for AI agents.
Japan central + municipal subsidies (20,810 grants, 1,627 munis). 8 tools beyond Jグランツ MCP.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceMCP server for Japan's Jグランツ grant application system, enabling LLMs to search and retrieve subsidy information via natural language.50MIT- AlicenseNot gradedqualityAmaintenanceRead-only MCP server for searching Japanese government procurement bid notices (官公需) from the SME Agency's KKJ portal. Includes AI ranking, PDF requirement extraction, and CSV/calendar export.49 npmApache 2.0
- FlicenseBqualityDmaintenanceMCP server for searching Japanese government procurement notices via the Kanpou API. Enables LLMs to search by date, keyword, or detailed criteria.31-
- AlicenseNot gradedqualityDmaintenanceMCP server for searching Japanese corporate data including companies, financials, patents, subsidies, and government statistics via official government APIs.1MIT