$git clone https://github.com/datagouv/datagouv-mcp> [!TIP] > Got feedback? Tell us about it here
| 1 | # data.gouv.fr MCP Server |
| 2 | |
| 3 | <img width="1200" height="675" alt="image" src="https://github.com/user-attachments/assets/5d20e992-349a-4b3b-9a0a-ebe308735cc9" /> |
| 4 | |
| 5 | > [!TIP] |
| 6 | > Got feedback? [Tell us about it here](https://tally.so/r/KYMboX) |
| 7 | |
| 8 | [](https://circleci.com/gh/datagouv/datagouv-mcp) |
| 9 | [](https://opensource.org/licenses/MIT) |
| 10 | |
| 11 | Model Context Protocol (MCP) server that allows AI chatbots (Claude, ChatGPT, Gemini, etc.) to search, explore, and analyze datasets from [data.gouv.fr](https://www.data.gouv.fr), the French national Open Data platform, directly through conversation. |
| 12 | |
| 13 | Instead of manually browsing the website, you can simply ask questions like "Quels jeux de données sont disponibles sur les prix de l'immobilier ?" or "Montre-moi les dernières données de population pour Paris" and get instant answers. |
| 14 | |
| 15 | > [!TIP] |
| 16 | > Use it now: A public instance is available for everyone at https://mcp.data.gouv.fr/mcp with no access restrictions. |
| 17 | > To connect your favorite chatbot, simply follow [the connection instructions below](#-connect-your-chatbot-to-the-mcp-server). |
| 18 | |
| 19 | ## 🌐 Connect your chatbot to the MCP server |
| 20 | |
| 21 | Use the hosted endpoint `https://mcp.data.gouv.fr/mcp` (recommended). If you self-host, swap in your own URL. |
| 22 | |
| 23 | The MCP server configuration depends on your client. Use the appropriate configuration format for your client: |
| 24 | |
| 25 | [AnythingLLM](#anythingllm) | [Autohand Code](#autohand-code) | [ChatGPT](#chatgpt) | [Claude Code](#claude-code) | [Claude Desktop](#claude-desktop) | [Cursor](#cursor) | [Gemini CLI](#gemini-cli) | [HuggingChat](#huggingchat) | [IBM Bob](#ibm-bob) | [Kiro CLI](#kiro-cli) | [Kiro IDE](#kiro-ide) | [Le Chat (Mistral)](#le-chat-mistral) | [Mistral Vibe](#mistral-vibe-cli) | [OpenCode](#opencode) | [VS Code](#vs-code) | [Windsurf](#windsurf) |
| 26 | |
| 27 | ### AnythingLLM |
| 28 | |
| 29 | 1. Locate the `anythingllm_mcp_servers.json` file in your AnythingLLM storage plugins directory: |
| 30 | - **Linux**: `~/.config/anythingllm-desktop/storage/plugins/anythingllm_mcp_servers.json` |
| 31 | - **MacOS**: `~/Library/Application Support/anythingllm-desktop/storage/plugins/anythingllm_mcp_servers.json` |
| 32 | - **Windows**: `C:\Users\<username>\AppData\Roaming\anythingllm-desktop\storage\plugins\anythingllm_mcp_servers.json` |
| 33 | |
| 34 | 2. Add the following configuration: |
| 35 | |
| 36 | ```json |
| 37 | { |
| 38 | "mcpServers": { |
| 39 | "datagouv": { |
| 40 | "type": "streamable", |
| 41 | "url": "https://mcp.data.gouv.fr/mcp" |
| 42 | } |
| 43 | } |
| 44 | } |
| 45 | ``` |
| 46 | |
| 47 | For more details, see the [AnythingLLM MCP documentation](https://docs.anythingllm.com/mcp-compatibility/overview). |
| 48 | |
| 49 | ### Autohand Code |
| 50 | |
| 51 | Use the [Autohand Code](https://github.com/autohandai/code-cli/) CLI to register the hosted endpoint: |
| 52 | |
| 53 | ```shell |
| 54 | autohand mcp add --transport http datagouv https://mcp.data.gouv.fr/mcp |
| 55 | ``` |
| 56 | |
| 57 | Add `--scope project` to keep the registration in the current workspace. |
| 58 | |
| 59 | ### ChatGPT |
| 60 | |
| 61 | *Available for paid plans only (Plus, Pro, Team, and Enterprise).* |
| 62 | |
| 63 | 1. **Access Settings**: Open ChatGPT in your browser, go to `Settings`, then `Apps and connectors`. |
| 64 | 2. **Enable Dev Mode**: Open `Advanced settings` and enable **Developer mode**. |
| 65 | 3. **Add Connector**: Return to `Settings` > `Connectors` > `Browse connectors` and click **Add a new connector**. |
| 66 | 4. **Configure the connector**: Set the URL to `https://mcp.data.gouv.fr/mcp` and save to activate the tools. |
| 67 | |
| 68 | ### Claude Code |
| 69 | |
| 70 | Use the `claude mcp` command to add the MCP server: |
| 71 | |
| 72 | ```shell |
| 73 | claude mcp add --transport http datagouv https://mcp.data.gouv.fr/mcp |
| 74 | ``` |
| 75 | |
| 76 | ### Claude Desktop |
| 77 | |
| 78 | Add the following to your Claude Desktop configuration file (typically `~/.config/Claude/claude_desktop_config.json` on Linux, `~/Library/Application Support/Claude/claude_desktop_config.json` on MacOS, or `%APPDATA%\Claude\claude_desktop_config.json` on Windows): |
| 79 | |
| 80 | ```json |
| 81 | { |
| 82 | "mcpServers": { |
| 83 | "datagouv": { |
| 84 | "command": "npx", |
| 85 | "args": [ |
| 86 | "mcp-remote", |
| 87 | "https://mcp.da |