mcp-sg-lta 新加坡陆路交通数据工具
促进实时访问新加坡陆路交通管理局(LTA)的交通数据,通过与LTA DataMall API的集成,提供有关公交车到站、地铁服务、交通状况等更多内容的洞察。
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"lta": {
"args": [
"-y",
"arjunkmrm/mcp-sg-lta"
],
"command": "npx",
"env": {
"LTA_API_KEY": "YOUR-API-KEY"
}
}
}
}
该服务需要配置环境变量:LTA_API_KEY
可用工具 (7 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
bus_arrival 2 个参数 需填 1 项
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.
必填参数:busStopCode
station_crowding 1 个参数 需填 1 项
Get real-time MRT/LRT station crowdedness level for a particular train network line. Updates every 10 minutes.
必填参数:trainLine
train_alerts
Get real-time train service alerts including service disruptions and shuttle services. Updates when there are changes.
该工具无需必填参数,直接调用即可
carpark_availability
Get real-time availability of parking lots for HDB, LTA, and URA carparks. Updates every minute.
该工具无需必填参数,直接调用即可
travel_times
Get estimated travel times on expressway segments. Updates every 5 minutes.
该工具无需必填参数,直接调用即可
traffic_incidents
Get current road incidents including accidents, roadworks, and heavy traffic. Updates every 2 minutes.
该工具无需必填参数,直接调用即可
station_crowd_forecast 1 个参数 需填 1 项
Get forecasted MRT/LRT station crowdedness levels in 30-minute intervals.
必填参数:trainLine
服务介绍
新加坡 LTA MCP 服务器
这是一个为新加坡陆路交通管理局(LTA)DataMall API 提供的MCP服务器,提供包括公交到达时间、交通状况以及列车服务更新等实时交通信息。
通过 Smithery 安装
要通过 Smithery 自动安装适用于 Claude 桌面的新加坡 LTA MCP 服务器:
npx -y @smithery/cli install @arjunkmrm/mcp-sg-lta --client claude
工具
bus_arrival
获取特定公交站的实时公交到达信息。
输入:
busStopCode(字符串, 必填): 唯一的5位数公交站代码serviceNo(字符串, 可选): 特定的公交线路号以过滤结果
station_crowding
获取地铁/轻轨车站的实时拥挤程度(每10分钟更新一次)。
输入:
trainLine(字符串, 必填): 列车网络线路代码- 支持的值:CCL, CEL, CGL, DTL, EWL, NEL, NSL, BPL, SLRT, PLRT, TEL
train_alerts
获取包括中断和接驳服务在内的实时列车服务警报。
输入: 无需输入
carpark_availability
获取HDB、LTA和URA停车场的实时停车位可用情况(每分钟更新一次)。
输入: 无需输入
travel_times
获取高速公路路段的预计旅行时间(每5分钟更新一次)。
输入: 无需输入
traffic_incidents
获取当前的道路事件,包括事故、道路施工及严重拥堵(每2分钟更新一次)。
输入: 无需输入
station_crowd_forecast
按30分钟间隔预测地铁/轻轨车站的拥挤程度。
输入:
trainLine(字符串, 必填): 列车网络线路代码- 支持的值:CCL, CEL, CGL, DTL, EWL, NEL, NSL, BPL, SLRT, PLRT, TEL
配置
获取 API 密钥
- 在 LTA DataMall 上注册账户
- 订阅API服务
- 从账户仪表板获取您的API密钥
与 Claude 桌面使用
将以下内容添加到您的 claude_desktop_config.json 文件中:
{
"mcpServers": {
"lta": {
"command": "npx",
"args": [
"-y",
"arjunkmrm/mcp-sg-lta"
],
"env": {
"LTA_API_KEY": "YOUR-API-KEY"
}
}
}
}