Skip to main content
Glama

DNDzgz MCP Server

by danilat

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 的示例截图

使用 Claude Desktop 的示例屏幕截图,以西班牙语询问获取 Romareda 站的电车估算值

-
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

            • -
              security
              F
              license
              -
              quality
              An MCP server providing timezone conversions and time-related operations via RESTful API endpoints, featuring comprehensive error handling and timezone database integration.
              Last updated 5 months ago
              Python
            • A
              security
              A
              license
              A
              quality
              A server that connects to SK TMAP API, providing access to public transit routing and geocoding functionality through a standardized interface.
              Last updated 3 months ago
              2
              Python
              MIT License
            • -
              security
              F
              license
              -
              quality
              An MCP Server that enables interaction with Maharashtra's Motor Vehicle Department API, allowing users to access transportation-related services through natural language requests.
              Last updated 6 days ago
              Python

            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/danilat/mcp-dndzgz'

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