datagouv-mcp
datagouv · datagouv/datagouv-mcp
Máy chủ MCP này cho phép các tác nhân AI tìm kiếm, khám phá và phân tích các tập dữ liệu từ nền tảng Dữ liệu Mở quốc gia Pháp thông qua đối thoại tự nhiên.
Máy chủ Giao thức Ngữ cảnh Mô hình (MCP) chính thức của data.gouv.fr cho phép chatbot AI tìm kiếm, khám phá và phân tích các tập dữ liệu từ nền tảng Dữ liệu Mở quốc gia Pháp, trực tiếp thông qua hội thoại.
Xem trước
Bạn có thể làm gì với nó
- Yêu cầu một tác nhân tìm dữ liệu giá bất động sản ở Pháp.
- Lấy dữ liệu dân số mới nhất cho một thành phố cụ thể của Pháp.
- Phân tích xu hướng trên nhiều tập dữ liệu mở từ data.gouv.fr.
Kiểm tra an toàn
Không thấy dấu hiệu rủi ro trong các file đã quét.
Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.
Trích từ README
data.gouv.fr MCP Server
[!TIP] Got feedback? Tell us about it here
Model Context Protocol (MCP) server that allows AI chatbots (Claude, ChatGPT, Gemini, etc.) to search, explore, and analyze datasets from data.gouv.fr, the French national Open Data platform, directly through conversation.
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.
[!TIP] Use it now: A public instance is available for everyone at https://mcp.data.gouv.fr/mcp with no access restrictions. To connect your favorite chatbot, simply follow the connection instructions below.
🌐 Connect your chatbot to the MCP server
Use the hosted endpoint https://mcp.data.gouv.fr/mcp (recommended). If you self-host, swap in your own URL.
The MCP server configuration depends on your client. Use the appropriate configuration format for your client:
AnythingLLM | Autohand Code | ChatGPT | Claude Code | Claude Desktop | Cursor | Gemini CLI | HuggingChat | IBM Bob | Kiro CLI | Kiro IDE | Le Chat (Mistral) | Mistral Vibe | OpenCode | VS Code | Windsurf
AnythingLLM
-
Locate the
anythingllm_mcp_servers.jsonfile in your AnythingLLM storage plugins directory:- Linux:
~/.config/anythingllm-desktop/storage/plugins/anythingllm_mcp_servers.json - MacOS:
~/Library/Application Support/anythingllm-desktop/storage/plugins/anythingllm_mcp_servers.json - Windows:
C:\Users\<username>\AppData\Roaming\anythingllm-desktop\storage\plugins\anythingllm_mcp_servers.json
- Linux:
-
Add the following configuration:
{
"mcpServers": {
"datagouv": {
"type": "streamable",
"url": "https://mcp.data.gouv.fr/mcp"
}
}
}
For more details, see the AnythingLLM MCP documentation.
Autohand Code
Use the Autohand Code CLI to register the hosted endpoint:
autohand mcp add --transport http datagouv https://mcp.data.gouv.fr/mcp
Add --scope project to keep the registration in the current workspace.
ChatGPT
Available for paid plans only (Plus, Pro, Team, and Enterprise).
- Access Settings: Open ChatGPT in your browser, go to
Settings, thenApps and connectors. - Enable Dev Mode: Open
Advanced settingsand enable Developer mode. - Add Connector: Return to
Settings>Connectors>Browse connectorsand click Add a new connector. - Configure the connector: Set the URL to
https://mcp.data.gouv.fr/mcpand save to activate the tools.
Claude Code
Use the claude mcp command to add the MCP server:
claude mcp add --transport http datagouv https://mcp.data.gouv.fr/mcp
Claude Desktop
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):
{
"mcpServers": {
"datagouv": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.data.gouv.fr/mcp"
]
}
}
}
Claude Desktop on Windows: If the server appears in the list but never connects (no handshake, tools missing), Claude may be using its built-in Node.js runtime, which does not see packages installed with your system npm (including a global mcp-remote). Set isUsingBuiltInNodeForMcp to false at the root of the same config file so npx uses your installed Node — then restart Claude Desktop:
{
"isUsingBuiltInNodeForMcp": false,
"mcpServers": {
"datagouv": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.data.gouv.fr/mcp"
]
}
}
}
See issue #69 for background.
Cursor
Cursor supports MCP servers through its settings. To configure the server:
- Open Cursor Settings
- Search for "MCP" or "Model Context Protocol"
- Add a new MCP server with the following configuration:
{
"mcpServers": {
"datagouv": {
"url": "https://mcp.data.gouv.fr/mcp",
"transport": "http"
}
}
}
Gemini CLI
Add the following to your ~/.gemini/settings.json file (Linux: ~/.gemini/settings.json, MacOS: ~/.gemini/settings.json, Windows: %USERPROFILE%\.gemini\settings.json):
{
"mcpServers": {
"datagouv": {
"httpUrl": "https://mcp.data.gouv.fr/mcp"
}
}
}
HuggingChat
- Access Settings: In the chat interface, click the + icon, select
MCP Servers, and clickManage MCP Servers. - Add Server: Click the +
Add Serverbutton in the server management window. - Configure the Server: Enter a Server Name (e.g., "Data Gouv") and set the Server URL to
https://mcp.data.gouv.fr/mcp. ClickAdd Serverto save. - Verify Connection: Click the
Health Checkbutton on the new server card to confirm it displays as Connected. Ensure the toggle is activated to use the tools in your chat.
IBM Bob
IBM Bob supports MCP servers through its settings. To configure the server:
- Click the setting icon in the Bob panel.
- Select the MCP tab.
- Click the appropriate button:
- Edit Global MCP: Opens the global
mcp_settings.jsonfile - Edit Project MCP: Opens the project-specific
.bob/mcp.jsonfile (Bob creates it if it does not exist)
Both files use JSON format with an