DataGouv MCP

v1.0.0Search & Data Extractionstable

An MCP server that connects AI chatbots directly to data.gouv.fr, France’s national open data platform. It allows users to search, explore, and analyze thousands of public datasets simply by asking questions in natural language.

mcpmcp-serveropen-dataopendataai
Share:
1,473
Stars
0
Downloads
0
Weekly
0/5

What is DataGouv MCP?

DataGouv MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server that connects ai chatbots directly to data.gouv.fr, france’s national open data platform. it allows users to search, explore, and analyze thousands of public datasets simply by asking quest...

An MCP server that connects AI chatbots directly to data.gouv.fr, France’s national open data platform. It allows users to search, explore, and analyze thousands of public datasets simply by asking questions in natural language.

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • An MCP server that connects AI chatbots directly to data.gou

Use Cases

Access France's national open data platform
Search and analyze thousands of public datasets
datagouv

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx datagouv

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use DataGouv MCP

DataGouv MCP is an official MCP server from the French government that connects AI chatbots directly to data.gouv.fr, France's national open data platform. It exposes tools for searching and exploring thousands of public datasets — covering topics from public health and transportation to economics and education — as well as querying data service APIs and accessing platform analytics. Researchers, journalists, civil servants, and developers can ask natural language questions about French government data and get answers drawn directly from the authoritative national open data catalog.

Prerequisites

  • An MCP-compatible client such as Claude Desktop, Claude Code, Cursor, or Windsurf
  • For the hosted version: no installation required, just an HTTP MCP client configuration
  • For self-hosting: Python 3.11+ and the uv package manager, or Docker and Docker Compose
  • No API keys are required to access production data.gouv.fr
1

Use the hosted MCP server (easiest option)

The French government hosts a public MCP endpoint at https://mcp.data.gouv.fr/mcp. Add it to Claude Code with a single command — no installation or API keys needed.

claude mcp add --transport http datagouv https://mcp.data.gouv.fr/mcp
2

Add to Claude Desktop (hosted)

For Claude Desktop, add the hosted server using mcp-remote as a bridge in your claude_desktop_config.json.

{
  "mcpServers": {
    "datagouv": {
      "command": "npx",
      "args": ["mcp-remote", "https://mcp.data.gouv.fr/mcp"],
      "env": {}
    }
  }
}
3

Self-host with Docker (optional)

Clone the repository and start the server locally using Docker Compose. This is useful for development or when you want to use the demo environment.

git clone https://github.com/datagouv/datagouv-mcp.git
cd datagouv-mcp
docker compose up -d
4

Self-host with uv (alternative)

For non-Docker local deployment, copy the environment file template, adjust any settings, and run the server directly with uv.

cp .env.example .env
# Edit .env to set MCP_PORT, DATAGOUV_API_ENV (prod or demo), LOG_LEVEL
uv run main.py
5

Verify the server is healthy

Check the server health endpoint to confirm it is running and can reach the data.gouv.fr API. For the hosted version, test connectivity from Claude Code or use the MCP Inspector.

# For self-hosted:
curl http://localhost:8000/health

# Or test via MCP Inspector:
npx @modelcontextprotocol/inspector --http-url "http://127.0.0.1:8000/mcp"

DataGouv MCP Examples

Client configuration

claude_desktop_config.json entry using the official hosted endpoint via mcp-remote.

{
  "mcpServers": {
    "datagouv": {
      "command": "npx",
      "args": ["mcp-remote", "https://mcp.data.gouv.fr/mcp"],
      "env": {}
    }
  }
}

Prompts to try

Sample prompts for exploring French public data through the datagouv MCP server.

- "Search for datasets about air quality in French cities"
- "Find open datasets related to public hospital capacity in France"
- "What datasets are available about French election results?"
- "Get the monthly download statistics for the most popular datasets on data.gouv.fr"
- "List data services related to geographic information in France"

Troubleshooting DataGouv MCP

mcp-remote is not found when using Claude Desktop

Install mcp-remote globally: npm install -g mcp-remote, then use the full binary path in your config, or rely on npx to download it automatically on first use.

get_metrics tool returns an error or no data

The get_metrics tool only works in the production environment (DATAGOUV_API_ENV=prod). If self-hosting with the demo environment set, switch to production or use the hosted endpoint at mcp.data.gouv.fr.

Self-hosted server starts but query_resource_data returns errors

Some dataset resources on data.gouv.fr are large files that require sufficient server memory and timeout settings. Increase MCP_BRASIL_HTTP_TIMEOUT (or equivalent) and ensure Docker has at least 2 GB of memory allocated. For very large CSV files, consider downloading the resource file directly first.

Frequently Asked Questions about DataGouv MCP

What is DataGouv MCP?

DataGouv MCP is a Model Context Protocol (MCP) server that mcp server that connects ai chatbots directly to data.gouv.fr, france’s national open data platform. it allows users to search, explore, and analyze thousands of public datasets simply by asking questions in natural language. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install DataGouv MCP?

Follow the installation instructions on the DataGouv MCP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with DataGouv MCP?

DataGouv MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is DataGouv MCP free to use?

Yes, DataGouv MCP is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "datagouv": { "command": "npx", "args": ["-y", "datagouv"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use DataGouv MCP?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides