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

mcp-stm-montevideo

v0.1.7

Published

MCP server for Montevideo's public bus network (STM) — consult stop schedules, routes and arrivals / Servidor MCP para el sistema de transporte de Montevideo

Readme

mcp-stm-montevideo

ES: Servidor MCP para el Sistema de Transporte Metropolitano (STM) de Montevideo, Uruguay. Permite que los LLMs respondan preguntas sobre horarios, recorridos y paradas del transporte público.

EN: MCP server for Montevideo's Metropolitan Transit System (STM). Lets LLMs answer questions about bus schedules, routes, and stops in real time.

Landing: landing.stm.paltickets.uy · API: stm.paltickets.uy


Instalación / Installation

npx mcp-stm-montevideo

Los datos se descargan automáticamente desde los datos abiertos de la Intendencia de Montevideo (CKAN). La primera ejecución tarda ~60s mientras descarga y cachea en disco (~/.cache/mcp-stm-montevideo/). Las ejecuciones siguientes cargan desde el caché en ~2s. El servidor pre-carga los datos al iniciar para que la primera consulta sea instantánea.

Data downloads automatically from Montevideo's open data portal (CKAN). First run takes ~60s to download and cache to disk (~/.cache/mcp-stm-montevideo/). Subsequent runs load from disk cache in ~2s. The server warms up data on startup so the first query is instant.


Configuración / Configuration

Claude Desktop

Agrega esto a ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) o %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "stm-montevideo": {
      "command": "npx",
      "args": ["-y", "mcp-stm-montevideo"]
    }
  }
}

Cursor

En .cursor/mcp.json:

{
  "mcpServers": {
    "stm-montevideo": {
      "command": "npx",
      "args": ["-y", "mcp-stm-montevideo"]
    }
  }
}

Claude Code

En .mcp.json en la raíz de tu proyecto:

{
  "mcpServers": {
    "stm-montevideo": {
      "command": "npx",
      "args": ["-y", "mcp-stm-montevideo"]
    }
  }
}

Herramientas disponibles / Available Tools

| Herramienta | Descripción | |-------------|-------------| | buscar_parada | Busca paradas cercanas a una dirección, intersección o coordenadas GPS | | proximos_buses | Muestra los próximos ómnibus que pasan por una parada | | recorrido_linea | Muestra el recorrido completo de una línea con todas sus paradas | | ubicacion_bus | Posición en tiempo real de una línea (cuando esté disponible) | | como_llegar | Calcula la mejor ruta en transporte público entre dos puntos |


REST API

El servidor expone una API REST además del protocolo MCP. Base URL: https://stm.paltickets.uy

The server exposes a REST API alongside the MCP protocol. Base URL: https://stm.paltickets.uy

| Endpoint | Método | Descripción | |----------|--------|-------------| | /api/paradas/buscar | GET | Buscar paradas cercanas / Search nearby stops | | /api/buses/proximos | GET | Próximos ómnibus en una parada / Next buses at a stop | | /api/lineas/:numero/recorrido | GET | Recorrido de una línea / Line route | | /api/buses/:linea/ubicacion | GET | Ubicación GPS de una línea / Line GPS location | | /api/como-llegar | POST | Calcular ruta entre dos puntos / Route between two points | | /api/health | GET | Estado del servidor / Server health | | /api/docs | GET | Swagger UI interactivo / Interactive Swagger UI | | /api/openapi.yaml | GET | Especificación OpenAPI 3.1 / OpenAPI 3.1 spec |


MCP remoto / Remote MCP

Endpoint: https://stm.paltickets.uy/mcp (Streamable HTTP, stateless)

Para usar el MCP remoto en Claude Desktop o Claude.ai, usa "url" en vez de "command":

To use remote MCP in Claude Desktop or Claude.ai, use "url" instead of "command":

{
  "mcpServers": {
    "stm-montevideo": {
      "url": "https://stm.paltickets.uy/mcp"
    }
  }
}

ChatGPT Actions

La API sirve como backend para GPTs de ChatGPT mediante Actions. Apunta a la especificación OpenAPI en https://stm.paltickets.uy/api/openapi.yaml al configurar el GPT.

The API serves as a backend for ChatGPT GPTs via Actions. Point to the OpenAPI spec at https://stm.paltickets.uy/api/openapi.yaml when configuring the GPT.


Ejemplos de uso / Usage Examples

¿Cuándo pasa el próximo 181?

"¿A qué hora pasa el próximo 181 por Bv España y Libertad?"

→ buscar_parada(calle1="Bv España", calle2="Libertad")
→ proximos_buses(parada_id=..., linea="181")

¿Qué líneas pasan cerca?

"¿Qué líneas de ómnibus pasan cerca de Tres Cruces?"

→ buscar_parada(latitud=-34.893, longitud=-56.163, radio_metros=300)

¿Cómo llego en bondi?

"¿Cómo llego de Ciudad Vieja a Pocitos en ómnibus?"

→ como_llegar(origen_calle1="Ciudad Vieja", destino_calle1="Pocitos")

Ver el recorrido completo de una línea

"¿Cuáles son todas las paradas de la línea D10?"

→ recorrido_linea(linea="D10")

Fuentes de datos / Data Sources

Los datos provienen de los Datos Abiertos de la Intendencia de Montevideo:

  • Portal CKANdatos-abiertos.montevideo.gub.uy
  • Dataset horarios: horarios-de-omnibus-urbanos-por-parada-stm
  • Dataset paradas: coordenadas en EPSG:32721 (UTM Zone 21S), convertidas a WGS84
  • Dataset recorridos y líneas: origen/destino de cada variante

Los datos se cachean en disco por 6 meses y en memoria por 1 mes. El caché en disco (~/.cache/mcp-stm-montevideo/) persiste entre reinicios del servidor, eliminando la descarga de ~60s en ejecuciones posteriores.

Data is cached to disk for 6 months and in memory for 1 month. The disk cache (~/.cache/mcp-stm-montevideo/) persists across server restarts, eliminating the ~60s download on subsequent runs.


Desarrollo / Development

git clone https://github.com/chaba11/mcp-stm-montevideo
cd mcp-stm-montevideo
npm install
npm run build
npm run test
npm run lint

Para iniciar la REST API localmente:

To start the REST API locally:

npm run start:api     # producción
npm run dev:api       # desarrollo con hot reload

Para ejecutar los tests de integración con datos reales (requiere internet):

npm run test:integration

Contribuir / Contributing

Los issues y pull requests son bienvenidos. Los bugs encontrados con datos reales son especialmente valiosos.

Issues and pull requests welcome. Bugs found with real data are especially valuable.


Licencia / License

MIT © 2026 chaba11