Skip to main content
Glama

🚌 Porto Alegre Bus MCP Server

MCP server for Porto Alegre's public transportation data. Access bus stops, routes, and real-time information through Claude Desktop or any MCP-compatible client.

Features

  • 🚌 List all bus stops in Porto Alegre

  • 🛣️ Browse available bus routes

  • 📍 Get detailed route information (stops, schedule, path)

  • 📄 Pagination support for large datasets

  • ⚡ Redis caching for improved performance

  • 🌐 HTTP streaming server with stateless architecture

Quick Start

Environment Variables

For local development, create a .env file:

REDIS_URL=redis://localhost:6379 

The command below will start the MCP server along with a Redis instance:

docker-compose up -d

Development Commands

pnpm test        # Run MCP Inspector
pnpm lint        # Run linter
pnpm format      # Format code
pnpm check       # Lint & format check
pnpm check:fix   # Auto-fix issues

Claude Desktop Integration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "poa-bus": {
      "command": "npx",
      "args": ["mcp-remote", "http:localhost:3000/mcp"]
    }
  }
}

Available Tools

Tool

Description

Parameters

stops-fetcher

List all bus stops with pagination

cursor (string, optional)

routes-fetcher

List all bus routes with pagination

cursor (string, optional)

route-details-fetcher

Get route details

routeId (string, required)

Architecture

  • HTTP Server: Express with CORS support on port 3000

  • MCP Protocol: Streamable HTTP transport

  • Caching: Redis integration for API response caching

  • Data Source: Porto Alegre Transport API (poatransporte.com.br)

Contributing

  1. Fork the repository

  2. Create your feature branch

  3. Run pnpm check before committing

  4. Open a Pull Request

Acknowledgments

This project was inspired by and built upon the work of:

These projects provided valuable insights into Porto Alegre's public transportation data structure and API patterns.

License

MIT - See LICENSE

A
license - permissive license
-
quality - not tested
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

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/emiliosheinz/poa-bus-mcp'

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