Opendata.cat MCP
An open-source MCP server by the Opendata.cat association that connects LLMs to over 2,850 open data datasets from Catalan and Spanish public sources. It provides tools to search datasets, query real-time data like traffic and electricity prices, and access radio archives via natural language.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://opendata.cat/api/mcpWhat its tools do
8 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Warning Advertises resources/templates/list but does not implement it
- Uptime 100% over 90 days
- Availability 3 of 3 checks passed in 30 days
About Opendata.cat MCP
The Opendata.cat MCP server is an open-source tool developed by the Opendata.cat association. It enables language models to interact with more than 2,850 open data datasets sourced from Catalan and Spanish public entities. The server facilitates access to diverse information types, including static datasets and real-time updates.
Agents can use this server to perform tasks such as checking air quality metrics like NO2 and PM2.5 levels, querying real-time train positions from FGC and Renfe Rodalies, and retrieving electricity prices (PVPC) and fuel costs. It also supports searching public contracts, municipal budgets, and accessing radio archives through natural language queries.
Connection to the server requires no sign-in or authentication to list available tools. However, individual tools may still require a vendor account, credentials, or specific permissions. Users must check the documented prerequisites for each specific task before execution.
What you can do with it
- Query real-time train positions from FGC and Renfe Rodalies
- Check air quality metrics like NO2 and PM2.5 levels
- Retrieve electricity prices (PVPC) and fuel costs
- Search public contracts and municipal budgets
Source and maintenance
- Maintenance checked
Protocol and capabilities
- Server
- opendata-cat 0.4.0
- MCP protocol negotiated in check
- 2024-11-05
- Tools
- 8 advertised
- Resources
- 4 advertised
- Resource templates
- Not advertised
- Prompts
- 21 advertised
{
"tools": {
"listChanged": false
},
"prompts": {
"listChanged": false
},
"resources": {
"listChanged": false
}
}Server-provided instructions
Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.
Tools
8 advertised
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.
{
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "number",
"default": 20,
"description": "Maximum number of results to return. Min 1, max 100. Default 20."
},
"query": {
"type": "string",
"description": "Search text in Catalan or Spanish. Examples: 'qualitat aire', 'pressupostos municipals', 'transport públic', 'residus', 'educació', 'rodalies'."
},
"portal": {
"enum": [
"generalitat",
"barcelona",
"diba",
"aoc",
"reus",
"girona",
"fgc",
"idescat",
"renfe",
"ine",
"ree",
"sepe",
"cnmc",
"cora",
"catalonica"
],
"type": "string",
"description": "Filter results to a single portal."
},
"category": {
"type": "string",
"description": "Filter by thematic category. Examples: 'Medi Ambient', 'Educació', 'Salut', 'Economia', 'Transport', 'Seguretat'. Use list_categories to see all available categories."
}
}
}{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}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.
{
"type": "object",
"required": [
"dataset_id"
],
"properties": {
"dataset_id": {
"type": "string",
"description": "Unique dataset identifier in 'portal:id' format. Obtained from search_datasets results. Examples: 'generalitat:gn9e-3qhr', 'barcelona:qualitat-de-laire', 'renfe:vehicle-positions-gtfsrt'."
}
}
}{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}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.
{
"type": "object",
"required": [
"dataset_id"
],
"properties": {
"dataset_id": {
"type": "string",
"description": "Unique dataset identifier in 'portal:id' format. Obtained from search_datasets results."
}
}
}{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}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).
{
"type": "object",
"required": [
"dataset_id"
],
"properties": {
"limit": {
"type": "number",
"default": 20,
"description": "Number of rows to return. Min 1, max 100. Default 20. Use offset for pagination."
},
"offset": {
"type": "number",
"default": 0,
"description": "Number of rows to skip for pagination. Default 0. Combine with limit to navigate large results."
},
"search": {
"type": "string",
"description": "Free text search within dataset data. Works with Socrata ($q) and CKAN (q). For Diba and CIDO, use specific filters."
},
"filters": {
"type": "object",
"description": "Key-value filters where the key is the field name and the value is the filter value. Examples: {\"municipi\": \"Barcelona\"}, {\"any\": \"2024\"}, {\"NOM_ENS\": \"Ajuntament de Tiana\"}. Use list_dataset_fields to know valid field names.",
"additionalProperties": {
"type": "string"
}
},
"dataset_id": {
"type": "string",
"description": "Unique dataset identifier in 'portal:id' format. Obtained from search_datasets results."
}
}
}{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}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.
{
"type": "object",
"required": [],
"properties": {}
}{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}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.
{
"type": "object",
"required": [],
"properties": {}
}{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}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.
{
"type": "object",
"required": [
"dataset_id"
],
"properties": {
"dataset_id": {
"type": "string",
"description": "Dataset ID to find related datasets for. Obtained from search_datasets."
}
}
}{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}search_radioteca
Search radio shows, episodes and people indexed at radioteca.cat (Catalan radio archive, ~485K documents from Catalunya Ràdio, RAC1, Catalunya Música, iCat, Catalunya Informació, RTVE, Cadena SER, ara.cat). Searches across episode titles, descriptions (which include a detailed summary of what was said), program name and subheading. Returns episodes (~473K), programs (~3K) and people (~9K). IMPORTANT: always cite radioteca.cat as the source and include the absolute 'url' in your reply for traceability — never paraphrase without linking.
{
"type": "object",
"required": [
"query"
],
"properties": {
"type": {
"enum": [
"Episode",
"Program",
"Person"
],
"type": "string",
"description": "Filter by document type."
},
"year": {
"type": "string",
"description": "Filter by year (4 digits, e.g. '2025'). NOTE: only year-level filtering is indexed; for a specific day, use the broader year filter and look at the URL path (radioteca URLs include /YYYY/MM/DD/) or the 'subheading' field which often contains the date."
},
"limit": {
"type": "number",
"default": 10,
"description": "Maximum results. Min 1, max 50. Default 10."
},
"query": {
"type": "string",
"description": "Free text in Catalan or Spanish. Searches title, description (contains episode summary), program and subheading. Examples: 'visita papa', 'eleccions municipals', 'crisi habitatge', 'Albert Serra cinema'."
},
"offset": {
"type": "number",
"default": 0,
"description": "Pagination offset. Default 0."
},
"publisher": {
"enum": [
"Catalunya Ràdio",
"RAC1",
"Catalunya Música",
"iCat",
"Catalunya Informació",
"RTVE",
"Cadena SER",
"ara.cat"
],
"type": "string",
"description": "Filter by broadcaster."
}
}
}{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}Prompts
21 advertised
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.
- lloc
- Municipality or station name (e.g., 'Barcelona', 'Sabadell', 'Terrassa')
accidents_transit
Analyze traffic accident data in Catalonia or a specific municipality.
- municipi
- Municipality name (e.g., 'Barcelona', 'Hospitalet')
pressupostos_municipals
Explore and compare municipal budgets of Catalan municipalities.
- municipi
- Municipality name
compara_municipis
Compare two Catalan municipalities across all available open data.
- municipi_a
- First municipality (required)
- municipi_b
- Second municipality (required)
descobreix_dades
Explore what open data is available about a topic in Catalonia.
- tema
- Topic to explore (e.g., 'educació', 'medi ambient', 'turisme', 'transport') (required)
analisi_bombers
Analyze Catalan firefighter operations: emergency types, territorial distribution and trends.
- comarca
- Filter by comarca (e.g., 'Barcelonès', 'Vallès Occidental')
novetats
Show the most recently updated datasets across Catalan open data portals.
- portal
- Filter by portal: generalitat, barcelona, diba, aoc, reus, girona, fgc, idescat, renfe
datasets_populars
Show the most queried datasets by MCP users.
explorar_portal
Explore an open data portal: dataset count, categories, examples of each type.
- portal
- Portal to explore: generalitat, barcelona, diba, aoc, reus, girona, fgc, idescat, renfe (required)
dades_municipi
Discover all available open data about a specific Catalan municipality.
- municipi
- Municipality name (e.g., 'Sabadell', 'Girona', 'Manresa') (required)
datasets_temps_real
List datasets offering real-time or frequently updated data.
resum_portals
General summary of all portals: dataset counts, topics, formats.
radioteca_cerca_tema
Search radioteca.cat for radio episodes about a topic and summarize what was said, always with links to radioteca.cat.
- tema
- Topic to search in Catalan/Spanish radio archive (e.g., 'visita papa', 'eleccions municipals', 'crisi habitatge', 'Albert Serra cinema') (required)
- any
- Filter by year (YYYY), default: current year
- emissora
- Filter by broadcaster: 'Catalunya Ràdio', 'RAC1', 'Catalunya Música', 'iCat', 'Catalunya Informació', 'RTVE', 'Cadena SER', 'ara.cat'
radioteca_avui
What did Catalan radio say today or yesterday about a topic — always cite radioteca.cat URLs for traceability.
- tema
- Topic to investigate (e.g., 'situació al Pròxim Orient', 'reforma laboral', 'cultura catalana') (required)
skill_consulta_dades_obertes
Useu quan calgui respondre una pregunta amb dades obertes catalanes (15 portals — Generalitat, Barcelona, Diba, AOC, Reus, Girona, FGC, Idescat, Renfe, INE, REE, CNMC, CORA, Catalònica) amb les eines del servidor MCP opendata.cat (search_datasets, get_dataset_info, list_dataset_fields, query_dataset, related_datasets). Orienta com decidir el dataset, filtrar, paginar i citar bé.
skill_contractacio_publica
Useu quan calgui investigar contractació pública a Catalunya amb el servidor MCP opendata.cat — qui contracta una empresa, quant ha adjudicat un ens, els contractes d'un municipi o de la Generalitat, rànquings d'adjudicataris. Guia quin dataset triar, com filtrar i sumar imports, com creuar fonts sense duplicar i com citar cada xifra.
skill_patrimoni_i_hemeroteca
Useu quan calgui investigar patrimoni cultural digital i premsa/ràdio catalana amb el servidor MCP opendata.cat — Catalònica (39 subportals de la BNC: MNAC, RACO, tesis, mapes, manuscrits, hemeroteques) i radioteca.cat (~485K episodis). Guia com triar el subportal, com cercar-hi i la disciplina de cites (mai fabricar registres, sempre enllaçar la font).
skill_radar_municipal
Useu quan calgui fer un retrat complet d'un municipi català amb dades obertes (pressupost, deute, cost de serveis, contractes, població, equipaments) creuant portals amb el servidor MCP opendata.cat. Guia com filtrar per NOM_ENS, quins datasets AOC/Generalitat/estadístics usar, i com tancar amb què falta.
Resources
4 advertised
consulta-dades-obertes — consulta-dades-obertes
Useu quan calgui respondre una pregunta amb dades obertes catalanes (15 portals — Generalitat, Barcelona, Diba, AOC, Reus, Girona, FGC, Idescat, Renfe, INE, REE, CNMC, CORA, Catalònica) amb les eines del servidor MCP opendata.cat (search_datasets, get_dataset_info, list_dataset_fields, query_dataset, related_datasets). Orienta com decidir el dataset, filtrar, paginar i citar bé.
skill://consulta-dades-obertes/SKILL.mdcontractacio-publica — contractacio-publica
Useu quan calgui investigar contractació pública a Catalunya amb el servidor MCP opendata.cat — qui contracta una empresa, quant ha adjudicat un ens, els contractes d'un municipi o de la Generalitat, rànquings d'adjudicataris. Guia quin dataset triar, com filtrar i sumar imports, com creuar fonts sense duplicar i com citar cada xifra.
skill://contractacio-publica/SKILL.mdpatrimoni-i-hemeroteca — patrimoni-i-hemeroteca
Useu quan calgui investigar patrimoni cultural digital i premsa/ràdio catalana amb el servidor MCP opendata.cat — Catalònica (39 subportals de la BNC: MNAC, RACO, tesis, mapes, manuscrits, hemeroteques) i radioteca.cat (~485K episodis). Guia com triar el subportal, com cercar-hi i la disciplina de cites (mai fabricar registres, sempre enllaçar la font).
skill://patrimoni-i-hemeroteca/SKILL.mdradar-municipal — radar-municipal
Useu quan calgui fer un retrat complet d'un municipi català amb dades obertes (pressupost, deute, cost de serveis, contractes, població, equipaments) creuant portals amb el servidor MCP opendata.cat. Guia com filtrar per NOM_ENS, quins datasets AOC/Generalitat/estadístics usar, i com tancar amb què falta.
skill://radar-municipal/SKILL.md90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-07: 1 of 1 checks answered
- 2026-11-09: 1 of 1 checks answered
- 2026-11-10: 2 of 2 checks answered
- 2026-11-11: 1 of 1 checks answered
- 2026-11-12: 1 of 1 checks answered
- 2026-11-14: 1 of 1 checks answered
- 2026-11-15: 2 of 2 checks answered
- 2026-11-16: 4 of 4 checks answered
- 2026-11-17: 5 of 5 checks answered
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 3 of 3 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 3 of 3 checks answered
- 2026-11-24: 4 of 4 checks answered
- 2026-11-25: 4 of 4 checks answered
- 2026-11-26: 4 of 4 checks answered
- 2026-11-27: 4 of 4 checks answered
- 2026-11-28: 1 of 1 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 3 of 3 (100%)
- Average latency
- 1711 ms
- 95th percentile latency
- 2030 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 2007 ms · 8 tool(s), 4 resource(s), 21 prompt(s); warnings: Advertises resources/templates/list but does not implement it
- · probe · passed · 2033 ms · 8 tool(s), 4 resource(s), 21 prompt(s); warnings: Advertises resources/templates/list but does not implement it
- · probe · passed · 1092 ms · metadata changed · 8 tool(s), 4 resource(s), 21 prompt(s); warnings: Advertises resources/templates/list but does not implement it
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http opendata-mcp https://opendata.cat/api/mcpCodex
codex mcp add opendata-mcp --url https://opendata.cat/api/mcpCursor
{
"mcpServers": {
"opendata-mcp": {
"url": "https://opendata.cat/api/mcp"
}
}
}Cline
{
"mcpServers": {
"opendata-mcp": {
"type": "streamableHttp",
"url": "https://opendata.cat/api/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"opendata-mcp": {
"type": "http",
"url": "https://opendata.cat/api/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http opendata-mcp https://opendata.cat/api/mcpClaude Desktop
https://opendata.cat/api/mcpWindsurf
{
"mcpServers": {
"opendata-mcp": {
"serverUrl": "https://opendata.cat/api/mcp"
}
}
}Let your agent find its tools
Find servers like Opendata.cat MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.
Other data and analytics servers
Frequently asked questions
- Can I use this server to check real-time train positions?
- Yes. The server provides tools to query real-time train positions from FGC and Renfe Rodalies. This allows agents to retrieve current location data for these specific transit networks.
- Does connecting to the server require an account?
- No sign-in is required to connect to the server or list its tools. However, individual tools may still need a vendor account, credentials, or permissions. You must check the documented prerequisites for each specific task.
- What data can I retrieve regarding energy costs?
- The server allows agents to retrieve electricity prices (PVPC) and fuel costs. These tools enable queries for current and historical energy pricing data from the specified public sources.
- Are there limitations on tool access without credentials?
- The live check verifies connection and tool discovery only. It does not establish whether every tool works without an account, credentials, payment, or permissions. Prerequisites vary by tool.