Indian RailwaySAFE
MCP server for Indian Railway data. Search trains, check seat availability, get live statuses, delay info, station/train codes, and more — all via a simple Claude Desktop integration.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Claude Desktop Integration
Important: First, install the latest version ofmcp-remoteglobally: ``sh npm i -g mcp-remote``
Access the remote MCP server from Claude Desktop
- Open Claude Desktop and go to:
Settings → Developer → Edit Config
- Replace/Add the config content with:
{
"mcpServers": {
"railways": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://railway-mcp.amithv.xyz/mcp"
]
}
}
}- Restart Claude Desktop.
The tools will be available in Claude.
Available Tools
Below are the available tools exposed by this MCP server, with a sample response for each. (Order: search, seat, train info, live status, delay, station code, train code)
1. Search-trains
- Description: Searches for available trains between two stations on a given date.
- Sample response:
TRAINS FROM ERS TO SBC (20250415) Train Name Departure Arrival Duration Classes Days --------------------------------------------------------------------------------- 12677 YPR SAMPARK KRANTI ERS 06:45 → SBC 20:30 13h45m 2A,3A,SL SMTWTFS 16525 ISLAND EXPRESS ERS 09:00 → SBC 23:55 14h55m 2A,3A,SL SMTWTFS ...
2. Get-seat-availability
- Description: Checks seat availability for a train between two stations on upcoming dates. Returns a formatted text with train details, seat availability status (available or waitlisted), and fare information for different classes and dates.
- Sample response:
SEAT AVAILABILITY: 12617 MANGALA LDWEEP EXP Route: ERS → NZM | Quota: GN Date | Class | Status ----------------------------- 2025-04-16 | 2A | AVAILABLE 2 | 3A | WL 5 | SL | AVAILABLE 10 ----------------------------- 2025-04-17 | 2A | AVAILABLE 5 | 3A | WL 5 | SL
dc841470aca2OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add indian-railways-mcp-streamable-http --env API_KEY=${API_KEY} -- npx -y [email protected]{
"mcpServers": {
"indian-railways-mcp-streamable-http": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"API_KEY": "${API_KEY}"
}
}
}
}Exposed tools (8)
7 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
Get-live-station-info | write | Retrieves live train schedule information for a specific Indian Railway station. Example: Live station for ERS (Ernakulam Jn). Returns a formatted text list of trains including their numbers, names, arrival/departure times, platforms, and delay information. |
Get-seat-availability | read | Checks seat availability for a train between two stations on upcoming dates. Returns a formatted text with train details, seat availability status (available or waitlisted), and fare information for different classes and dates. Example: seat availability for train 12617 from NDLS to MAS. |
Get-station-code | read | Find station code by station name. Supports multiple station names, variations, and case-insensitive matching. Example: getStationCode for |
Get-train-code | read | Find train code (train number) by train name. Supports multiple train names, variations, and case-insensitive matching. Example: getTrainCode for |
Get-train-delay-info | read | |
Get-train-info | read | Fetches detailed information about a specific Indian Railways train, including its route and schedule. Example: schedules for train 12617. |
Get-train-live-status | read | Fetches the current live running status of a specific train including location, delays, and expected arrivals. Returns a formatted text with station names, platforms, scheduled/actual arrival and departure times. Example: live status/live location for train 12617. |
Search-trains | read | Searches for available Indian Railways trains between two specified stations on a given date. Example: searchTrains from ERS to SBC on 20250415. Returns a formatted text list of trains with train numbers, names, departure/arrival stations and times, duration, running days, and available classes. |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (5 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (2)
@modelcontextprotocol/sdk, body-parser, dotenv, esbuild, express, fuse.js, zod, zod-to-json-schema
Gates applied: no_behavioural_pass, no_license.
dc841470aca2full audit observations/trust-audit/mcp-server/amith-vp__indian-railway.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | dc841470aca2 | SAFE | B | 89 | first audit |
Questions
What is the Indian Railway MCP server?
MCP server for Indian Railway data. Search trains, check seat availability, get live statuses, delay info, station/train codes, and more — all via a simple Claude Desktop integration.
What tools does Indian Railway expose?
8 in total: 7 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Indian Railway safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Indian Railway need?
It reads API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Indian Railway run?
It speaks streamable-http, so it runs as a service you connect to over the network. It is published on npm as indian-railways-mcp-streamable-http at 1.0.0.
How current is this page?
The grade is for one exact copy of the source (dc841470aca2), read on 2026-10-08. The repository is watched and re-audited when it changes.