DNDzgz MCP Server
DNDzzgz MCP サーバー
これは、 DNDzgz API を使用してリアルタイムの路面電車到着予測や駅情報など、サラゴサ路面電車システムに関する情報を提供する MCP (モデル コンテキスト プロトコル) サーバーです。
インストール
リポジトリをクローンします。
git clone https://github.com/danilat/mcp-dndzgz.git
cd mcp-dndzgz依存関係をインストールします:
npm installRelated 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 トランスポート層に接続します。
利用可能なツール
サーバーは次のツールを提供します。
zaragoza-tram-estimations: 特定のトラム駅の到着予定時刻をリアルタイムで取得しますパラメータ:
station(番号):路面電車駅のID
戻り値: 両方向の到着予定時刻を含むJSON
zaragoza-tram-stations: サラゴサのすべてのトラム駅のリストを取得しますパラメータ:
latitude(数値):駅を近い順に並べ替える緯度longitude(数値):駅を近い順に並べ替えるための経度
戻り値: 場所、名前、IDを含むステーション情報を含むJSON
zaragoza-bus-stops: サラゴサのすべてのバス停を取得しますパラメータ:
latitude(数値):停留所を近い順に並べ替える緯度longitude(数値):停留所を近い順に並べ替える経度
戻り値: バス停の位置、名前、ID、路線を含むJSON
zaragoza-bus-estimations: 特定のバス停の到着予定時刻をリアルタイムで取得しますパラメータ:
stop(番号): バス停のID
戻り値: 各停留所に停車する各路線の到着予定時刻を含むJSON
zaragoza-bizi-stations: サラゴサのすべての Bizi ステーション (公共自転車レンタルサービス) を取得しますパラメータ:
latitude(数値):駅を近い順に並べ替える緯度longitude(数値):駅を近い順に並べ替えるための経度
戻り値: Biziステーションの場所、名前、IDを含むJSON
zaragoza-bizi-estimations: ビジステーションの自転車の空き状況と空きスロットをリアルタイムで確認パラメータ:
station(番号):BiziステーションのID
戻り値: 自転車と駐車スペースの空き状況を含むJSON
google-maps-link: 特定の場所の Google マップ リンクを取得しますパラメータ:
latitude(数値):場所の緯度longitude(数値):場所の経度
戻り値: 指定された場所を示す Google マップの URL
geolocation-from-address: 住所から地理位置情報(緯度と経度)を取得し、見つかったフォーマットされた住所を取得します。パラメータ:
address(文字列): 位置情報を取得する住所(例:"Plaza de San Francisco, Zaragoza, Spain")
戻り値: 緯度、経度、信頼度、フォーマットされた住所を含むJSON
依存関係
@modelcontextprotocol/sdk: ^1.9.0
例
Claude Desktopを使用した例のスクリーンショットがあります

Available Tools
8 toolsgeolocation-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).
google-maps-linkC
Get a Google Maps link from coordinates to help people to find a station o stop
Inputs: latitude (required), longitude (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
Scored across 8 tools
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.
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.
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.
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
Related MCP Connectors
MCP server for China Railway 12306 ticket availability: schedules and seats by Chinese station name.
MCP server for China Railway 12306 ticket availability: schedules and seats by Chinese station name.
An MCP server that exposes functionalities to use Zomato's services.
An MCP server that provides congressional transcripts
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server to retrieve train schedules from National Rail using the Realtime Trains API, providing tools for live departures and arrivals.7MIT
- AlicenseNot gradedqualityBmaintenanceAn 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.7MIT
- FlicenseAqualityDmaintenanceMCP server for querying German public transport information, including station search, live departures/arrivals, and journey planning.51-
- FlicenseNot gradedqualityDmaintenanceA simple MCP server to call RMV APIs for nearby stations and departure boards.-