buses-near-place
Uses SerpApi's Google Maps API to resolve a place name to location details, enabling the server to find nearby bus stops and live bus arrival information for that place.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Find live buses near any place in Malaysia
Type a place name and get the nearest bus stops with live arrival times. It uses SerpApi's Google Maps API to find the place and the Malaysia Transit API for the buses. Node.js, under 200 lines with comments, plus an MCP tool so AI assistants can use it too.
The full walkthrough is in TUTORIAL.md. You can also read it on the web.
Quick start
You need Node.js 22.9 or newer.
npm install
cp .env.example .env # then paste your two keys into .env
npm start -- "Kek Lok Si Temple" --area penangKey | Where to get it | Cost |
| Free plan: 250 searches a month | |
| Free |
Each lookup uses one SerpApi search and one Malaysia Transit API call. Add --json to see the raw result.
Example (22 Nov 2026; live times change):
Kek Lok Si Temple (4.4 stars, 15,511 reviews)
Kek Lok Si Temple, 86s, Jln Balik Pulau, 11500 Ayer Itam, Pulau Pinang, Malaysia
Nearest stop: Klinik Desa Paya Terubong, 442 m away
Next buses:
- 201 (JETI - PAYA TERUBONG - JETI): 11, 30, 33 and 35 min
Other stops nearby: Ambank Paya Terubong (477 m)Areas: klang-valley, penang, kangar, alor-setar, kota-bharu, kuala-terengganu, melaka, johor, kuching, ipoh, seremban, kuantan
Related MCP server: Singapore Bus MCP Server
Use it from an AI assistant (MCP)
mcp-server.js exposes one tool, find_buses_near_place. Add it to your MCP client's config, for example in Claude Desktop:
{
"mcpServers": {
"buses-near-place": {
"command": "node",
"args": ["/full/path/to/serpapi-malaysia-transit/mcp-server.js"],
"env": {
"SERPAPI_API_KEY": "your-serpapi-key",
"MALAYSIA_TRANSIT_API_KEY": "your-malaysia-transit-key"
}
}
}
}Check it works with npm run test:mcp, which lists the tools for free. npm run test:mcp -- "Kek Lok Si Temple" penang also calls the tool once.
Files
src/transit.js: the two API calls and the answer formattingindex.js: the command-line toolmcp-server.js: the MCP tooltest-mcp.js: a self-test for the MCP tool
License
MIT, see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Routing, geocoding, places, matrix and map tools for location-aware AI workflows.
Live Google Maps business search, review, and photo data for AI agents over MCP.
Geocoding, routing, isochrones, traffic, weather, and place search for AI agents. 19 MCP tools.
Free web search, 130M+ business records, local search, weather and travel data for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides real-time bus and train information across 10+ cities in Malaysia, including live vehicle tracking, arrival predictions, stop search, and route discovery for public transit systems.4MIT
- FlicenseNot gradedqualityDmaintenanceProvides real-time Singapore bus information, including arrival times, routes, and stop details via the LTA DataMall API.1-
- AlicenseNot gradedqualityBmaintenanceEnables real-time Singapore bus arrival lookups, bus stop search, and nearby stop discovery through plain-language queries.MIT

transcapi-mcpofficial
AlicenseAqualityBmaintenanceConnects AI assistants to live public transport data across Great Britain, enabling searches for stops and stations, real-time bus and rail departures, live vehicle positions, service disruptions, and door-to-door journey planning. All tools are read-only and require an API key.10MIT