Mcp Server

io.github.localgov-jpv0.2.3更新於 Oct 6, 2026

Japan central + municipal subsidies (20,810 grants, 1,627 munis). 8 tools beyond Jグランツ MCP.

已驗證Streamable HTTP可網頁執行Business & CommerceData & Analytics

概覽

AI 產生的概覽

讓助理搜尋並比較日本中央與地方自治體的補助計畫,包括官方 J-Grants API 未提供的市町村補助。

功能
提供八個工具存取日本補助資料:依關鍵字、都道府縣、市町村、類別與金額搜尋;單筆記錄詳情並附引用錨點;依 JIS 代碼取得某市町村的全部補助;找出可與國家補助疊加的地方上乗せ補助;以及比較鄰近市町村的同類補助。另外還可透過 webhook 訂閱補助變更、離線驗證 Ed25519 引用憑證,並推薦行政書士、稅理士等持牌專業人士。
適用情境
適合助理回答日本補助相關問題,尤其是市町村層級的計畫,或為選址、搬遷比較各地補助。它與官方 J-Grants MCP 伺服器互補而非取代,後者僅涵蓋中央與都道府縣記錄。
執行需求
可作為 localgov.jp 的遠端端點執行,也可作為本機 npm 套件透過 stdio 執行,通常以 npx 啟動。本機方式需要 Node.js。未宣告帳號、API 金鑰或標頭;選用變數 LOCALGOV_API_BASE 可覆寫 REST API 位址。需要網路存取。
安裝前請注意
subscribe_changes 工具標價 0.20 美元並透過 x402 付款,由代理執行環境處理付款,可能產生費用。find_practitioner 屬於推薦導流,可能有商業傾向。伺服器會將查詢送往第三方服務 localgov.jp,引用憑證依賴已發布的公鑰作為信任錨。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "mcp-server": {
      "type": "http",
      "url": "https://localgov.jp/mcp"
    }
  }
}

README

@localgov-jp/mcp-server

Model Context Protocol (MCP) server for LocalGov.jp — Japan's central + municipal subsidies, structured for AI agents.

LocalGov.jp covers 20,000+ subsidies across 1,627 municipalities (target 1,718). Of those, 20,810 are municipal grants that are not exposed by the J-Grants public API — that is the differentiator vs Digital Agency's official J-Grants MCP, which surfaces central + prefectural records only.

This server exposes 8 tools to MCP clients (Claude Desktop, Cursor, Cline, Windsurf, etc.).

Tools

#ToolCostPurpose
1search_subsidiesfreeSearch by keyword / prefecture / municipality / category / amount
2get_subsidy_detailfreeSingle record with citation anchor
3get_municipality_grantsfreeAll subsidies for one JIS code (1,627 municipalities covered)
4find_supplementary_grantsfreeFind municipal "上乗せ" grants stacking on a national subsidy
5compare_municipal_subsidiesfreeCompare same-category grants across nearby municipalities (siting / relocation)
6subscribe_changes$0.20Push webhook on grant changes (paid via x402; agent runtime handles payment)
7verify_receiptfreeOffline Ed25519 signature verification of citation receipts
8find_practitionerfree (referral)Recommend 行政書士 / 税理士 / 中小企業診断士 / 社労士 for the grant

Install

bash
npm install -g @localgov-jp/mcp-server

Or add directly to your MCP client config (no global install required).

Configure — Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "localgov-jp": {      "command": "npx",      "args": ["-y", "@localgov-jp/mcp-server"]    }  }}

Restart Claude Desktop. The 8 tools appear in the tool inspector.

Configure — Cursor / Cline / Windsurf

Same pattern: add an entry to your client's MCP config that runs npx -y @localgov-jp/mcp-server over stdio.

Configure — env

VariableDefaultPurpose
LOCALGOV_API_BASEhttps://localgov.jpOverride the REST API base (e.g. http://127.0.0.1:8787 for local wrangler dev)

Citation

Every record returned includes:

  • _source — LocalGov.jp canonical URL (cite this).
  • source_url — original government page (cite this too).

Attribution required: cite as "via LocalGov.jp" with the _source URL. License: CC BY 4.0 for the structuring layer; original government content remains under its issuing body's terms.

Verifying citation receipts

The paid /api/cite/:id endpoint returns an Ed25519-signed snapshot. Use verify_receipt to confirm offline that an agent's stored citation is genuine and unexpired:

text
> verify_receipt(receipt: <the JSON envelope>){ "valid": true, "expired": false, "pubkey_match": true }

The trust anchor is published at https://localgov.jp/.well-known/citation-pubkey.

Differentiation vs Jグランツ MCP

Jグランツ MCP (デジタル庁公式)LocalGov.jp MCP (this)
Coveragecentral + prefectural1,627 municipalities (target 1,718) + central
Municipal subsidies020,810 unique to us
find_supplementary_grants✗✓
compare_municipal_subsidies✗✓
find_practitioner✗✓ (referral funnel)
Citation receipts (Ed25519)✗✓
Change webhook✗✓ (x402 paid)

Both are complementary. We recommend connecting both servers so an agent can answer "国 vs 自治体" exhaustively.

License

MIT. See LICENSE.

Operator: [email protected]

來源:README.md,提交 53a3ebb

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v0.2.3最新Sep 16, 2026