Skip to main content
Glama
DNDzgz MCP Server
by danilat

DNDzzgz MCP サーバー

これは、 DNDzgz API を使用してリアルタイムの路面電車到着予測や駅情報など、サラゴサ路面電車システムに関する情報を提供する MCP (モデル コンテキスト プロトコル) サーバーです。

インストール

  1. リポジトリをクローンします。

git clone https://github.com/danilat/mcp-dndzgz.git
cd mcp-dndzgz
  1. 依存関係をインストールします:

npm install

Related MCP server: MCP Trenitalia

アプリケーションの実行

有効なGoogleマップ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 : ビジステーションの自転車の空き状況と空きスロットをリアルタイムで確認

    • パラメータ:

      • station (番号):BiziステーションのID

    • 戻り値: 自転車と駐車スペースの空き状況を含むJSON

  7. google-maps-link : 特定の場所の Google マップ リンクを取得します

    • パラメータ:

      • latitude (数値):場所の緯度

      • longitude (数値):場所の経度

    • 戻り値: 指定された場所を示す Google マップの URL

  8. geolocation-from-address : 住所から地理位置情報(緯度と経度)を取得し、見つかったフォーマットされた住所を取得します。

    • パラメータ:

      • address (文字列): 位置情報を取得する住所(例:"Plaza de San Francisco, Zaragoza, Spain")

    • 戻り値: 緯度、経度、信頼度、フォーマットされた住所を含むJSON

依存関係

  • @modelcontextprotocol/sdk: ^1.9.0

例

Claude Desktopを使用した例のスクリーンショットがあります

Claude Desktop を使用して、スペイン語で Romareda 駅の路面電車の所要時間の見積もりを取得する例のスクリーンショット

Available Tools

8 tools
geolocation-from-addressA

Get the geolocation (latitude and longitude) from an address and the formatted address that was found, only for Zaragoza. Can be used to find a bus stops, tram stations or bizi stations

Inputs: address (required).

zaragoza-bizi-estimationsC

Get the estimation of bikes and free slots in a Bizi station in Zaragoza in realtime

Inputs: station (required).

zaragoza-bizi-stationsC

Get all Bizi stations in Zaragoza, the bicycle rental public service

Inputs: latitude (required), longitude (required).

zaragoza-bus-estimationsC

Get the estimation of when a bus arrives to a stop in Zaragoza in realtime

Inputs: stop (required).

zaragoza-bus-stopsC

Get all bus stops in Zaragoza

Inputs: latitude (required), longitude (required).

zaragoza-tram-estimationsC

Get the estimation of when arrives to a tram station in Zaragoza in realtime

Inputs: station (required).

zaragoza-tram-stationsC

Get all tram stations in Zaragoza

Inputs: latitude (required), longitude (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 8 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose with no ambiguity. The tools are organized by transport mode (Bizi, bus, tram) and function (stations/stops vs. estimations), and the geolocation and Google Maps tools serve unique supporting roles. An agent can easily distinguish between them based on their specific targets.

    Naming Consistency5/5

    All tool names follow a consistent pattern of 'zaragoza-[transport]-[function]' or a descriptive prefix like 'geolocation-from-address' and 'google-maps-link'. This verb-noun or noun-noun structure is uniform throughout, making the set predictable and readable.

    Tool Count5/5

    With 8 tools, the count is well-scoped for the server's purpose of providing Zaragoza transport information. Each tool earns its place by covering distinct aspects like stations, real-time estimations, and location utilities, without being overwhelming or insufficient.

    Completeness5/5

    The tool set offers complete coverage for the domain of Zaragoza transport. It includes CRUD-like operations (list stations and get estimations) for all major modes (Bizi, bus, tram), plus supporting tools for geolocation and maps, ensuring no gaps in the workflow for finding and using transport services.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server to retrieve train schedules from National Rail using the Realtime Trains API, providing tools for live departures and arrivals.
      7
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      An MCP server for real-time Italian railway data, enabling natural language queries about train schedules, delays, departures, arrivals, and live tracking via the Viaggiatreno API.
      7
      MIT