Ayuntamiento de Madrid (CKAN)

Ayuntamiento de Madrid (CKAN) MCP Connector for Claude

A

Access Madrid's open data portal — list datasets, search for municipal information, and inspect resources from the city's CKAN repository.

8 tools Official Updated Jun 28, 2026 Official Vinkius Partner

Connect to the official Open Data portal of the Madrid City Council and explore thousands of public datasets through natural conversation. This server interfaces with the city's CKAN repository to provide real-time access to municipal information.

What you can do

  • Dataset Discovery — List all available packages or search for specific topics like transport, environment, or budget using list_packages and search_packages.
  • Metadata Inspection — Retrieve deep metadata for any dataset, including its maintainer, update frequency, and license using get_package.
  • Resource Access — Identify specific files (CSV, JSON, XLS) within a dataset and fetch their individual metadata using get_resource or search_resources.
  • Organizational Mapping — List all municipal departments and organizations that publish data to understand the source of the information using list_organizations.
  • Categorization — Browse data by groups or tags to find related information across different city sectors using list_groups and list_tags.

How it works

  1. Subscribe to this server
  2. Enter your API Key from the Madrid Data portal (if required for specific endpoints)
  3. Start querying city data from Claude, Cursor, or any MCP-compatible client

Who is this for?

  • Data Analysts — quickly find and inspect municipal datasets for urban research or trend analysis.
  • Developers — retrieve resource IDs and metadata to integrate city data into applications without leaving the IDE.
  • Citizens & Researchers — explore public information about Madrid's services, environment, and economy through simple questions.
open-datamunicipal-datackan-apipublic-recordscity-servicesdata-querying

8 tools expose this connector's capabilities to your AI agent.

madrid_get_package

Get full metadata for a specific dataset

madrid_get_resource

Get metadata for a specific file/resource

madrid_list_groups

List all categories/groups

madrid_list_organizations

List municipal departments/organizations

madrid_list_packages

List all dataset names in the portal

madrid_search_packages

Supports filtering by tags, groups, etc. Search for datasets matching a query

madrid_search_resources

Search for resources matching specific criteria

madrid_list_tags

List all tags used in the catalog

See how to talk to your AI agent using Ayuntamiento de Madrid (CKAN).

Search for datasets related to 'BiciMAD' in Madrid.

I found several datasets related to BiciMAD. The most relevant ones are 'BiciMAD: Estaciones y ocupación' and 'BiciMAD: Uso del servicio'. Would you like the details for one of these?

List all municipal organizations that publish open data.

I've retrieved the list of organizations. There are over 50 departments, including 'Área de Gobierno de Medio Ambiente y Movilidad', 'EMT Madrid', and 'Cultura y Turismo'.

Get the metadata for the dataset 'puntos-muestreo-aire'.

Inspecting 'puntos-muestreo-aire'... This dataset contains the air quality monitoring points in Madrid. It includes 4 resources in CSV and XML formats, maintained by the Environment Department.

You can use the `search_packages` tool with a query like 'aire' or 'contaminacion'. The agent will return a list of matching datasets available in the Madrid portal.

Related Connectors