Less Dashboards. More Robots. Railway, for Agents
Railway is repositioning its platform around coding agents, bundling the CLI, MCP configuration and agent skills behind a single installer (`install.sh --agents -y`) so harnesses like Claude or Codex can deploy, configure and debug services without the dashboard. The CLI gains `--json` output, non-interactive flags and explicit project/service/environment scoping. A CLI-based MCP and an OAuth Remote MCP replace the deprecated NPM server, and a route-first `use-railway` skill loads only the references a task needs. Safety layers include staged changesets reviewed as diffs, MCP `destructiveHint` flags, 48-hour soft deletes and workspace guardrails such as GitHub org allowlists.
Related posts
- Better Rails for Agents: A New Remote MCP and Railway Agent in the CLI
Railway mediumAdeptRailway shipped a remote MCP server at mcp.railway.com, which connects to MCP clients over OAuth with no local install, and a new `railway agent` CLI command for interactive, scripted or CI use with JSON output. The MCP surface is kept deliberately small at 7 tools, because every tool definition costs client context and multi-step operations cost a round-trip each. Questions such as "why is my deploy crashing" go to a `railway-agent` tool that runs the multi-step investigation server-side and returns one answer. Instead of a separate service, the MCP server is a stateless Koa route inside the main backend. It reuses the existing OIDC provider and permission controllers, passes per-request context through AsyncLocalStorage, and wraps tools in a factory that handles auth and errors.
- Railway MCP - Stateful, Serverful, Pay-per-use Infrastructure
Railway easyNoviceRailway's MCP server lets coding agents deploy services and templates, create isolated environments, manage variables and pull logs, pitched alongside Railway's usage-based pricing and vertical autoscaling as a good fit for agent-driven infrastructure. The design deliberately omits destructive tools like delete actions. It runs as a local stdio server rather than a remote Streamable HTTP one, because Railway lacks OAuth and its users work in local editors. The server wraps the Railway CLI under the hood, which reuses the CLI's login flow and lets agents fall back to CLI commands when they hit edge cases.
- Agentic Coding on Railway: A Practical Guide for 2026
Railway mediumAdeptRailway's official MCP server, per-PR preview environments with isolated databases, one-call rollback, environment promotion and per-environment secrets let agents like Claude Code, Cursor and Codex deploy, debug and validate their own PRs without leaving the loop. Five workflows are walked through: scaffolding and deploying a service, adding Postgres with migrations, creating preview environments, debugging failed deploys from structured logs, and agents testing their own PRs against preview URLs. Long-running migrations, multi-service ordering and cost reasoning still stall. The advice is to scope agent tokens to non-production environments, require human approval for production promotions, set spend alerts, watch for revert loops, add observability via MCP, and write business constraints where the agent can read them.
- Skill Issue, Writing /skills to solve agent failures
Railway mediumAdeptAgents driving Railway failed because they lacked platform knowledge: they guessed CLI flags, ignored the 30-tool MCP server unless told to call it, and invented features. Railway fixed this with Agent Skills, first turning internal runbooks into skills scoped to allowed tools. They then published twelve public skills, but agents were bad at loading and unloading them on demand, so the set was collapsed into a single `use-railway` skill. In that skill, SKILL.md acts as a router that loads one or two intent-specific reference files and supporting scripts. A `railway skills install` CLI command distributes the skills to Claude Code, Cursor, Codex and other agent directories, with background auto-updates.
- Using Github Actions with Railway
Railway mediumAdeptRailway deployments can be driven from GitHub Actions instead of the built-in branch-push trigger by creating a project token, storing it as a repository secret (RAILWAY_TOKEN), and running `railway up --service=<id>` inside the official Railway CLI container. A sample workflow triggers on pushes to main, checks out the code and uploads it to Railway. The token must stay secret, but the service ID can be passed openly. The same token approach also works for tasks like running database migrations before deploy or managing pull requests.