Singapore Bus MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Singapore Bus MCP Serverwhat buses are arriving at stop 83139?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Singapore Bus MCP Server
A Model Context Protocol (MCP) server that provides real-time Singapore bus information using the LTA DataMall API.
Features
This MCP server exposes 4 tools:
Tool | Description |
| Get real-time bus arrival times for a specific bus stop |
| Get the full route information for a specific bus service |
| Search for bus stops by name, road name, or landmark |
| Get detailed information about a specific bus stop |
Related MCP server: Malaysia Transit MCP
Deployment to Vercel
Option 1: Deploy via GitHub (Recommended)
Push to GitHub:
git init git add . git commit -m "Initial commit" git remote add origin https://github.com/YOUR_USERNAME/sg-bus-mcp-server.git git push -u origin mainConnect to Vercel:
Go to vercel.com
Click "Add New Project"
Import your GitHub repository
Add the environment variable:
Name:
LTA_DATAMALL_KEYValue: Your LTA DataMall API key
Click "Deploy"
Option 2: Deploy via Vercel CLI
Install Vercel CLI:
npm i -g vercelDeploy:
vercelAdd environment variable:
vercel env add LTA_DATAMALL_KEY
Local Development
Install dependencies:
npm installSet up environment variables:
cp .env.example .env.local # Edit .env.local with your API keyRun the development server:
npm run devTest with MCP Inspector:
npx @modelcontextprotocol/inspector@latest http://localhost:3000
Connecting to Your MCP Server
After deployment, add this to your MCP client configuration (e.g., Claude Desktop, Cursor):
{
"mcpServers": {
"sg-bus": {
"url": "https://your-deployment-url.vercel.app/api/mcp"
}
}
}Example Usage
Once connected, you can ask your AI assistant questions like:
"What buses are arriving at bus stop 83139?"
"Search for bus stops near Orchard"
"What's the route for bus 15?"
"Tell me about bus stop 01012"
Data Source
Bus data is provided by the LTA DataMall API.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Get real-time bus arrival times for any Singapore bus stop by code, with optional service filterin…
Provide real-time transportation data including bus arrivals, train service alerts, carpark availa…
Real-time transit stops, routes, arrivals, vehicle positions, and schedules via OneBusAway APIs.
Get real-time NYC bus arrivals, live vehicle locations, and service alerts. Plan trips between any…
Related MCP Servers
- FlicenseAqualityNot gradedmaintenanceFacilitates real-time access to Singapore's Land Transport Authority (LTA) transportation data, offering insights into bus arrivals, train services, traffic conditions, and more through integration with the LTA DataMall API.473-
- AlicenseNot gradedqualityDmaintenanceProvides 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.3MIT
- AlicenseBqualityDmaintenanceProvides comprehensive Singapore transport routing with real-time public transport data, weather-aware journey planning, postal code resolution, and Google Maps-quality turn-by-turn navigation across MRT, LRT, buses, and walking routes.1311 npm6MIT
- FlicenseAqualityDmaintenanceProvides real-time access to Singapore's Land Transport Authority data, including bus arrivals, traffic conditions, train updates, and carpark availability.7-