DNDzgz
HTTP-SSEReal-time Zaragoza public transport information server with tram, bus, and bike services.
Real-time Zaragoza public transport information server with tram, bus, and bike services.
This is an MCP (Model Context Protocol) server that provides information about the Zaragoza tram system, including real-time tram arrival estimations and station information using the DNDzgz API.
git clone https://github.com/danilat/mcp-dndzgz.git cd mcp-dndzgz
npm install
Add a the environment variable with a valid google maps api key and run it with the http transport
GOOGLE_MAPS_API_KEY=your-api-key npm start:http
The server will start you should configure yout MCP client to connect.
Or start the server using stdio trasport:
Configure in your MCP client using npx, for example:
{ "mcpServers": { "dndzgz": { "command": "npx @dndzgz/mcp", "env": { "GOOGLE_MAPS_API_KEY": "your-api-key" } } } }
The server will start and connect to the MCP server.
The server provides the following tools:
zaragoza-tram-estimations: Get real-time arrival estimations for a specific tram station
station (number): ID of the tram stationzaragoza-tram-stations: Get a list of all tram stations in Zaragoza
latitude (number): Latitude to sort stations by proximitylongitude (number): Longitude to sort stations by proximityzaragoza-bus-stops: Get all bus stops in Zaragoza
latitude (number): Latitude to sort stops by proximitylongitude (number): Longitude to sort stops by proximityzaragoza-bus-estimations: Get real-time arrival estimations for a specific bus stop
stop (number): ID of the bus stopzaragoza-bizi-stations: Get all Bizi stations in Zaragoza (public bicycle rental service)
latitude (number): Latitude to sort stations by proximitylongitude (number): Longitude to sort stations by proximityzaragoza-bizi-estimations: Get real-time availability of bikes and free slots in a Bizi station
station (number): ID of the Bizi stationgoogle-maps-link: Get a Google Maps link for a specific location
latitude (number): Latitude of the locationlongitude (number): Longitude of the locationgeolocation-from-address: Get the geolocation (latitude and longitude) from an address and the formatted address that was found
address (string): The address to geolocate (e.g., "Plaza de San Francisco, Zaragoza, Spain")There is an screenshot with example using Claude Desktop
