Singapore MCP
🇸🇬 Singapore MCP
面向新加坡公共数据和服务的开源 Model Context Protocol 服务器。
由 Olano 在新加坡构建和维护。
这是一个独立的社区项目。它与新加坡政府或任何政府机构均无关联,未获其认可,也不是其官方产品。
包
包 | 覆盖范围 | 凭据 |
| 所有工具及跨机构工具 | 取决于工具 |
| 数据集目录、行、实时数据流 | 可选 API 密钥 |
| 地址搜索、反向地理编码、路线规划 | OneMap 令牌 |
| 公交到站、交通、停车、出租车 | DataMall 密钥 |
| 预报、读数、降雨量、PSI | 可选 API 密钥 |
所有包均支持本地 stdio 和 Streamable HTTP 传输。
Related MCP server: Gahmen MCP Server
快速开始
通过 stdio 运行完整的新加坡套件:
npx @olano/mcp-singapore或运行一个专注的服务器:
npx @olano/mcp-onemap
npx @olano/mcp-weather通过 Streamable HTTP 运行聚合服务器:
npx @olano/mcp-singapore --transport http --host 127.0.0.1 --port 3000MCP 端点为 http://127.0.0.1:3000/mcp。默认绑定地址为 localhost。任何面向互联网的部署都应在前面配置身份验证和 TLS。
客户端配置
将聚合服务器添加到接受通用 mcpServers JSON 格式的客户端:
{
"mcpServers": {
"singapore": {
"command": "npx",
"args": ["-y", "@olano/mcp-singapore"],
"env": {
"DATA_GOV_SG_API_KEY": "optional-data-gov-key",
"ONEMAP_TOKEN": "your-onemap-token",
"LTA_DATAMALL_API_KEY": "optional-lta-account-key"
}
}
}
}删除未使用的环境变量。切勿提交真实凭据。
工具
工具名称带有命名空间且保持稳定:
datagov_list_datasets、datagov_get_dataset_metadata、datagov_list_dataset_rowsdatagov_get_realtimeonemap_search、onemap_reverse_geocode、onemap_routelta_bus_arrivals、lta_list_bus_stops、lta_traffic_incidentslta_traffic_images、lta_carpark_availability、lta_taxi_availabilityweather_two_hour_forecast、weather_twenty_four_hour_forecastweather_four_day_outlook、weather_temperature、weather_rainfall、weather_air_qualitysingapore_location_brief
服务器为只读。输入使用 Zod 验证,上游来源和 API 路径在代码中固定,请求具有超时和响应大小限制,瞬时请求会重试,GET 响应会短暂缓存。上游调用按提供方客户端进行起始速率限制,以避免对公共服务造成突发请求。
凭据
变量 | 用途 |
| 可选的 data.gov.sg 密钥,用于更高限额和生产支持 |
| 用于 OneMap API 操作的 OneMap 持有者令牌 |
| LTA DataMall 订阅者账户密钥 |
LTA 动态 API 需要注册。OneMap API 需要 OneMap 账户和令牌。公共 data.gov.sg 实时端点无需密钥即可测试,但生产用户应获取密钥。
数据来源与归属
API 可用性、数据准确性、速率限制和上游条款由各自提供方控制。使用返回数据的应用程序必须遵守相关来源条款和归属要求。
开发
npm install
npm run format:check
npm run lint
npm test
npm run build使用官方 MCP Inspector 进行交互式测试:
npx @modelcontextprotocol/inspector node packages/singapore/dist/cli.js路线图
基于已记录的公共数据集,推出重点 HDB 和 URA 包
ACRA 公共公司数据发现,受数据集条款和实际分页限制
更多跨机构、社区、出行和商业位置工具
托管认证端点和 MCP Registry 发布
与新加坡统计局官方 MCP 互操作,而非重复实现
许可证
源代码根据 MIT 许可证发布。政府数据仍受各来源机构发布的许可证和条款约束。
This server cannot be deployed
Maintenance
Related MCP Connectors
data.gov.sg MCP — Singapore open data + real-time environment/transport feeds
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
Provide real-time transportation data including bus arrivals, train service alerts, carpark availa…
Singapore property & financial data APIs for AI agents. 27 MCP tools. x402 micropayments.
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 access to Singapore's data.gov.sg government datasets and collections, enabling search, metadata retrieval, and dataset downloads through the CKAN datastore API.3MIT
- AlicenseNot gradedqualityBmaintenanceEnables access to Singapore government open data and real-time environment/transport feeds including weather, air quality, taxi availability, and traffic incidents.250 npmMIT
- FlicenseAqualityDmaintenanceProvides real-time access to Singapore's Land Transport Authority data, including bus arrivals, traffic conditions, train updates, and carpark availability.7-