Skip to main content
Glama
Singapore LTA MCP Server

Singapore LTA MCP Server

by arjunkmrm

新加坡 LTA MCP 服务器

铁匠徽章

新加坡陆路交通管理局 (LTA) DataMall API 的 MCP 服务器,提供实时交通信息,包括公交车到达、交通状况和火车服务更新。

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装新加坡 LTA MCP 服务器:

npx -y @smithery/cli install @arjunkmrm/mcp-sg-lta --client claude

工具

公交车到达

获取特定公交车站的实时公交车到站信息。

输入:

  • busStopCode (字符串,必需):唯一的 5 位数公交车站代码

  • serviceNo (字符串,可选):用于过滤结果的特定公交服务号码

车站拥挤

获取地铁/轻轨站的实时拥挤程度(每 10 分钟更新一次)。

输入:

  • trainLine (字符串,必需):火车网络线路代码

    • 支持的值:CCL、CEL、CGL、DTL、EWL、NEL、NSL、BPL、SLRT、PLRT、TEL

训练警报

获取实时火车服务警报,包括中断和班车服务。

**输入:**无需输入

停车场可用性

获取 HDB、LTA 和 URA 停车场的实时停车位情况(每分钟更新)。

**输入:**无需输入

旅行时间

获取高速公路路段的预计行驶时间(每 5 分钟更新一次)。

**输入:**无需输入

交通事件

获取当前道路事件,包括事故、道路工程和交通拥堵(每 2 分钟更新一次)。

**输入:**无需输入

车站人群预测

以 30 分钟为间隔获取地铁/轻轨站拥挤程度预测。

输入:

  • trainLine (字符串,必需):火车网络线路代码

    • 支持的值:CCL、CEL、CGL、DTL、EWL、NEL、NSL、BPL、SLRT、PLRT、TEL

Related MCP server: Travel Planner MCP Server

配置

获取 API 密钥

  1. 在LTA DataMall上注册账户

  2. 订阅API服务

  3. 从帐户仪表板获取您的 API 密钥

与 Claude Desktop 一起使用

将其添加到您的claude_desktop_config.json中:

{
  "mcpServers": {
    "lta": {
        "command": "npx", 
        "args": [
          "-y", 
          "arjunkmrm/mcp-sg-lta"
        ],
        "env": {
          "LTA_API_KEY": "YOUR-API-KEY"
        }
    }
  }
}

Available Tools

7 tools
bus_arrivalA

Get real-time bus arrival information for a specific bus stop and optionally a specific service number. Returns estimated arrival times, bus locations, and crowding levels.

Inputs: busStopCode (required), serviceNo.

carpark_availabilityA

Get real-time availability of parking lots for HDB, LTA, and URA carparks. Updates every minute.

Inputs: no named parameters.

station_crowd_forecastC

Get forecasted MRT/LRT station crowdedness levels in 30-minute intervals.

Inputs: trainLine (required).

station_crowdingA

Get real-time MRT/LRT station crowdedness level for a particular train network line. Updates every 10 minutes.

Inputs: trainLine (required).

traffic_incidentsA

Get current road incidents including accidents, roadworks, and heavy traffic. Updates every 2 minutes.

Inputs: no named parameters.

train_alertsA

Get real-time train service alerts including service disruptions and shuttle services. Updates when there are changes.

Inputs: no named parameters.

travel_timesA

Get estimated travel times on expressway segments. Updates every 5 minutes.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting different aspects of Singapore's transport system: bus arrivals, carpark availability, station crowd forecasts, real-time station crowding, traffic incidents, train alerts, and travel times. There is no overlap in functionality, making it easy for an agent to select the appropriate tool without confusion.

    Naming Consistency5/5

    All tool names follow a consistent snake_case pattern with clear, descriptive noun-based naming (e.g., bus_arrival, carpark_availability). The naming is uniform throughout, making the tool set predictable and easy to understand at a glance.

    Tool Count5/5

    With 7 tools, this server is well-scoped for its purpose of providing real-time transport information in Singapore. Each tool addresses a specific, valuable aspect of the domain, and there are no extraneous or redundant tools, making the count appropriate and manageable.

    Completeness5/5

    The tool set offers comprehensive coverage of Singapore's transport domain, including bus, train, carpark, traffic, and travel time information. It provides both real-time and forecasted data across key areas, leaving no obvious gaps for agents to encounter dead ends in typical transport-related queries.

    Related MCP Connectors

    Related MCP Servers