# Connect Railway to Your AI Agent (Universal MCP)

> Use your AI to run deployments, manage cloud resources, and monitor systems in Railway — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http railway https://api.universalmcp.app/mcp/railway`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/railway` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "railway", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: Railway | Category: DevOps & IT/Security (SMCPS) | Auth: Encrypted workspace API key
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Deploy logs, Service variables, Usage and billing; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=railway | Guide: https://universalmcp.app/mcp/railway
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (65 actions: 17 Read, 48 Write)
Perform over 60 actions across services & deployments, projects & environments, databases & storage, monitoring & logs, sandboxes & agents, variables & config, and networking & domains. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Services & Deployments (11):** List Deployments (read), Adjust Deployment Version (write), Adjust Service Runtime (write), Create Service (write), Schedule Cron Job (write), Update Branch Deploys (write), Update Healthcheck (write), Update Restart Policy (write), Update Service Region (write), Update Service Scaling (write), Upload Project Code (write)
- **Projects & Environments (8):** Check Project Status (read), List Projects (read), Create Environment (write), Create PR Environment (write), Create Project (write), Delete Environment (write), Delete Project (write), Update Environment Sync (write)
- **Databases & Storage (8):** List Bucket Objects (read), List Volumes (read), Create Database (write), Create Database Backup (write), Create Storage Bucket (write), Create Volume (write), Update Database Restore (write), Update Volume Size (write)
- **Monitoring & Logs (7):** Check Usage Metrics (read), Pull Build Logs (read), Query RailQL Data (read), Search Service Logs (read), Create Alert (write), Create Dashboard (write), Send Log Drain (write)
- **Sandboxes & Agents (6):** Query Railway Agent (read), Create Automation (write), Create Cloud Agent Task (write), Create Sandbox (write), Delete Sandbox (write), Post Sandbox Command (write)
- **Variables & Config (6):** Export Project Config (read), List Variables (read), Create Feature Flag (write), Create Shared Variable (write), Submit Infrastructure Config (write), Update Environment Variable (write)
- **Networking & Domains (6):** Check Private Network Endpoints (read), List Service Domains (read), Create Custom Domain (write), Create TCP Proxy (write), Delete Domain (write), Update Domain Settings (write)
- **Team & Security (6):** List Project Members (read), Pull Audit Log (read), Assign Access Group (write), Create SSO Connection (write), Send Team Invite (write), Update Account Security (write)
- **Templates & Integrations (4):** Create OAuth Application (write), Create Project From Template (write), Create Template (write), Create Webhook (write)
- **Billing & Usage (3):** Check Monthly Bill (read), Update Serverless Mode (write), Update Spend Limit (write)

## Example Prompts for Railway
- **Deploy failures:** "Show the last five Railway deployments that failed, with the error message and commit that triggered each."
- **Database capacity:** "Report storage and connection usage for every Railway Postgres database over the past week."
- **Usage forecast:** "Estimate this month's Railway usage bill by service and flag any project above its budget."
- **Draft rollback plan:** "Draft a rollback plan for the failing cedar-api deploy and wait for my approval before redeploying."
