Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
INEGI_TOKENNoOptional API token for INEGI DENUE data to access higher rate limits or additional features. Register at https://www.inegi.org.mx/servicios/api_denue.html.
CDMX_MCP_LIVENoSet to '1' to enable live testing mode that queries real data from datos.cdmx.gob.mx.
ECOBICI_GBFS_URLNoOptional URL to override the default GBFS feed for ECOBICI real-time data.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_datasetsB

List datasets on datos.cdmx.gob.mx. Optional free-text search.

Args: search: free-text query (searches title and description). limit: max datasets to return (1-100).

describe_datasetA

Return schema and metadata for a dataset on datos.cdmx.gob.mx.

Use shortcut ids: "fgj", "911", "ids", "aire".

query_recordsA

Query records from a CDMX dataset (CKAN datastore, PostgreSQL).

Args: dataset_id: id on datos.cdmx.gob.mx (or shortcut: fgj, 911, ids, aire). where: SQL-ish WHERE, e.g. anio_hecho=2025 AND alcaldia_hecho="BENITO JUAREZ". String literals can use single or double quotes; identifiers are quoted automatically. select: comma-separated columns (for fewer tokens). order_by: e.g. "fecha_hecho desc". limit: 1-100. Defaults to 50. offset: for pagination.

aggregateA

Server-side aggregation (GROUP BY + metric) via CKAN datastore SQL.

Example: aggregate("fgj", group_by="alcaldia_hecho", metric='count(*) as delitos', where="anio_hecho=2025").

crime_hotspotsB

Top colonies/alcaldías by crime count (FGJ carpetas).

Args: year: filter by anio_hecho (defaults to 2025). alcaldia: optional alcaldía filter (e.g. "CUAUHTEMOC"). UPPERCASE. category: optional crime category filter (e.g. "ROBO DE VEHICULO"). top_n: how many rows to return.

ecobici_statusA

Live bike/dock availability from ECOBICI (GBFS).

Pass station_id for one station, or near_lat/near_lng + radius_m to find the closest ones. Omit all to get the full snapshot (throttled).

air_quality_nowC

Most recent air-quality index rows from SIMAT (via datos.cdmx).

Args: zone: optional zone filter (e.g. "NOROESTE", "CENTRO", "SURESTE").

denue_nearC

Economic units (businesses) near a point (INEGI DENUE).

Requires env INEGI_TOKEN. Free registration: https://www.inegi.org.mx/servicios/api_denue.html

cache_statsB

Return cdmx-mcp cache stats (for demos — shows how much we saved).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
guide_fgj
guide_top5

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/devcsar/cdmx-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server