Skip to main content
Claude Desktop and Claude Code are Anthropic’s AI assistant applications. Both support MCP servers and can connect to the data.gouv.fr endpoint.

Setup for Claude Desktop

Claude Desktop uses a JSON configuration file to manage MCP server connections.

1. Locate the configuration file

The configuration file location depends on your operating system:
~/Library/Application Support/Claude/claude_desktop_config.json

2. Add the MCP server configuration

Open the configuration file in a text editor and add the following configuration:
{
  "mcpServers": {
    "datagouv": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://mcp.data.gouv.fr/mcp"
      ]
    }
  }
}
If you already have other MCP servers configured, add the "datagouv" entry inside the existing "mcpServers" object.

3. Restart Claude Desktop

Close and reopen Claude Desktop to apply the changes. The data.gouv.fr tools should now be available in your conversations.

Verify the connection

You can verify the connection by asking Claude:
“What tools do you have available for data.gouv.fr?”
Claude should list the available tools like search_datasets, get_dataset_info, etc.

Self-hosting

If you’re running your own instance of the MCP server instead of using the hosted endpoint, replace https://mcp.data.gouv.fr/mcp with your server’s URL. For local development, the default endpoint is http://127.0.0.1:8000/mcp.

Next steps

Build docs developers (and LLMs) love