PakBus — MCP server for Claude Code: routes and setup
PakBus gives AI assistants access to bus and metro routes in Pakistani cities, including stop locations, fares, departure times and service alerts.
claude mcp add --transport http pakbus https://pakbus.app/mcpWhat PakBus does
PakBus connects an AI coding assistant to public transport information across Pakistani cities. It can locate stops by name, map out a journey with directions and fare details, retrieve upcoming departures, and check service changes affecting a city or route. A separate lookup lists the cities covered by its routes.
The remote MCP endpoint is https://pakbus.app/mcp and uses Streamable HTTP. No sign-in is needed, and its tools are read-only. Departure times come from published timetables rather than live vehicle tracking, so the server cannot tell you where a bus is at this moment.
PakBus supports Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed and Gemini CLI. For Claude Code, add it with claude mcp add --transport http pakbus https://pakbus.app/mcp. Your assistant sends the server the locations, search terms and departure time included in your request.
What it helps with
- Plan a trip with directions, a fare and a map
- Find a bus stop or metro station by name
- Check upcoming departures from a selected stop
- Look up a route's fare and ordered stops
- List the cities covered by PakBus
Example prompts for the agent
- Plan a bus trip from Munawar Colony to Pak Secretariat for tomorrow at 8 am.
- Find the next bus departing from Gondal in Attock.
- Check the fare for bus EV5701 and show its stops in order.
How to install PakBus
Platform CLI: remote server
claude mcp add --transport http pakbus https://pakbus.app/mcpPlatform CLI: remote server
codex mcp add pakbus --url https://pakbus.app/mcpConfig file
{
"mcpServers": {
"pakbus": {
"url": "https://pakbus.app/mcp"
}
}
}Config file
{
"servers": {
"pakbus": {
"type": "http",
"url": "https://pakbus.app/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http pakbus https://pakbus.app/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about PakBus
How do I install PakBus in Claude Code?
Run claude mcp add --transport http pakbus https://pakbus.app/mcp. This registers PakBus as a remote HTTP MCP server.
What does PakBus do?
It lets an AI assistant query bus and metro information in Pakistani cities. You can look up stops, plan journeys, check fares and view scheduled departures.
Does PakBus provide live bus tracking?
No. Departure information is based on published timetables, not live vehicle positions.