# opendata-cat MCP server

Query 2,991+ Catalan open datasets from 14 portals. Real-time trains, budgets, CORA research.

## Links
- Registry page: https://www.getdrio.com/mcp/io-github-xaviviro-opendata-cat
- Repository: https://github.com/xaviviro/Opendata.cat-MCP-Server

## Install
- Command: `npx -y @opendata.cat/mcp-server`
- Endpoint: https://opendata.cat/api/mcp
- Auth: Not captured

## Setup notes
- Package: Npm @opendata.cat/mcp-server v0.3.6
- Remote endpoint: https://opendata.cat/api/mcp

## Tools
- search_datasets - Search datasets by free text. IMPORTANT: check server instructions first — many common queries have a direct dataset_id you can use with query_dataset without searching. Only use search_datasets when you don't know which dataset you need. Endpoint: https://opendata.cat/api/mcp
- get_dataset_info - Get complete metadata for a dataset: fields with types and descriptions, API endpoint, license, available formats and last update. Call after search_datasets to get full details of a specific dataset. Endpoint: https://opendata.cat/api/mcp
- list_dataset_fields - List fields of a dataset with name, data type and description. Call before query_dataset to know which fields and filters are available. Endpoint: https://opendata.cat/api/mcp
- query_dataset - Query real data from a dataset. Check instructions for featured dataset_ids and NOTES section for common filter patterns (municipal budgets, contracts, weather, energy, fuel prices). Endpoint: https://opendata.cat/api/mcp
- list_portals - List all 13 indexed open data portals with dataset counts. Catalan portals (Generalitat, Barcelona, Diba, AOC, Reus, Girona, FGC, Idescat, Renfe) + Spanish national sources with Catalonia focus (INE statistics, REE energy, SEPE employment, CNMC fuel prices). No parameters required. Endpoint: https://opendata.cat/api/mcp
- list_categories - List all dataset categories and themes with counts per portal. Great first step to discover what data types are available before searching with search_datasets. Returns total datasets, count per portal and category list with counts. No parameters required. Endpoint: https://opendata.cat/api/mcp
- related_datasets - Find related datasets from OTHER portals. Great for discovering complementary data: if you're looking at air quality from Generalitat, it may suggest traffic data from Barcelona or emissions from AOC. Relations are computed by thematic similarity across portals. Endpoint: https://opendata.cat/api/mcp

## Resources
Not captured

## Prompts
- estat_embassaments - Analyze current status of Catalan reservoirs with evolution charts.
- trens_fgc_temps_real - Check FGC trains real-time status: delays, alerts and positions.
- trens_rodalies_temps_real - Check Rodalies de Catalunya (Renfe) trains real-time status: delays, alerts and GPS positions.
- qualitat_aire - Analyze air quality at a Catalan station or municipality. Arguments: lloc
- accidents_transit - Analyze traffic accident data in Catalonia or a specific municipality. Arguments: municipi
- pressupostos_municipals - Explore and compare municipal budgets of Catalan municipalities. Arguments: municipi
- compara_municipis - Compare two Catalan municipalities across all available open data. Arguments: municipi_a, municipi_b
- descobreix_dades - Explore what open data is available about a topic in Catalonia. Arguments: tema
- analisi_bombers - Analyze Catalan firefighter operations: emergency types, territorial distribution and trends. Arguments: comarca
- novetats - Show the most recently updated datasets across Catalan open data portals. Arguments: portal
- datasets_populars - Show the most queried datasets by MCP users.
- explorar_portal - Explore an open data portal: dataset count, categories, examples of each type. Arguments: portal
- dades_municipi - Discover all available open data about a specific Catalan municipality. Arguments: municipi
- datasets_temps_real - List datasets offering real-time or frequently updated data.
- resum_portals - General summary of all portals: dataset counts, topics, formats.

## Metadata
- Owner: io.github.xaviviro
- Version: 0.3.6
- Runtime: Npm
- Transports: STDIO, HTTP
- License: Not captured
- Language: Not captured
- Stars: Not captured
- Updated: May 19, 2026
- Source: https://registry.modelcontextprotocol.io
