Railway MCP Server
Enables management of Railway infrastructure, including project inspection, service configuration, environment management, environment variable manipulation, and deployment operations such as status monitoring and log retrieval.
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 MCP Serverlist all services in my production environment"
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 MCP Server
A Model Context Protocol server that lets you manage Railway infrastructure from claude.ai (or any MCP client). Built with FastMCP and deployed on Railway itself.
What It Does
17 tools across 5 categories:
Projects - List and inspect your Railway projects
Services - View service configuration and status per environment
Environments - List, create, and duplicate environments
Variables - List, set, bulk set, and delete environment variables
Deployments - Check status, read logs, redeploy, and restart
Why
Railway has an official MCP server but it wraps the CLI and only works locally (stdio transport). This server hits the Railway GraphQL API directly over HTTP, so it can be deployed as a remote service and connected to claude.ai as a connector.
Setup
1. Get a Railway API Token
Go to railway.com/account/tokens and create an account-level token.
2. Deploy to Railway
Create a new Railway project
Connect this GitHub repo
Set environment variables:
RAILWAY_API_TOKEN= your tokenPORT=8000MCP_TRANSPORT=streamable-http
Generate a public domain
3. Connect to claude.ai
Add the MCP connector URL: https://{your-domain}/mcp
Local Development
# Clone and install
git clone https://github.com/Travis-Gilbert/railway-mcp.git
cd railway-mcp
pip install -e .
# Set up env
cp .env.example .env
# Edit .env with your Railway API token
# Run locally
python -m railway_mcp
# Or with stdio transport
MCP_TRANSPORT=stdio python -m railway_mcpTech Stack
Python 3.12
FastMCP (MCP protocol + transport)
httpx (async HTTP client)
Pydantic v2 (input validation)
Railway GraphQL API v2
This server cannot be installed
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
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/Travis-Gilbert/Railway-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server