Skip to main content
Glama

TfNSW Realtime Alerts MCP Server

by piddlingtuna

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

{ "mcpServers": { "tfnsw-realtime-alerts": { "command": "npx", "args": [ "-y", "tfnsw-realtime-alerts-mcp-server" ], "env": { "NSW_TRANSPORT_API_KEY": "your_api_key_here" } } } }

"your_api_key_here"替换为来自TfNSW 开放数据中心的 TfNSW API 密钥。

发展

将您的 API 密钥配置为.env文件中的环境变量:

NSW_TRANSPORT_API_KEY="your_api_key_here"

安装依赖项:

npm install

构建服务器:

npm run build

对于使用自动重建的开发:

npm run watch

调试

您可以使用MCP Inspector进行调试,它可以作为包脚本使用:

npm run inspector

检查器将提供一个 URL 来访问浏览器中的调试工具。

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。

-
security - not tested
A
license - permissive license
-
quality - not tested

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.

该服务器使大型语言模型能够访问并与新南威尔士州交通网络的实时运输警报进行交互,支持按运输方式进行过滤并返回有关中断和计划工作的格式化警报信息。

  1. 概述
    1. 特征
      1. 资源
      2. 工具
      3. 提示
    2. 交通方式
      1. 验证
        1. 安装
          1. 发展
            1. 调试
          2. 执照

            Related MCP Servers

            • A
              security
              F
              license
              A
              quality
              Enables Large Language Models to access real-time data on Vilnius public transport stops and routes through the Model Context Protocol.
              Last updated -
              2
              1
              Python
            • -
              security
              A
              license
              -
              quality
              A 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 -
              324
              288
              JavaScript
              MIT License
              • Apple
            • -
              security
              A
              license
              -
              quality
              An 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 -
              Python
              MIT License
            • -
              security
              A
              license
              -
              quality
              A 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 -
              10
              8
              TypeScript
              Apache 2.0
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/piddlingtuna/tfnsw-realtime-alerts-mcp-server'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server