io.github.xaviviro/opendata-cat is an MCP server published by io.github.xaviviro, hosted at opendata.cat. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 8 tools, including search_datasets, get_dataset_info, list_dataset_fields, query_dataset, list_portals.
15 Catalan portals + radio archive: gov, INE/REE/CNMC, CORA, Catalònica, radioteca.cat.
Nothing else in the archive shares these values.
Inferred from the host name and headers: what a server runs on, not who runs it.
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.
| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum number of results to return. Min 1, max 100. Default 20. |
| query * | string | Search text in Catalan or Spanish. Examples: 'qualitat aire', 'pressupostos municipals', 'transport públic', 'residus', 'educació', 'rodalies'. |
| portal | string | Filter results to a single portal. |
| category | string |
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
| Filter by thematic category. Examples: 'Medi Ambient', 'Educació', 'Salut', 'Economia', 'Transport', 'Seguretat'. Use list_categories to see all available categories. |
{
"name": "search_datasets",
"description": "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.",
"inputSchema": {
"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."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}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.
| Parameter | Type | Description |
|---|---|---|
| dataset_id * | string | Unique dataset identifier in 'portal:id' format. Obtained from search_datasets results. Examples: 'generalitat:gn9e-3qhr', 'barcelona:qualitat-de-laire', 'renfe:vehicle-positions-gtfsrt'. |
{
"name": "get_dataset_info",
"description": "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.",
"inputSchema": {
"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'."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}List fields of a dataset with name, data type and description. Call before query_dataset to know which fields and filters are available.
| Parameter | Type | Description |
|---|---|---|
| dataset_id * | string | Unique dataset identifier in 'portal:id' format. Obtained from search_datasets results. |
{
"name": "list_dataset_fields",
"description": "List fields of a dataset with name, data type and description. Call before query_dataset to know which fields and filters are available.",
"inputSchema": {
"type": "object",
"required": [
"dataset_id"
],
"properties": {
"dataset_id": {
"type": "string",
"description": "Unique dataset identifier in 'portal:id' format. Obtained from search_datasets results."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}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).
| Parameter | Type | Description |
|---|---|---|
| limit | number | Number of rows to return. Min 1, max 100. Default 20. Use offset for pagination. |
| offset | number | Number of rows to skip for pagination. Default 0. Combine with limit to navigate large results. |
| search | string | Free text search within dataset data. Works with Socrata ($q) and CKAN (q). For Diba and CIDO, use specific filters. |
| filters | object | 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. |
| dataset_id * | string | Unique dataset identifier in 'portal:id' format. Obtained from search_datasets results. |
{
"name": "query_dataset",
"description": "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).",
"inputSchema": {
"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."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}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.
No parameters.
{
"name": "list_portals",
"description": "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.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}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.
No parameters.
{
"name": "list_categories",
"description": "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.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}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.
| Parameter | Type | Description |
|---|---|---|
| dataset_id * | string | Dataset ID to find related datasets for. Obtained from search_datasets. |
{
"name": "related_datasets",
"description": "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.",
"inputSchema": {
"type": "object",
"required": [
"dataset_id"
],
"properties": {
"dataset_id": {
"type": "string",
"description": "Dataset ID to find related datasets for. Obtained from search_datasets."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}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.
| Parameter | Type | Description |
|---|---|---|
| type | string | Filter by document type. |
| year | string | 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 | number | Maximum results. Min 1, max 50. Default 10. |
| query * | string | 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 | number | Pagination offset. Default 0. |
| publisher | string | Filter by broadcaster. |
{
"name": "search_radioteca",
"description": "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.",
"inputSchema": {
"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."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Catalan open data MCP server. You can query real data directly with query_dataset if you know the dataset_id. Always respond in the user's language. FEATURED DATASETS (use query_dataset directly, no search needed): - generalitat:gn9e-3qhr → Embassaments (reservoirs), CURRENT state — one row per reservoir with the latest reading: fields dia, estaci, volum_embassat, percentatge_volum_embassat, nivell_absolut - generalitat:vjx7-6kcp → Embassaments, HISTORICAL series (readings over time). Long format: one row per station/variable/timestamp. Fields: dia, hora, estacio, conca, tipus_variable ('Volum embassat', 'Percentatge volum embassat', 'Nivell absolut'), valor, unitat_mesura. Filter by estacio + tipus_variable. - generalitat:i5n8-43cw → Estat de sequera per municipi (drought status by municipality) - generalitat:rmgc-ncpb → Accidents de trànsit amb morts o ferits greus (traffic accidents with deaths/serious injuries) - generalitat:jq8m-d7cw → Incidents operatius gestionats pel CAT 112 (112 emergency incidents) - generalitat:mfqb-sbx4 → Trucades operatives gestionades pel CAT 112 (112 emergency calls) - generalitat:g2ay-3vnj → Actuacions dels Bombers de la Generalitat (firefighter operations) - generalitat:j6ii-t3w2 → Certificats d'eficiència energètica d'edificis (building energy certificates) - fgc:vehicle-positions-gtfs_realtime → FGC train GPS positions (real-time) - fgc:alerts-gtfs_realtime → FGC service alerts (real-time, in Catalan) - fgc:trip-updates-gtfs_realtime → FGC train delays (real-time) - renfe:vehicle-positions-gtfsrt → Rodalies Barcelona train GPS positions (real-time) - renfe:trip-updates-gtfsrt → Rodalies Barcelona train delays (real-time) - renfe:alerts-gtfsrt → Rodalies Barcelona service alerts (real-time, in Spanish) - idescat:m10328 → Població de Catalunya (population) - idescat:m10234 → Confiança empresarial (business confidence) - barcelona:accidents-gu-bcn → Accidents gestionats per la Guàrdia Urbana BCN (police-managed accidents) - barcelona:relacio-contractistes → Top contractors of Barcelona City Council: company name, NIF, total amount, number of contracts per entity - barcelona:perfil-contractant → Public procurement announcements: tenders, awards, formalizations of Barcelona and its municipal group - generalitat:ybgg-dgi6 → ALL public procurement in Catalonia (PSCP): company name (denominacio_adjudicatari), amount (import_adjudicacio_sense_iva), entity. Filter by denominacio_adjudicatari or organ. - generalitat:hb6v-jcbf → Public contracts registry for ANY Catalan municipality. Filter: organisme_contractant='Ajuntament de X'. Fields: adjudicatari, import_adjudicacio, contracte, exercici - generalitat:nn7v-4yxe → Generalitat contract awards (last 5 years): empresa_adjudicataria, import_adjudicat_sense_iva, departament - ine:poblacio-municipis → Population by municipality from INE (national census) - ine:epa-atur-ocupacio → Employment/unemployment by region (EPA survey) - ine:turisme-ocupacio-hotelera → Hotel occupancy by province/tourist destination - ree:generacio-espanya → Electricity generation mix in Spain (solar, wind, nuclear...) - ree:preus-electricitat → Real-time electricity prices (PVPC) - cnmc:preus-carburants → Fuel prices at every gas station in Spain CORA RESEARCH DATA (academic datasets via CKAN datastore): - cora:electoral-1936 → 1936 Spanish elections at municipal level: votes by coalition (left/right/center), turnout, 8,560 municipalities including 1,065 in Catalonia - cora:airbnb-bcn-demografia → Barcelona census-section demographics (population by age, foreigners) linked to Airbnb impact study - cora:airbnb-bcn-adreces → 1,918 Airbnb-style tourist rentals in Barcelona with GPS coordinates - cora:cova-gran-2025 → Cova Gran (Lleida) archaeological inventory: 5,573 finds (bones, lithic, ceramic) with stratigraphic levels and XYZ coordinates - cora:polat-panel → POLAT 12-wave political-attitudes panel of Spain (2010-2020): 20,991 obs, 106 key variables (trust, vote, ideology, popu
Names, descriptions and schemas were written by the server and are shown as data.