npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

madridverde-mcp

v0.4.0

Published

MCP server exposing Madrid environmental open data for AI agents

Downloads

185

Readme

MadridVerde MCP

Servidor MCP que permite a cualquier asistente de IA consultar datos medioambientales de Madrid en lenguaje natural.

10 herramientas · Datos en tiempo real · Solo fuentes oficiales del Ayuntamiento de Madrid · Sin API key


Que puedes preguntar

Una vez instalado, abre tu asistente de IA y pregunta cosas como:

  • "Vivo en Calle Carlos Hernandez 29, como esta el medio ambiente en mi barrio?"
  • "Que paradas de bus y BiciMAD tengo cerca de Gran Via 32?"
  • "Cual es la estacion de BiciMAD mas cercana a Sol con bicis disponibles?"
  • "Como esta la calidad del aire en Chamberi ahora mismo?"
  • "Compara Retiro, Centro y Salamanca en calidad medioambiental"
  • "Que distrito de Madrid tiene mas zonas verdes por habitante?"
  • "Hay alguna incidencia en la linea 27 de EMT?"
  • "Cuantas bicis hay disponibles en BiciMAD cerca de Sol?"
  • "Como es el trafico en Madrid ahora?"
  • "Cual es el ranking de distritos por Indice Verde?"
  • "Muestrame los niveles de ruido en Paseo de Recoletos en el ultimo ano"

El asistente usara las herramientas del MCP para consultar datos reales y responderte.


Instalacion paso a paso

Requisito

No necesitas clonar ni compilar nada. npx descarga y ejecuta el servidor automaticamente.

Claude Desktop

  1. Abre Claude Desktop
  2. Ve a Claude (menu superior) > Settings > Developer > Edit Config
  3. Se abrira un archivo JSON. Anade "mcpServers" para que quede asi:
{
  "mcpServers": {
    "madridverde": {
      "command": "npx",
      "args": ["madridverde-mcp"]
    }
  }
}

Si el archivo ya tenia contenido (por ejemplo "preferences"), anade "mcpServers" al mismo nivel, separado por coma:

{
  "preferences": {
    "menuBarEnabled": false
  },
  "mcpServers": {
    "madridverde": {
      "command": "npx",
      "args": ["madridverde-mcp"]
    }
  }
}
  1. Guarda el archivo y reinicia Claude Desktop (cierra y abre la app)
  2. En la ventana de chat veras un icono de herramientas (martillo) — al pulsarlo deberian aparecer las 8 herramientas de MadridVerde

Claude Code

claude mcp add madridverde npx madridverde-mcp

Cursor

  1. Ve a Settings (Cmd+,) > busca MCP
  2. Anade un servidor con comando npx y argumento madridverde-mcp

Windsurf

  1. Ve a Settings > MCP Servers > Add Server
  2. Comando: npx, argumento: madridverde-mcp

ChatGPT y otros asistentes

ChatGPT no soporta MCP de forma nativa por ahora. Alternativas:


Herramientas disponibles

| Herramienta | Que consulta | Actualizacion | |-------------|-------------|:---:| | get_air_quality | NO2, PM2.5, PM10, O3 por estacion o distrito | Cada 20 min | | get_noise_levels | Niveles de ruido LAeq dB — historico mensual desde 1998 | Estatico | | get_green_areas | Arboles, zonas verdes, reciclaje, paradas EMT por distrito | Estatico | | get_green_index | Indice Verde (0-100) con 5 sub-indices por distrito | Tiempo real | | compare_districts | Comparacion lado a lado de 2-4 distritos | Tiempo real | | get_bicimad | Disponibilidad de bicis en 636 estaciones BiciMAD | Cada 1 min | | get_traffic | Estado del trafico en ~4.800 sensores viales | Cada 5 min | | get_emt_alerts | Incidencias de autobuses EMT (desvios, obras, eventos) | Tiempo real | | find_district | Resuelve una direccion o lugar al distrito correspondiente | Nominatim | | find_nearby | Paradas EMT y estaciones BiciMAD mas cercanas a una direccion | Tiempo real + estatico |


Fuentes de datos

Todos los datos proceden exclusivamente de fuentes oficiales del Ayuntamiento de Madrid. Ningun endpoint requiere API key.

| Fuente | Que dato | |--------|----------| | ciudadesabiertas.madrid.es | Calidad del aire en tiempo real | | informo.madrid.es | Trafico en tiempo real (~4.800 sensores) | | madrid.publicbikesystem.net | BiciMAD (636 estaciones, GBFS) | | openapi.emtmadrid.es | Alertas EMT en tiempo real (GTFS-RT) | | datos.madrid.es | Ruido, arbolado, zonas verdes, reciclaje, demograficos | | datos.emtmadrid.es | Paradas y lineas de autobus (GTFS) |


Sobre MadridVerde

Este MCP es parte de MadridVerde, un dashboard que transforma 16+ datasets abiertos del Ayuntamiento de Madrid en un Indice Verde por distrito.

Proyecto presentado a los II Premios a la Reutilizacion de Datos Abiertos del Ayuntamiento de Madrid 2026.


Licencia

MIT — (c) iMark Apps