datagouv-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_PORT | No | Port for the MCP HTTP server | 8000 |
| DATAGOUV_ENV | No | Controls which data.gouv.fr environment to use: 'prod' for https://www.data.gouv.fr or 'demo' for https://demo.data.gouv.fr | prod |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_datasetsA | 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 Typical workflow: search_datasets → list_dataset_resources → query_resource_data. |
| search_organizationsA | Find publishing organizations on data.gouv.fr (who publishes datasets and reuses). Pass a short Leave
The reply includes how many organizations matched, the current page, and for each hit: name (and acronym if any), id, slug, badges, optional usage metrics, and links to the organization page. |
| search_dataservicesA | 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 generic words like "données" or "fichier" may return zero results). Typical workflow: search_dataservices → get_dataservice_info → get_dataservice_openapi_spec → call the API using base_api_url per spec. |
| get_dataservice_infoA | 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_spec, (3) call base_api_url per spec. |
| get_dataservice_openapi_specA | 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 workflow: search_dataservices → get_dataservice_info → get_dataservice_openapi_spec → call the API using base_api_url per spec. |
| query_resource_dataA | 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, strictly_less, strictly_greater. For large datasets requiring full analysis, paginate through pages or use get_resource_info to retrieve the raw file URL and fetch it directly. |
| get_dataset_infoA | Get detailed metadata about a specific dataset. Returns title, description, organization, tags, resource count, creation/update dates, and license information. |
| list_dataset_resourcesA | 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. |
| get_resource_infoA | Get detailed information about a specific resource (file). Returns format, size, MIME type, URL, and checks Tabular API availability. Helps decide whether to use query_resource_data (if Tabular API is available) or fetch the raw file URL directly for unsupported formats or large files. |
| get_metricsA | Get usage metrics (visits, downloads) for a dataset or resource. Returns monthly statistics sorted by most recent first. At least one of dataset_id or resource_id must be provided. Note: Only available in production environment (not demo). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
Each tool targets a distinct resource type and action: search tools cover datasets, organizations, and dataservices separately; info tools provide detailed metadata for each; query_resource_data and list_dataset_resources clearly differ in purpose (querying vs. enumeration). No two tools appear to serve the same function.
All tools follow a consistent verb_noun pattern in snake_case: search_datasets, get_dataset_info, list_dataset_resources, query_resource_data, etc. The verbs (search, get, list, query) are used predictably and match the tool's action, with no mixed conventions.
At 10 tools, the set is well-scoped for a data catalog MCP server. Each tool addresses a necessary part of the workflow (search, metadata retrieval, data querying, metrics), and there are no redundant or unnecessary tools.
The surface covers the full read-only lifecycle of the data.gouv.fr catalog: searching for datasets/organizations/dataservices, getting detailed info on each, listing resources, querying tabular data, fetching OpenAPI specs, and retrieving metrics. No essential operations appear missing for typical use cases.