MCP server for São Paulo SPTrans Olho Vivo API - bus lines, stops, positions, and arrival predictions.
-
Get your SPTrans API token from SPTrans Developer Portal
-
Add to Claude Desktop config (
~/Library/Application Support/Claude/claude_desktop_config.jsonon macOS and~/.config/Claude/claude_desktop_config.jsonon Linux):
{
"mcpServers": {
"sptrans": {
"command": "go",
"args": ["run", "/path/to/sptrans-mcp/main.go"],
"env": {
"SPTRANS_PAT": "your_api_token_here"
}
}
}
}search_lines- Find bus lines by name/numbersearch_stops- Find bus stops by name/addressget_stops_by_line- Get stops for a specific lineget_vehicle_positions- Get real-time vehicle positionsget_arrival_predictions- Get bus arrival predictions