MCP Public Transport MCP Server

A Model Context Protocol server for Singapore transport data with real-time information and routing

Local serverstdioTypeScript

What is the MCP Public Transport MCP server?

MCP Public Transport MCP server exists for a simple reason — assistants are far more useful when they can act on MCP Public Transport directly instead of describing what you should do. A Model Context Protocol server for Singapore transport data with real-time information and routing.

What you get

As the creator of this project, I, Siva (Sivasubramanian Ramanathan), developed this comprehensive Singapore Location Intelligence Platform to explore the capabilities of the Model Context Protocol (MCP). My goal was to test how MCP could be leveraged to help AI accurately plan routes, while also showcasing my ability to work with various APIs and my expertise in the technologies involved.

Setting it up

The server ships on npm as @siva-sub/mcp-public-transport, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

What the assistant can call

Once MCP Public Transport is connected, these are the calls the assistant has available:

  • Real — time Data**: Rainfall, temperature, humidity, wind speed
  • Location-based — Weather conditions for specific route segments
  • Installation — The Installation tool exposed by this server
  • Building — The Building tool exposed by this server
  • Testing — The Testing tool exposed by this server

Configuration and credentials

You will need 4 environment variables: LTA_ACCOUNT_KEY, ONEMAP_TOKEN, ONEMAP_EMAIL, ONEMAP_PASSWORD. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the mcp public transport mcp server does with a few real requests.

Choosing this one

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. MCP Public Transport's toolset — Real, Location-based, Installation and 2 more — is a fair guide to whether it matches your workflow. It is maintained by siva-sub; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against MCP Public Transport's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
Realtime Data**: Rainfall, temperature, humidity, wind speed
Location-basedWeather conditions for specific route segments
InstallationThe Installation tool exposed by this server.
BuildingThe Building tool exposed by this server.
TestingThe Testing tool exposed by this server.

How to install the MCP Public Transport MCP server

{
  "mcpServers": {
    "public-transport": {
      "command": "npx",
      "args": ["-y", "@siva-sub/mcp-public-transport"],
      "env": {
        "LTA_ACCOUNT_KEY": "your-value",
        "ONEMAP_TOKEN": "your-value",
        "ONEMAP_EMAIL": "your-value",
        "ONEMAP_PASSWORD": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
LTA_ACCOUNT_KEYCredential the server authenticates with.Yes
ONEMAP_TOKENCredential the server authenticates with.Yes
ONEMAP_EMAILConfiguration value read at startup.Optional
ONEMAP_PASSWORDConfiguration value read at startup.Optional

Example prompts to try

  • Use MCP Public Transport to Real.
  • Use MCP Public Transport to Location-based.
  • Use MCP Public Transport to Installation.

Frequently asked questions

It connects MCP Public Transport to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (Real, Location-based, Installation, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP Public Transport directly.