DNDzgz MCP Server

by danilat

Integrations

  • The repository is hosted on GitHub and can be cloned from there for installation.

  • Used for dependency management and running the application.

DNDzgz MCP 服务器

这是一个 MCP(模型上下文协议)服务器,提供有关萨拉戈萨电车系统的信息,包括使用DNDzgz API 的实时电车到达估计和车站信息。

安装

  1. 克隆存储库:
git clone https://github.com/danilat/mcp-dndzgz.git cd mcp-dndzgz
  1. 安装依赖项:
npm install

运行应用程序

添加具有有效 Google Maps API 密钥的环境变量

GOOGLE_MAPS_API_KEY=your-api-key

要启动服务器:

npm start

或者在您的 MCP 客户端中配置,例如:

{ "mcpServers": { "dndzgz": { "command": "node", "args": [ "/Users/danilat/workspace/mcp-dndzgz/index.js" ], "env": { "GOOGLE_MAPS_API_KEY": "your-api-key" } } } }

服务器将启动并连接到 MCP 传输层。

可用工具

该服务器提供以下工具:

  1. zaragoza-tram-estimations :获取特定电车站的实时到达估计时间
    • 参数:
      • station (编号):电车站的ID
    • 返回:包含两个方向预计到达时间的 JSON
  2. zaragoza-tram-stations :获取萨拉戈萨所有电车站的列表
    • 参数:
      • latitude (数字):按接近度对车站进行排序的纬度
      • longitude (数字):按接近度对车站进行排序的经度
    • 返回:包含站点信息(包括位置、名称和 ID)的 JSON
  3. zaragoza-bus-stops :获取萨拉戈萨的所有公交车站
    • 参数:
      • latitude (数字):按接近度对站点进行排序的纬度
      • longitude (数字):按接近度对站点进行排序的经度
    • 返回:包含公交车站位置、名称、ID 和线路的 JSON
  4. zaragoza-bus-estimations :获取特定公交车站的实时到达估计信息
    • 参数:
      • stop (数字):公交车站的ID
    • 返回:JSON,其中包含该站点每条线路的预计到达时间
  5. zaragoza-bizi-stations :获取萨拉戈萨所有 Bizi 站(公共自行车租赁服务)
    • 参数:
      • latitude (数字):按接近度对车站进行排序的纬度
      • longitude (数字):按接近度对车站进行排序的经度
    • 返回:包含 Bizi 站位置、名称和 ID 的 JSON
  6. zaragoza-bizi-estimations :获取 Bizi 车站的实时自行车和空位情况
    • 参数:
      • station (number): 笔子站的ID
    • 返回:包含自行车和停车位可用性的 JSON
  7. google-maps-link :获取特定位置的 Google 地图链接
    • 参数:
      • latitude (数字):位置的纬度
      • longitude (数字):位置的经度
    • 返回:显示指定位置的 Google 地图 URL
  8. geolocation-from-address获取地理位置(纬度和经度)以及找到的格式化地址
    • 参数:
      • address (字符串):要定位的地址(例如,“西班牙萨拉戈萨圣弗朗西斯科广场”)
    • 返回:包含纬度、经度、置信度和格式化地址的 JSON

依赖项

  • @modelcontextprotocol/sdk: ^1.9.0

例子

这是使用 Claude Desktop 的示例截图

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

MCP 服务器通过 DNDzgz API 提供有关萨拉戈萨电车系统的实时信息,包括到达时间估计和车站详情。

  1. 安装
    1. 运行应用程序
      1. 可用工具
        1. 依赖项
          1. 例子

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              A Claude Desktop MCP server that helps you track flights in real-time using Flightradar24 data. Perfect for aviation enthusiasts, travel planners, or anyone curious about flights overhead!
              Last updated -
              2
              12
              JavaScript
              MIT License
              • Apple
            • -
              security
              A
              license
              -
              quality
              A lightweight mcp server that tells you exactly where you are.
              Last updated -
              Python
              MIT License
            • -
              security
              A
              license
              -
              quality
              A lightweight mcp server that tells you exactly what time is it based on your IP.
              Last updated -
              3
              Python
              MIT License

            View all related MCP servers

            ID: by1hug3b26