Unofficial Railway MCP Server
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 @crisog/railway-mcp-server~/.codex/config.toml
[mcp_servers.railway]
command = "npx"
args = ["-y", "@crisog/railway-mcp-server"]
env = { RAILWAY_API_TOKEN = "<RAILWAY_API_TOKEN>" }
# codex mcp add railway --env RAILWAY_API_TOKEN='<RAILWAY_API_TOKEN>' -- npx -y @crisog/railway-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"railway": {
"command": "npx",
"args": [
"-y",
"@crisog/railway-mcp-server"
],
"env": {
"RAILWAY_API_TOKEN": "<RAILWAY_API_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"railway": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@crisog/railway-mcp-server"
],
"env": {
"RAILWAY_API_TOKEN": "<RAILWAY_API_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"railway": {
"command": "npx",
"args": [
"-y",
"@crisog/railway-mcp-server"
],
"env": {
"RAILWAY_API_TOKEN": "<RAILWAY_API_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"railway": {
"command": "npx",
"args": [
"-y",
"@crisog/railway-mcp-server"
],
"env": {
"RAILWAY_API_TOKEN": "<RAILWAY_API_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"railway": {
"command": "npx",
"args": [
"-y",
"@crisog/railway-mcp-server"
],
"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.