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

@striderlabs/mcp-amtrak

v1.0.0

Published

MCP connector for Amtrak train travel — search trains, check status, and book tickets

Readme

@striderlabs/mcp-amtrak

MCP (Model Context Protocol) connector for Amtrak train travel. Enables AI assistants to search for trains, check real-time status, and initiate ticket bookings on Amtrak.com using browser automation.

Features

  • Search Trains — Find available trains between any two Amtrak stations on a given date, with prices for Coach, Business, and Sleeper classes.
  • Get Train Status — Real-time status including current location, delays, and stop-by-stop schedule.
  • Book Ticket — Navigate to the Amtrak booking page for a given route and date, ready for the user to complete payment.

Installation

npm install -g @striderlabs/mcp-amtrak
# Install Playwright browser
npx playwright install chromium

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "amtrak": {
      "command": "mcp-amtrak"
    }
  }
}

Or with npx:

{
  "mcpServers": {
    "amtrak": {
      "command": "npx",
      "args": ["-y", "@striderlabs/mcp-amtrak"]
    }
  }
}

Tools

search_trains

Search for available Amtrak trains between two stations.

Parameters: | Name | Type | Required | Description | |------|------|----------|-------------| | from | string | Yes | Origin station name or code (e.g. "New York", "NYP") | | to | string | Yes | Destination station name or code (e.g. "Washington", "WAS") | | date | string | Yes | Travel date (YYYY-MM-DD or MM/DD/YYYY) | | passengers | number | No | Number of adult passengers (1–8, default 1) |

Example response:

{
  "success": true,
  "from": "New York",
  "to": "Washington",
  "date": "03/20/2026",
  "passengers": 1,
  "trains": [
    {
      "train_number": "2150",
      "train_name": "Acela",
      "departure_time": "6:00 AM",
      "arrival_time": "9:20 AM",
      "duration": "3h 20m",
      "price_coach": null,
      "price_business": "$189",
      "price_sleeper": null,
      "seats_available": true
    }
  ],
  "booking_url": "https://www.amtrak.com/..."
}

get_train_status

Get real-time status for an Amtrak train.

Parameters: | Name | Type | Required | Description | |------|------|----------|-------------| | train_number | string | Yes | Train number (e.g. "2150", "20", "Acela 2150") | | date | string | No | Date in YYYY-MM-DD format (defaults to today) |

Example response:

{
  "success": true,
  "train_number": "20",
  "train_name": "Cardinal",
  "status": "On Time",
  "scheduled_departure": "7:05 AM",
  "actual_departure": "7:05 AM",
  "scheduled_arrival": "8:05 PM",
  "actual_arrival": null,
  "current_location": "Cincinnati, OH",
  "delay_minutes": 0,
  "stations": [...]
}

book_ticket

Initiate an Amtrak ticket booking (navigates to checkout page).

Parameters: | Name | Type | Required | Description | |------|------|----------|-------------| | from | string | Yes | Origin station name or code | | to | string | Yes | Destination station name or code | | date | string | Yes | Travel date (YYYY-MM-DD or MM/DD/YYYY) | | train_number | string | No | Specific train to book (books first available if omitted) | | passengers | number | No | Number of adult passengers (1–8, default 1) | | rail_pass | boolean | No | Use Rail Pass instead of purchasing (default false) |

Note: This tool navigates to the Amtrak booking page but cannot process payment. The user must complete checkout in their browser.

How It Works

This MCP server uses Playwright to automate a headless Chromium browser that interacts with Amtrak.com. Results are scraped from the live website, so they reflect real-time availability and pricing.

Requirements

  • Node.js 18+
  • Chromium (installed via npx playwright install chromium)

License

MIT