TfNSW 实时警报 MCP 服务器
新南威尔士州交通局 (TfNSW) 实时警报 API 的模型上下文协议服务器。该服务器提供通过大型语言模型访问实时交通警报和信息并进行交互的工具。
概述
这款基于 TypeScript 的 MCP 服务器实现了与新南威尔士州交通局实时警报系统的集成。它使 AI 助手能够访问新南威尔士州交通网络中有关交通中断、规划工程和其他重要警报的最新信息。
特征
资源
- 通过
nsw-transport://
URI 列出并访问运输警报 - 按交通方式(公共汽车、火车、渡轮等)过滤警报
- 纯文本格式,方便人工智能助手使用
工具
get-transport-alerts
- 检索当前运输警报- 按运输方式过滤
- 返回格式化的警报信息,包括受影响的路线、时间段和影响细节
提示
transport-disruption-summary
- 生成当前传输警报的摘要- 包含相关警报详细信息作为嵌入资源
- 返回 LLM 对主要中断进行总结的结构化提示
交通方式
支持以下传输模式:
all
- 所有运输方式buses
- 悉尼地铁和外城地铁巴士服务ferries
- 悉尼渡轮和纽卡斯尔交通渡轮lightrail
- 轻轨服务metro
- 悉尼地铁nswtrains
- 新南威尔士州火车公司区域列车和客车regionbuses
- 区域巴士服务sydneytrains
- 悉尼郊区和城际列车网络
验证
此服务器需要通过 TfNSW 开放数据 API 进行身份验证。您需要在TfNSW 开放数据中心注册一个 API 密钥。
安装
要与 Claude Desktop 一起使用,请添加服务器配置:
在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json
在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json
将"your_api_key_here"
替换为来自TfNSW 开放数据中心的 TfNSW API 密钥。
发展
将您的 API 密钥配置为.env
文件中的环境变量:
安装依赖项:
构建服务器:
对于使用自动重建的开发:
调试
您可以使用MCP Inspector进行调试,它可以作为包脚本使用:
检查器将提供一个 URL 来访问浏览器中的调试工具。
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
该服务器使大型语言模型能够访问并与新南威尔士州交通网络的实时运输警报进行交互,支持按运输方式进行过滤并返回有关中断和计划工作的格式化警报信息。
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityEnables Large Language Models to access real-time data on Vilnius public transport stops and routes through the Model Context Protocol.Last updated -21Python
- -securityAlicense-qualityA Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.Last updated -324288JavaScriptMIT License
- -securityAlicense-qualityAn MCP service for interacting with Transport NSW's API that enables users to find transport stops around locations and retrieve information about transport alerts and disruptions.Last updated -PythonMIT License
- -securityAlicense-qualityA Model Context Protocol server enabling AI systems to send real-time notifications to phones, desktops, and other devices through the ntfy publish/subscribe service.Last updated -108TypeScriptApache 2.0