How to Use Amtrak route directory in n8n
Returns Amtrak’s named routes for route discovery. Use it to find a service before requesting its stops and train numbers or checking trains currently running on it.
Prompts to try with Amtrak route directory in n8n
Copy an example into n8n, or ask in your own words.
Every Monday at 9am: use Amtrak route directory to look this up and give me the result as a table.
Pull the latest numbers from Amtrak route directory and tell me what changed since last week.
Check Amtrak route directory and summarize what you find in three bullet points.
Pull the newest data from Amtrak route directory and give me the result as a table.
Check Amtrak route directory every morning and tell me only when something changed.
How to set up Amtrak route directory in n8n
Pick the way that suits you. Each takes about two minutes.
Use the Spiral skill
- Send n8n this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use Spiral's MCP server
- Create a key
Create a key under API keys in the console.
- Add an MCP Client node
In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:
https://api.spiral.ai/mcp
- Pick a tool
The node lists Spiral's tools. In an MCP Client node pick one, such as run, and give it its arguments:
{ "provider": "fal", "model": "fal-ai/flux/schnell", "input": { "prompt": "a lighthouse at dawn" }, "wait": true } - Run Amtrak route directory in a workflow step
Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Amtrak route directory, prices it and runs it each time the step fires.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Amtrak route directory
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "amtrak-com/train-status/list_routes", "input": {} }'
Then paste one of the prompts above: n8n finds Amtrak route directory on Spiral, shows the price and runs it.
Amtrak route directory providers and prices
Spiral runs Amtrak route directory through Alexandria. Open a card for today's price, with every fee included.
What can you do with Amtrak route directory in n8n?
Keep an Amtrak travel briefing current by checking reported station information, route stops, or running trains on a schedule. An always-on agent can compare successive responses and call attention to changed station details or arrival estimates.
Prepare a route stop guide
Find Coast Starlight in the route directory and retrieve its ordered stops. Browse the station directory, resolve station names through search, and retrieve station details for a practical stop-by-stop reference.
Prepare station accessibility questions
Discover routes and stops for a proposed rail journey, then browse and search the station listings to identify the intended stations. Use their reported amenities and hours to prepare specific accessibility questions before travel.
Answer a hotel guest’s rail arrival question
Find the guest’s named route and its stops, then browse nearby Amtrak stations and resolve the arrival station by name. Retrieve its address and amenities to prepare an arrival guide for the front desk.
Research rail destinations
Browse Amtrak routes and station listings to shortlist places for a rail trip. Inspect route stops, search for the shortlisted stations, and compare their reported hours and amenities before researching dated travel options separately.
More on Amtrak route directory and n8n
Overview
Amtrak route directory in other agents
Questions about Amtrak route directory in n8n
Can n8n use Amtrak route directory?
Yes. Add Spiral to n8n as an MCP server, and n8n can find and run Amtrak route directory like any built-in tool.
How much does Amtrak route directory cost in n8n?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.
Do I need an Alexandria account to use Amtrak route directory in n8n?
You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs Amtrak route directory on its own Alexandria account.
How long does it take to set up Amtrak route directory in n8n?
About two minutes: create a key, then add an MCP Client node, then pick a tool.
Does n8n wait while Amtrak route directory runs?
Amtrak route directory runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.
Does the data cover Canadian stops?
Amtrak says Track Your Train represents its routes, stations, and active trains across the United States and into Canada. That is Amtrak coverage, rather than a directory of every Canadian rail operator.
Does this include fares or schedules for a future travel date?
The provider explicitly excludes fares, schedules by date, and booking. A route’s stop list or a currently tracked train’s times cannot establish what is available for a future trip.
What station information is available?
The provider documents station addresses, hours, and amenities alongside station discovery. For example, Amtrak lists Chicago Union Station at 255 South Clinton Street.
What is the difference between route information and train status?
Route information supplies ordered stops and train numbers for a named service. Train status supplies currently tracked runs with scheduled, estimated, and actual stop times.
Are reported arrival times actual arrivals?
The train status data distinguishes scheduled, estimated, and actual times. An estimated arrival is a prediction; use the actual arrival value when describing a stop the train has reached.
Start using Amtrak route directory in n8n
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into n8n:
set up https://spiral.ai/SKILL.md


