Is the Railway MCP server safe? What it can reach
What the Railway MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
Railway runs an official remote MCP server at mcp.railway.com, reached through the Railway CLI or OAuth. It can create projects, redeploy services, accept staged changes, and manage automations and feature flags as you. The old @railway/mcp-server package is deprecated. With OAuth you choose which workspaces and projects it can see.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| Railway remote MCP server (official, mcp.railway.com) | Official | active |
| railwayapp/railway-mcp-server (@railway/mcp-server, deprecated, archived) | Official | deprecated |
It runs as a local process on your machine or as a hosted remote server. The documented endpoint is https://mcp.railway.com.
How it signs in
The CLI route reuses your railway login credentials. The direct route uses OAuth, where you pick the workspaces and projects it can access. Project tokens are not accepted; the server needs a user identity.
What its tools can do
| Kind | Tools |
|---|---|
| Read | whoami, list-projects, list-services, list-feature-flags, get-feature-flag, check-cloud-agent-task, list-cloud-agent-tasks, get-cloud-agent-transcript, list-cloud-agent-models, list-automations, get-automation, list-automation-triggers, list-monitors, list-automation-runs, get-automation-run |
| Write | create-project, set-feature-flag, railway-agent, run-cloud-agent-task, respond-cloud-agent-task, cancel-cloud-agent-task, create-automation, update-automation, create-automation-trigger, update-automation-trigger, create-automation-event-trigger, update-automation-event-trigger, run-automation |
| Can’t be undone | redeploy, accept-deploy, delete-feature-flag, delete-automation, delete-automation-trigger |
These are the remote server’s tools. The local server (railway mcp local) has a different set, including deploy, set_variables, remove_service, delete_domain, remove_volume and get_logs. Read versus write for tools whose docs give no detail is inferred from the name. railway-agent sends a natural-language request to Railway’s own agent and can do multi-step work.
Built-in limits
| Option | What it does |
|---|---|
OAuth workspace and project choice | You choose which workspaces and projects the client can access. Tokens are short-lived and revocable in account settings. |
Protocol destructive hints | Destructive tools are marked so clients that respect the hints ask for confirmation. The docs list no read-only mode. |
Local server confirm | railway mcp local returns a preview and requires confirm: true before it acts. |
Admin-only flags | Setting and deleting feature flags is admin-level. |
The risks
- redeploy and accept-deploy can push a running service to a new state, so an injected instruction in a log or README could cause a production deploy or an outage.
- railway-agent hands a natural-language request to Railway’s own agent, which can do multi-step work that you can’t see in the tool call.
- run-cloud-agent-task is billed when it starts a new agent, so a manipulated agent can run up charges.
- The login carries your user’s rights on every workspace you authorize, and the local server can delete services, volumes and domains.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add --transport http railway https://mcp.railway.comClaude Code names MCP tools mcp__railway__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"deny": [
"mcp__railway__delete-feature-flag",
"mcp__railway__delete-automation",
"mcp__railway__delete-automation-trigger",
"mcp__railway__accept-deploy"
],
"ask": [
"mcp__railway__redeploy",
"mcp__railway__railway-agent",
"mcp__railway__run-cloud-agent-task",
"mcp__railway__create-project",
"mcp__railway__run-automation",
"mcp__railway__set-feature-flag"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.railway]
url = "https://mcp.railway.com"
disabled_tools = ["delete-feature-flag", "delete-automation", "delete-automation-trigger", "accept-deploy"]Checklist
- Authorize only the workspaces and projects you need.
- Use a non-production project first.
- Deny accept-deploy and the delete tools.
- Remove any old entry that runs npx -y @railway/mcp-server.
- Revoke the OAuth grant in your Railway account settings when done.
Checked against the vendor documentation on November 25, 2026. Railway docs: MCP server reference · Railway docs: remote MCP server · railwayapp/railway-mcp-server (archived)
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing