spain-datosgob-catalog-mcp
# spain-datosgob-catalog-mcp
Official Spanish national public sector catalog at Datos.gob.es over Model Context Protocol (MCP). Legal teams, fiscal analysts, and civic builders can browse datasets, filter by EU data themes, and inspect Spanish public publishers with zero API keys. Setup takes seconds.
## Hosted endpoint
Point any Streamable HTTP MCP client at the free Cloudflare Worker endpoint.
```text
https://spain-datosgob-catalog-mcp.lipmichal.workers.dev/mcp
```
## Available tools
| Tool | Purpose |
| --- | --- |
| `list_spain_datosgob_datasets` | List paginated public sector datasets from Spain Datos.gob.es |
| `list_spain_datosgob_themes` | List official EU data themes available in the Spain Datos.gob.es catalog |
| `get_spain_datosgob_dataset_by_id` | Retrieve full metadata and distributions for a specific Spanish dataset ID |
| `search_spain_datosgob_by_theme` | Browse Spain Datos.gob.es datasets filtered by a theme slug |
| `list_spain_datosgob_publishers` | List official Spanish public administration publisher identifiers |
## Client configuration
Add the remote URL to Claude Desktop, Cursor, or VS Code MCP settings.
```json
{
"mcpServers": {
"spain-datosgob-catalog": {
"url": "https://spain-datosgob-catalog-mcp.lipmichal.workers.dev/mcp"
}
}
}
```
## Run locally over stdio
You can also run this server locally on Node 20 or newer over stdio.
```bash
npm install
npm run build
npm start
```
## Compliance and reliability
Every upstream request queries `datos.gob.es/apidata/catalog/` with a polite `User-Agent` header (`mcpstamp-spain-datosgob-catalog/1.0.1 (hello@mcpstamp.com)`) and automatic retry on transient network or 5xx errors. Cloudflare edge caching applies only to HTTP 2xx responses, so upstream faults don't linger in cache. All five tools declare read-only, non-destructive, idempotent, open-world annotations, and the Worker negotiates future protocol versions cleanly.
## More MCP servers and readiness check
This server belongs to the public MCP directory maintained by MCPStamp and Zovo.
- [Free live-data MCP directory](https://www.mcpstamp.com/free-servers/) with hosted keyless endpoints and client setup guides.
- [Free MCP readiness checker](https://www.mcpstamp.com/check/) to score any MCP server for Claude, ChatGPT, and registry submission.
- [MCP Readiness Audit ($490)](https://www.mcpstamp.com/services/#audit) for teams shipping a production server who want a hands-on security, schema, and store review.
- [Zovo Pro MCP Bundle ($39 one-time)](https://mcp.zovo.one/buy/bundle?src=gh.spain-datosgob-catalog-mcp) with hosted commercial servers and priority endpoints.
TDQS
Scored across 5 tools
The five tools have mostly distinct purposes: listing datasets, retrieving dataset metadata by ID, browsing by theme, and two reference lists for themes and publishers. The only mild overlap is between list_spain_datosgob_datasets and search_spain_datosgob_by_theme, but the descriptions make the distinction clear enough.
All tool names use a consistent snake_case verb_noun pattern with the same spain_datosgob domain prefix. The verbs list, get, and search are used predictably across the set.
Five tools is well-scoped for a read-only national open data catalog interface. Each tool covers a meaningful catalog operation without redundant bulk.
The surface covers dataset listing, metadata retrieval, theme-based browsing, and reference lists for themes and publishers. Minor gaps remain around keyword search and listing datasets by publisher, but agents can work around these via paginated catalog listing.