/ Каталог / Песочница / data.gouv.fr
● Официальный datagouv ⚡ Сразу

data.gouv.fr

автор datagouv · datagouv/datagouv-mcp

Search and query French government open-data datasets on data.gouv.fr — no API key, instant access to thousands of public datasets.

France's official open-data MCP exposes the data.gouv.fr catalog: full-text search over datasets and organizations, metadata retrieval, resource downloads. Useful for French civic-tech research, journalism, and policy analysis without paying or registering.

Зачем использовать

Ключевые функции

Живое демо

Как выглядит на практике

datagouv.replay ▶ готово
0/0

Установка

Выберите клиент

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "datagouv": {
      "command": "uvx",
      "args": [
        "datagouv-mcp"
      ]
    }
  }
}

Откройте Claude Desktop → Settings → Developer → Edit Config. Перезапустите после сохранения.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "datagouv": {
      "command": "uvx",
      "args": [
        "datagouv-mcp"
      ]
    }
  }
}

Cursor использует ту же схему mcpServers, что и Claude Desktop. Конфиг проекта приоритетнее глобального.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "datagouv": {
      "command": "uvx",
      "args": [
        "datagouv-mcp"
      ]
    }
  }
}

Щёлкните значок MCP Servers на боковой панели Cline, затем "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "datagouv": {
      "command": "uvx",
      "args": [
        "datagouv-mcp"
      ]
    }
  }
}

Тот же формат, что и Claude Desktop. Перезапустите Windsurf для применения.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "datagouv",
      "command": "uvx",
      "args": [
        "datagouv-mcp"
      ]
    }
  ]
}

Continue использует массив объектов серверов, а не map.

~/.config/zed/settings.json
{
  "context_servers": {
    "datagouv": {
      "command": {
        "path": "uvx",
        "args": [
          "datagouv-mcp"
        ]
      }
    }
  }
}

Добавьте в context_servers. Zed перезагружается автоматически.

claude mcp add datagouv -- uvx datagouv-mcp

Однострочная команда. Проверить: claude mcp list. Удалить: claude mcp remove.

Сценарии использования

Реальные сценарии: data.gouv.fr

Find a French public dataset by topic

👤 Journalists, researchers, civic-tech devs ⏱ ~10 min beginner

Когда использовать: You need 'unemployment by département, monthly' or similar and don't know where it lives.

Поток
  1. Search by keywords
    Search data.gouv.fr for 'chômage département mensuel'. Return top 10 datasets with title, publisher, last update.✓ Скопировано
    → Relevant dataset list
  2. Inspect the most promising
    For the top 3, fetch full metadata: license, update frequency, resources, description. Which is the most current + official?✓ Скопировано
    → Comparison summary
  3. Get download URLs
    Return the CSV resource URL(s) for the chosen dataset. I'll download it separately.✓ Скопировано
    → Direct download URL(s)

Итог: A shortlist of authoritative datasets with direct download links.

Подводные камни
  • Datasets sometimes have broken resource URLs — Check the 'last_modified' metadata; older + unmaintained = more likely broken. Prefer INSEE-published if available.
Сочетать с: filesystem

Catalog all datasets published by a specific ministry or agency

👤 Researchers mapping data availability ⏱ ~15 min intermediate

Когда использовать: You want to know everything INSEE or Ministère de la Transition écologique publishes.

Поток
  1. Look up the organization
    Find the data.gouv organization page for 'INSEE'. Return its slug.✓ Скопировано
    → Canonical org id
  2. List all datasets
    List every dataset published by that org. Page through all results. Return title, id, last update, resource count.✓ Скопировано
    → Full catalog
  3. Categorize
    Group by theme (population, economy, territory, etc.). Count datasets per theme.✓ Скопировано
    → Thematic histogram

Итог: A structured inventory of a French public org's open data.

Подводные камни
  • Large orgs have 1000+ datasets — pagination matters — Always page through all results; don't trust the first page as complete
Сочетать с: filesystem

Watch for newly published or updated datasets on a topic

👤 Civic tech / policy analysts ⏱ ~15 min intermediate

Когда использовать: You want to be alerted when new COVID/election/housing datasets appear.

Поток
  1. Baseline search today
    Search for '<topic>' and save the top 50 dataset ids + last_modified dates as /data/datagouv-<topic>-baseline.json.✓ Скопировано
    → Baseline saved
  2. Weekly rerun
    Rerun the search. Compare against baseline. Return (a) new datasets not in baseline, (b) datasets whose last_modified increased.✓ Скопировано
    → Delta report
  3. Surface the interesting ones
    Filter the delta by official publishers (ministries, INSEE, agencies). Produce a 1-line summary per new/updated dataset.✓ Скопировано
    → Curated digest

Итог: A weekly alert on authoritative new French data in your topic.

Подводные камни
  • Aggregators re-publish old data with new last_modified — noise — Prefer datasets whose publisher is an official org, not a re-publishing community
Сочетать с: filesystem

Комбинации

Сочетайте с другими MCP — эффект x10

datagouv + filesystem

Download and archive datasets locally

Search 'recensement population' on data.gouv, pick the INSEE one, download CSV, save to /data/insee/.✓ Скопировано
datagouv + postgres

Ingest a French open dataset into Postgres for analysis

Download the latest unemployment dataset, infer schema, CREATE TABLE and COPY into Postgres.✓ Скопировано
datagouv + antv-chart

Quick chart from a French open dataset

Download dataset X, filter to 2020-2024, render as a line chart per région.✓ Скопировано

Инструменты

Что предоставляет этот MCP

ИнструментВходные данныеКогда вызыватьСтоимость
search_datasets q: str, page?, page_size? Keyword search over datasets free
get_dataset dataset_id_or_slug Full metadata + resources for a specific dataset free
search_organizations q: str Find a ministry/agency's canonical id free
list_organization_datasets org_id, page? Catalog a publisher's full output free

Стоимость и лимиты

Во что обходится

Квота API
Public API; fair-use throttling (few req/sec is safe)
Токенов на вызов
Dataset metadata: 500–2000 tokens depending on field count
Деньги
Free
Совет
Cache dataset ids locally; metadata rarely changes week-over-week.

Безопасность

Права, секреты, радиус поражения

Хранение учётных данных: None needed
Исходящий трафик: All calls to www.data.gouv.fr and resource hosts

Устранение неполадок

Частые ошибки и исправления

404 on get_dataset

Dataset id changed or was delisted. Use search instead of a cached id.

Rate limited

Space out calls; <5 req/sec is safe. No official limit but fair-use enforced.

Resource URL returns 403/404

Some datasets have broken links; prefer the most recently updated resource or the official publisher's own page.

Альтернативы

data.gouv.fr в сравнении

АльтернативаКогда использоватьКомпромисс
data.europa.eu MCPYou need pan-EU data, not just FranceBroader but less French-specific depth
INSEE API MCPYou only need official INSEE stats with clean API accessNarrower scope; French statistical office only

Ещё

Ресурсы

📖 Читать официальный README на GitHub

🐙 Открытые задачи

🔍 Все 400+ MCP-серверов и Skills