• DATA
  • INFO
  • FILTER
  • HUMAN

How to extract dataset metadata and files with your AI

Connect to Datos.gob.es once. After that, your agent handles the heavy lifting of finding and grabbing data files.

Ask AI about this page

Short answer

How can I get dataset links and metadata from Datos.gob.es?

Your AI client uses this MCP to query the Spanish National Catalog for specific datasets. It pulls the exact download URLs, file formats, and descriptive metadata you need. You'll get a clear list of available files and their properties.

The results

What your AI delivers

The AI turns catalog searches into actionable data points.

DATA

Direct download links

The AI finds the specific URLs for files. You get the exact paths needed to pull data into your local environment.

INFO

Detailed metadata

It extracts descriptions, formats, and dataset properties. This helps you understand what the data contains before you download it.

FILTER

Format-specific lists

You can ask for only CSV or JSON files. The AI filters the catalog to show only the distributions that match your requirements.

HUMAN

Manual verification

You decide which datasets are actually useful. The AI provides the raw info, but you make the final call on which files to use.

The workflow

What your AI does when the request arrives.

The AI acts as a bridge between your chat interface and the Spanish National Catalog.

  1. Locate the dataset

    The AI searches the national catalog to find the specific dataset you're looking for based on your description.

    get_dataset
  2. Identify available files

    Once the dataset is found, the AI looks at all the different files and versions attached to it.

    list_distributions_by_dataset
  3. Filter by file type

    If you only want specific formats like CSV or XML, the AI narrows down the list to match.

    list_distributions_by_format
  4. Extract download details

    The AI pulls the final list of download links and metadata for the files you've selected.

    list_distributions

Try it

Copy these to start.

Use these prompts to kick off your search.

Starting points

Swap out the bracketed terms for the specific dataset names or file types you need.

Datos.gob.es Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_xo2gC4rSEibGD4JOnCtKXoQ0k5wPqvoW722sKuKq/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Datos.gob.es capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "datosgobes-catalogo-nacional-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_xo2gC4rSEibGD4JOnCtKXoQ0k5wPqvoW722sKuKq/mcp"
    }
  }
}
Copy into chat04
  • Find the dataset about 'transporte público' in the Datos.gob.es catalog.

  • List all the CSV files available in the 'clima' dataset.

  • Get the download links and metadata for the 'censo de población' dataset.

  • Show me all the distributions for the 'educación' dataset that are in JSON format.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Datos.gob.es once, then ask.

One click connects this MCP to your AI client. Your credentials stay encrypted, and you can immediately start asking for data.

Connect Datos.gob.es to your AI

FAQ

How this task behaves

  • 01

    Can the AI download the files directly to my computer?

    No. The AI provides the direct download links and metadata. You have to use those links to save the files to your machine.

  • 02

    Can I use this to upload my own data to the catalog?

    No. This MCP is designed to read and extract data from the existing catalog, not to modify or upload new datasets.

  • 03

    Does the AI know if a dataset is updated?

    Yes, it can retrieve the metadata which includes information about the dataset's properties.

  • 04

    Can the AI filter datasets by file format?

    Yes, it can specifically look for distributions that match a format like CSV or XML.

  • 05

    Can the AI change the metadata of a dataset?

    No. The AI only reads the information provided by the national catalog.

  • More questions about Datos.gob.es? See everything the Datos.gob.es Connector can do

Connect Datos.gob.es to Claude, Cursor, ChatGPT & more