Lets agents deploy, configure and monitor services on Railway through natural language; community-built and unofficial.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add railway --env RAILWAY_API_TOKEN='<RAILWAY_API_TOKEN>' -- npx -y @jasontanswe/railway-mcp~/.codex/config.toml
[mcp_servers.railway]
command = "npx"
args = ["-y", "@jasontanswe/railway-mcp"]
env = { RAILWAY_API_TOKEN = "<RAILWAY_API_TOKEN>" }
# codex mcp add railway --env RAILWAY_API_TOKEN='<RAILWAY_API_TOKEN>' -- npx -y @jasontanswe/railway-mcp~/.cursor/mcp.json
{
"mcpServers": {
"railway": {
"command": "npx",
"args": [
"-y",
"@jasontanswe/railway-mcp"
],
"env": {
"RAILWAY_API_TOKEN": "<RAILWAY_API_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"railway": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@jasontanswe/railway-mcp"
],
"env": {
"RAILWAY_API_TOKEN": "<RAILWAY_API_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"railway": {
"command": "npx",
"args": [
"-y",
"@jasontanswe/railway-mcp"
],
"env": {
"RAILWAY_API_TOKEN": "<RAILWAY_API_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"railway": {
"command": "npx",
"args": [
"-y",
"@jasontanswe/railway-mcp"
],
"env": {
"RAILWAY_API_TOKEN": "<RAILWAY_API_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"railway": {
"command": "npx",
"args": [
"-y",
"@jasontanswe/railway-mcp"
],
"env": {
"RAILWAY_API_TOKEN": "<RAILWAY_API_TOKEN>"
}
}
}
}Environment variables
RAILWAY_API_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.