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

european-trains-mcp

v0.1.3

Published

MCP server for real-time European train search. Timetables, prices, delays, and booking links across most of Europe.

Readme

european-trains-mcp

Real-time European train search for AI assistants. Search any route the Deutsche Bahn network knows about, that's most of Europe.

What it does

  • search_trains - find journeys with times, prices, duration, changes, and a booking link
  • find_station - search for stations by name with IDs and available services
  • get_disruptions - check current delays and cancellations at any station

Tested routes

Berlin > München, Budapest > Wien, Prague > Berlin
Amsterdam > Brussels, Copenhagen > Hamburg, Zagreb > Wien
Budapest > Zell am See, Bucharest > Budapest, Zurich > Milan

Prices available on DB-operated services (ICE, IC, RE). Timetables available for ÖBB, MÁV, DSB, SNCB, NS, and more.

Setup

Claude Code

claude mcp add european-trains -- npx -y european-trains-mcp

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "european-trains": {
      "command": "npx",
      "args": ["-y", "european-trains-mcp"]
    }
  }
}

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "european-trains": {
      "command": "npx",
      "args": ["-y", "european-trains-mcp"]
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "european-trains": {
      "command": "npx",
      "args": ["-y", "european-trains-mcp"]
    }
  }
}

Example

"Find me trains from Budapest to Zell am See tomorrow"

Journey 1 of 5
Budapest-Keleti > Zell am See
Depart: 06:40, Arrive: 13:42
Duration: 7h 2min, 2 changes, EC 342 > RJX 262 > IR 716
Price unavailable
Book: https://www.trainline.com/search?...&outward_time=06:40

Journey 2 of 5
...

"Any delays at Berlin Hbf?"

Disruptions at Berlin Hbf: 12 affected departures

FLX 1238 > Hamburg Hbf: +133min (planned 15:08)
ICE 1101 > München Hbf: +5min (planned 15:36)
...

Requirements

Node.js 22 or later. Check with node -v. If you use nvm: nvm install 22 && nvm alias default 22.

No API key needed

Uses db-vendo-client to talk directly to Deutsche Bahn's API. No registration, no key.

How it works

The Deutsche Bahn API covers train routes across most of Europe, not just Germany. One query can return journeys from Budapest to Prague, Copenhagen to Hamburg, or Brussels to Amsterdam.

This server wraps that API with caching, retry logic, Zod validation, and booking links.

Affiliate disclosure

Journey results include a Trainline booking link. These don't affect search results or rankings. Data comes from the Deutsche Bahn API.

To disable booking links:

{
  "mcpServers": {
    "european-trains": {
      "command": "npx",
      "args": ["-y", "european-trains-mcp"],
      "env": { "DISABLE_AFFILIATE": "true" }
    }
  }
}

Roadmap

  • [ ] SNCF API for better French coverage and pricing
  • [ ] NS API for Dutch pricing
  • [ ] Seat availability
  • [ ] Return ticket search

Contributing

PRs welcome. Open an issue first for major changes.

License

MIT