Datos.gob.es-MCP. MCP integration with the Spanish Government Open Data Portal
Datos.gob.es-mcp enables querying and analyzing over 90,000 public datasets available on the datos.gob.es portal directly from Claude AI and other compatible MCP clients using the Model Context Protocol (MCP).
This MCP server exposes tools for LLMs to search, filter, and access open data across multiple sectors.
Main features
- Keyword search across dataset titles, descriptions and tags.
- Thematic category filtering (environment, transportation, education, etc.)
- Detailed metadata access for each dataset.
- Available distributions listing (formats and access URLs)
- Custom SPARQL queries execution against the official SPARQL endpoint.
Installation
Install via uv
Prerequisites
- Python 3.10 or higher
- uv package manager
uv Installation
First install uv, a modern Python package manager.
Install from command line:
En MAC y Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
En Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
También se puede instalar con pip:
pip install uv
For more information about installing uv, visit the uv documentation.
Integration with clients like Claude for Desktop
Once uv is installed, you can use the MCP server with any compatible client like Claude Desktop. Configuration steps:
- Go to Claude > Settings > Developer > Edit Config >
claude_desktop_config.json - Add this configuration block under
"mcpServers":
"datos_gob_es_mcp": {
"command": "uvx",
"args": [
"datos_gob_es_mcp"
]
}
- If you have other MCP servers configured, separate them with commas
,
For other MCP-compatible clients like Cursor, CODEGPT or Roo Code, add the same configuration block to their respective MCP server settings.
Usage Examples
Once properly configured, you can request operations like:
- `"Search for public transportation datasets in Madrid"`
- `"List latest datasets published by Barcelona City Council"`
- `"Show details for dataset with URI https://datos.gob.es/es/catalogo/l01330241-padron-de-vehiculos-ano-2023-autobuses"`
---
Metadata
Release files for datos-gob-es-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| datos_gob_es_mcp-0.1.0.tar.gz | 8.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datos_gob_es_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.3 kB
Release files / datos_gob_es_mcp-0.1.0.tar.gz
| Download URL | datos_gob_es_mcp-0.1.0.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36ab0ef78d5ffe10575f15c7398ec25cf378d9c40ea247b98bcca0020d4ad3ab
|
|
BLAKE2b-256 checksum How to use checksums |
4297a89d6f78918b508e080112f97f35a09bc07d9dc2434829da40408bf2ad7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 22, 2025.
Transparency logRelease files / datos_gob_es_mcp-0.1.0-py3-none-any.whl
| Download URL | datos_gob_es_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
327bd628ec8e22f0ea048c151e7c2041c6aa5aad49d19b0703aa58c847e091f4
|
|
BLAKE2b-256 checksum How to use checksums |
50cafd735a8c676080b2ab0f72a7985f1de8fa6f6e4772a7b9ef4132c476f394
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 22, 2025.
Transparency log