New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@striderlabs/mcp-amtrak

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@striderlabs/mcp-amtrak

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

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

@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:

NameTypeRequiredDescription
fromstringYesOrigin station name or code (e.g. "New York", "NYP")
tostringYesDestination station name or code (e.g. "Washington", "WAS")
datestringYesTravel date (YYYY-MM-DD or MM/DD/YYYY)
passengersnumberNoNumber 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:

NameTypeRequiredDescription
train_numberstringYesTrain number (e.g. "2150", "20", "Acela 2150")
datestringNoDate 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:

NameTypeRequiredDescription
fromstringYesOrigin station name or code
tostringYesDestination station name or code
datestringYesTravel date (YYYY-MM-DD or MM/DD/YYYY)
train_numberstringNoSpecific train to book (books first available if omitted)
passengersnumberNoNumber of adult passengers (1–8, default 1)
rail_passbooleanNoUse 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

Keywords

mcp

FAQs

Package last updated on 18 Jun 2026

Related posts