mcpField
D
DNDzgz MCP Server

DNDzgz MCP Server

Local
github.com/danilatMaps & Travel10Updated 72w ago

About DNDzgz MCP Server

DNDzgz MCP Server provides Zaragoza transit and Bizi station data for MCP clients, including live arrival estimates and nearby-stop listings. It also offers location lookup and Google Maps links.

Key features

  1. 01Live tram arrival estimates
  2. 02Tram and bus stop listings
  3. 03Live bus arrival estimates
  4. 04Bizi station and availability data
  5. 05Address geocoding and map links

Use cases

  1. 01Check arrival times before boarding
  2. 02Find nearby stops by location
  3. 03Check bikes and free Bizi slots
  4. 04Turn an address into map coordinates

MCP support

It exposes Zaragoza tram, bus, and Bizi information as tools for MCP clients, along with geocoding and Google Maps link generation.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"dndzgz": {
"command": "npx",
"args": [
"-y",
"@dndzgz/mcp"
],
"env": {
"GOOGLE_MAPS_API_KEY": "<GOOGLE_MAPS_API_KEY>"
}
}
}
}
Run commandnpx -y @dndzgz/mcp
Environment variables to set
GOOGLE_MAPS_API_KEYSecret

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@dndzgz/mcp

Tools

8

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
stationnumberYes

Details

From the project README

DNDzgz MCP Server

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.

Installation

  1. Clone the repository:
git clone https://github.com/danilat/mcp-dndzgz.git
cd mcp-dndzgz
  1. Install dependencies:
npm install

Running the Application

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.

Available Tools

The server provides the following tools:

  1. zaragoza-tram-estimations: Get real-time arrival estimations for a specific tram station

    • Parameters:
      • station (number): ID of the tram station
    • Returns: JSON with estimated arrival times for both directions
  2. zaragoza-tram-stations: Get a list of all tram stations in Zaragoza

    • Parameters:
      • latitude (number): Latitude to sort stations by proximity
      • longitude (number): Longitude to sort stations by proximity
    • Returns: JSON with station information including location, name, and ID
  3. zaragoza-bus-stops: Get all bus stops in Zaragoza

    • Parameters:
      • latitude (number): Latitude to sort stops by proximity
      • longitude (number): Longitude to sort stops by proximity
    • Returns: JSON with bus stop locations, names, IDs, and lines
  4. zaragoza-bus-estimations: Get real-time arrival estimations for a specific bus stop

    • Parameters:
      • stop (number): ID of the bus stop
    • Returns: JSON with estimated arrival times for each line serving that stop
  5. zaragoza-bizi-stations: Get all Bizi stations in Zaragoza (public bicycle rental service)

    • Parameters:
      • latitude (number): Latitude to sort stations by proximity
      • longitude (number): Longitude to sort stations by proximity
    • Returns: JSON with Bizi station locations, names, and IDs
  6. zaragoza-bizi-estimations: Get real-time availability of bikes and free slots in a Bizi station

    • Parameters:
      • station (number): ID of the Bizi station
    • Returns: JSON with bikes and parking slot availability
  7. google-maps-link: Get a Google Maps link for a specific location

    • Parameters:
      • latitude (number): Latitude of the location
      • longitude (number): Longitude of the location
    • Returns: Google Maps URL showing the specified location
  8. geolocation-from-address: Get the geolocation (latitude and longitude) from an address and the formatted address that was found

    • Parameters:
      • address (string): The address to geolocate (e.g., "Plaza de San Francisco, Zaragoza, Spain")
    • Returns: JSON with latitude, longitude, confidence level, and formatted address

Dependencies

  • @modelcontextprotocol/sdk: ^1.9.0

Example

There is an screenshot with example using Claude Desktop

Screenshot of an example using Claude Desktop, asking in spanish to get the tram estimations for Romareda station

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.