# Railway (MCP Server)

> Create Railway projects, deploy templates and debug deployments

- Type: MCP server
- Publisher: Railway (official)
- Categories: DevOps & Cloud, Development
- Website: https://docs.railway.com/reference/mcp-server
- Transport: streamable-http
- Server URL: https://mcp.railway.com
- Launch command: railway mcp
- Sign-in: oauth
- Listed: 2025-08-01

## About

Railway's official MCP server lets coding agents create and manage projects, deploy templates and apps, configure environments and variables, and analyze logs. It connects via the Railway CLI (railway mcp) or directly with OAuth, and a local mode is available for restricted networks. Destructive actions are flagged at the protocol level.

## Install

1. **Connect it in ChatGPT** Turn on Developer mode in ChatGPT (Settings → Security and login), open Plugins, select + and paste https://mcp.railway.com as the MCP server URL, then sign in with OAuth. Add it to a chat from the composer's tools menu.

2. **Or add it to Codex or the API**

   Codex CLI:

   ```bash
   codex mcp add railway --url https://mcp.railway.com
   codex mcp login railway
   ```

   config.toml:

   ```toml
   [mcp_servers.railway]
   url = "https://mcp.railway.com"
   ```

   Responses API:

   ```python
   import os
   from openai import OpenAI
   
   client = OpenAI()
   
   response = client.responses.create(
       model="gpt-6-astra",
       tools=[{
           "type": "mcp",
           "server_label": "railway",
           "server_url": "https://mcp.railway.com",
           "authorization": os.environ["RAILWAY_API_KEY"],
           "require_approval": "never",
       }],
       input="Create a new Railway project with a Postgres database",
   )
   print(response.output_text)
   ```

## Tools

- `whoami`
- `list-projects`
- `create-project`
- `list-services`
- `redeploy`
- `accept-deploy`
- `list-feature-flags`
- `get-feature-flag`
- `set-feature-flag`
- `delete-feature-flag`
- `railway-agent`

## Example prompts

- "Create a new Railway project with a Postgres database"
- "List the services in my project"
- "Redeploy the api service"
- "Turn on the new-checkout feature flag"

## Also available as

- app: [Railway](https://chatgptplugins.directory/apps/railway.md)

## Related

- [Chrome DevTools MCP](https://chatgptplugins.directory/mcp/chrome-devtools.md): Let coding agents control and debug a live Chrome browser
- [Playwright MCP](https://chatgptplugins.directory/mcp/playwright.md): Browser automation for agents via Playwright accessibility snapshots
- [GitHub](https://chatgptplugins.directory/mcp/github.md): Manage repos, issues, pull requests and Actions from your AI agent
- [Context7](https://chatgptplugins.directory/mcp/context7.md): Pull up-to-date, version-specific library docs into your coding agent
- [Supabase](https://chatgptplugins.directory/mcp/supabase.md): Manage Supabase databases, migrations, edge functions and logs
- [Stripe](https://chatgptplugins.directory/mcp/stripe.md): Query and act on your Stripe account and search Stripe docs from any agent

---
Source: https://chatgptplugins.directory/mcp/railway · Index: https://chatgptplugins.directory/llms.txt · Independent and community-run. Not affiliated with or endorsed by OpenAI. ChatGPT is a trademark of OpenAI.
