Datagouv Mcp
Official data.gouv.fr Model Context Protocol (MCP) server that allows AI chatbots to search, explore, and analyze datasets from the French national Open Data platform, directly through conversation.
加入到你的工具
Claude Code:在終端機執行這行指令
claude mcp add --transport http datagouv https://mcp.data.gouv.fr/mcpClaude Desktop 與其他工具:把這段貼到設定檔
{
"mcpServers": {
"datagouv": {
"url": "https://mcp.data.gouv.fr/mcp"
}
}
}依據專案 README 裡的設定範例產生。按鈕會開啟你電腦上的應用程式,加入前它會先請你確認。
提供的工具(10)
伺服器在 2026年11月12日 自己回報的清單。我們只查詢清單,不會呼叫任何工具。
search_datasets
Search for datasets on data.gouv.fr by keywords. This is typically the first step in exploring data.gouv.fr. Use short, specific queries (the API uses AND logic, so generic words like "données" or "fichier" may return zero results). Use `sort` to order results. Accepted values: created, last_update,
query: stringpage?: integerpage_size?: integersort?last_update_range?
search_organizations
Find publishing organizations on data.gouv.fr (who publishes datasets and reuses). Pass a short `query` with distinctive words (acronym, ministry name, city, "INSEE", etc.). Generic or very broad terms often return large result sets; combine with `page` / `page_size` or add `badge` / `name` / `busin
query?: stringpage?: integerpage_size?: integersort?badge?name?business_number_id?
search_dataservices
Search for third-party APIs (dataservices) on data.gouv.fr by keywords. Third-party APIs (or dataservices) are APIs registered in the data.gouv.fr catalog that provide programmatic access to data (unlike datasets which are static files). Use short, specific queries (the API uses AND logic, so generi
query: stringpage?: integerpage_size?: integer
get_dataservice_info
Get detailed metadata about a specific third-party API (dataservice). Returns title, description, organization, base_api_url, machine_documentation_url (OpenAPI/Swagger spec), license, and dates. To use a third-party API: (1) get its info here, (2) fetch the OpenAPI spec via get_dataservice_openapi_
dataservice_id: string
get_dataservice_openapi_spec
Fetch and summarize the OpenAPI/Swagger spec for a third-party API (dataservice). Retrieves machine_documentation_url from catalog metadata (dataservice record), fetches the spec, and returns a summary of available endpoints with their parameters. Use this to understand how to call the API. Typical
dataservice_id: string
query_resource_data
Query tabular data from a resource via the Tabular API (no download needed). Works for CSV/XLSX files. Start with small page_size (20) to preview structure. Use filter_column/filter_value/filter_operator to filter, sort_column/sort_direction to sort. Filter operators: exact, contains, less, greater,
resource_id: stringpage?: integerpage_size?: integerfilter_column?filter_value?filter_operator?: stringsort_column?sort_direction?: string
get_dataset_info
Get detailed metadata about a specific dataset. Returns title, description, organization, tags, resource count, creation/update dates, and license information.
dataset_id: string
list_dataset_resources
List all resources (files) in a dataset with their metadata. Returns resource ID, title, format, size, and URL for each file. Next step: use query_resource_data for CSV/XLSX files via the Tabular API, or fetch the resource URL directly for other formats (JSON, JSONL) or large datasets.
dataset_id: string
安裝
claude mcp add --transport http datagouv https://mcp.data.gouv.fr/mcpgit clone git@github.com:datagouv/datagouv-mcp.gitnpx @modelcontextprotocol/inspector --http-url "http://127.0.0.1:${MCP_PORT}/mcp"取自專案的 README。執行前請先確認它會做什麼。
程式碼庫
- 星數
- 1,610
- Fork 數
- 141
- 最近更新
- 2026年11月13日
- 授權條款
- MIT
- 語言
- Python
- 建立日期
- 2025年11月25日
- 未結 issue
- 8
- 品質分數
- A 76/100
datagouv/datagouv-mcp
每天從 GitHub 讀取。
價格
開源Maker
尚未有人認領。
登入後即可認領這個工具。