npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dndzgz/mcp

v1.1.0

Published

MCP server for DNDzgz API - Get realtime information about public transport in Zaragoza

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 transport layer.

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