KMB Bus — Claude Code MCP server: Hong Kong bus schedules and routes
KMB Bus — an MCP server for querying KMB and Long Win Bus routes and real-time arrival times in Hong Kong. Supports English and Traditional Chinese — useful when your agent answers questions about schedules and bus routes.
Apache-2.0 2,125 installs ★ 4 updated 2025-08-29
claude mcp add --transport http mcp-hkbus https://mcp_hkbus--kennyckk.run.toolsWhat KMB Bus does
The server connects models to the official KMB/LWB API through five tools: find next bus at a stop, search routes to a destination, get all stops on a route, search stops by name, and list all routes at a stop. Requests are cached to reduce API load.
Requires Python 3.10 and the uv package manager. Install on Claude Code in one command via Smithery, or on other platforms by adding the remote server URL https://mcp_hkbus--kennyckk.run.tools to your IDE config. The server relies on KMB/LWB open data — keep API rate limits in mind.
What it helps with
- find the next bus arrival time at a specific stop
- list all routes serving a destination
- show every stop along a route
- search for a bus stop by name
- find which routes pass through a stop
Example prompts for the agent
- What buses go to Kowloon Railway Station?
- When is the next bus arriving at Central?
- Show me all routes passing through Causeway Bay
How to install KMB Bus
Platform CLI: remote server
claude mcp add --transport http mcp-hkbus https://mcp_hkbus--kennyckk.run.toolsPlatform CLI: remote server
codex mcp add kmb-bus --url https://mcp_hkbus--kennyckk.run.toolsConfig file
{
"mcpServers": {
"kmb-bus": {
"url": "https://mcp_hkbus--kennyckk.run.tools"
}
}
}Config file
{
"servers": {
"kmb-bus": {
"type": "http",
"url": "https://mcp_hkbus--kennyckk.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http kmb-bus https://mcp_hkbus--kennyckk.run.toolsStep 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 KMB Bus
How do I install KMB Bus in Claude Code?
Run npx -y @smithery/cli install @kennyckk/mcp_hkbus --client claude. The server installs automatically.
What does KMB Bus do?
It gives your agent access to real-time Hong Kong KMB and Long Win Bus schedules and routes. Your agent can search for routes, stops, arrival times, and list all buses serving a specific stop.
What do I need for manual installation?
Python 3.10 or later and the uv package manager. Clone the repository, run uv sync, then add the server to your IDE config using the remote URL.