Lets agents deploy, configure and monitor services on Railway through natural language; community-built and unofficial.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
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>"
}
}
}
}需要的环境变量
RAILWAY_API_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。