egov-data-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
egov-data-mcp
e-Govデータポータルの公式APIを参照する読み取り専用のMCPサーバーです。Python 3.12以上とuv(0.13.4で検証)を使います。上流APIのキー設定は不要です。
MCPクライアント設定
GitHubリポジトリへのアクセス権がある環境でクローンします。
git clone https://github.com/koizumikento/egov-data-mcp.git
cd egov-data-mcp
uv sync --lockedクライアントの設定に、クローン先の絶対パスを指定します。
{
"mcpServers": {
"egov-data-mcp": {
"command": "uv",
"args": ["--directory", "/absolute/path/to/egov-data-mcp", "run", "--locked", "egov-data-mcp"]
}
}
}Related MCP server: e-Stat MCP
ツール
ツール | 用途 |
| キーワードでデータセットを検索 |
| データセットIDで詳細と配布先の一覧を取得 |
データセットのメタデータと配布URLを返します。配布ファイルの取得や内容の変換は別途行ってください。
CLI
uv run egov-data-mcp search-datasets --query "防災" --limit 1
uv run egov-data-mcp get-dataset --dataset-id cao_20140904_0477 --limit 1結果は標準出力にUTF-8のJSONで出力します。コマンドの引数は uv run egov-data-mcp search-datasets --help で確認できます。
Pythonライブラリ
パッケージをインストールしたPython環境で、下記の非同期関数を直接呼び出せます。
import asyncio
from egov_data_mcp import search_datasets
result = asyncio.run(search_datasets(query="防災", limit=1))
print(result)公開関数 search_datasets、get_dataset を利用できます。イベントループがある環境では、関数を直接 await します。
出典と利用条件
コードはMIT Licenseです。取得するデータの権利と利用条件は、API提供元と各データ提供機関の定めに従います。公式API仕様 · 利用案内
開発
uv sync --locked
uv run ruff check .
uv run ty check
uv run pytest
uv buildTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search 77k public-sector open data APIs across 10 countries. Read-only, no API key.
Search Japanese subsidies and public company data using J-Grants, gBizINFO, and EDINET.
Read-only index to Japanese election data, official sources, relations and scoped search history.
Read-only discovery for 447 Malaysian public datasets with freshness, licence, and provenance.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables searching and retrieving Japanese legal information from the e-Gov Law API, including law searches by keyword, detailed law data retrieval, and revision history tracking.34,033 npm49MIT
- AlicenseCqualityBmaintenanceEnables access to Japan's official government statistics portal (e-Stat) API to search, retrieve, and analyze statistical data including census data, economic indicators, and demographic information across 17 statistical fields.13MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying Japanese government statistics from e-Stat, including metadata, data observations, and catalog browsing.104 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to query Japanese public data (laws, corporations, statistics) from official government APIs, returning normalized English metadata with source attribution.1MIT