railway-reservation-system-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@railway-reservation-system-mcpShow me available berths in Shatabdi Express from Delhi to Agra tomorrow"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Railway Reservation System - MCP Server
A Model Context Protocol (MCP) server for checking railway seat availability. This server provides Claude with the ability to check train seat availability, berth types, and pricing information.
Features
Seat Availability Checking: Get real-time availability for different train classes
Berth Type Information: Upper, middle, and lower berth availability and pricing
Comprehensive Details: Train schedules, route information, and booking status
Alternative Options: Suggested alternative trains when preferred options are unavailable
Installation
For MCP Server Usage with Claude
Install the MCP library:
pip install mcpInstall dependencies:
pip install -r requirements.txtFor Standalone Usage
The server can also run independently without MCP for testing:
python mcp-server.pyConfiguration for Claude Desktop
Add this configuration to your Claude Desktop config file:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"railway-reservation-system": {
"command": "python",
"args": ["mcp-server.py"],
"cwd": "t:\\code\\mcp\\railway-reservation-system"
}
}
}Available Tools
check_seat_availability
Check seat availability for railway reservations.
Parameters:
train_name(string): Name of the train (e.g., "Rajdhani Express")travel_date(string): Date of travel in YYYY-MM-DD formatstart_station(string): Starting station name or codeend_station(string): Destination station name or codetravel_class(string): Class of travel (AC1, AC2, AC3, Sleeper, CC, EC, 2S)
Returns: Comprehensive JSON with:
Train details and schedule
Seat availability by berth type (upper, middle, lower)
Pricing information
Booking status and policies
Alternative train options
Example Usage with Claude
Once configured, you can ask Claude:
"Check seat availability for Rajdhani Express from Delhi to Mumbai on July 15th in AC2 class"
"What are the available berths in Shatabdi Express for tomorrow?"
"Show me pricing for different berth types in AC3 class"
Sample Response
{
"train_details": {
"train_name": "Rajdhani Express",
"train_number": "12001",
"travel_date": "2025-07-15",
"route": {
"start_station": "New Delhi (NDLS)",
"end_station": "Mumbai Central (BCT)",
"departure_time": "08:30",
"arrival_time": "14:45",
"duration": "6h 15m"
}
},
"class_availability": {
"AC2": {
"total_seats": 72,
"available_seats": 18,
"berth_availability": {
"upper": {
"total": 24,
"available": 6,
"price": 1250.0
},
"middle": {
"total": 24,
"available": 4,
"price": 1275.0
},
"lower": {
"total": 24,
"available": 8,
"price": 1300.0
}
}
}
}
}Development
To extend this server:
Modify the
check_seat_availabilityfunction to connect to real railway APIsAdd new tools for booking, cancellation, or PNR status
Implement authentication for accessing real booking systems
Add caching for better performance
Files
mcp-server.py: Main MCP server implementationrequirements.txt: Python dependenciesclaude_desktop_config.json: Sample Claude configurationREADME.md: This documentation
License
This project is provided as-is for educational and development purposes.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tanvish-IITG/railway-reservation-system-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server