如何将 Railway 远程 MCP 连接到 ChatGPT

约 1 分钟即可把 Railway 的远程 MCP 服务端接入 ChatGPT。如需排查 OAuth / 401 问题,可先用 OAuth 2.1 调试器体检端点。

🛡️ Official✓ VerifiedStreamable HTTPOAuth 2.1🛡️ A+~505 tok17 tools
Streamable HTTPhttps://mcp.railway.com/mcp
  1. Open Settings → Connectors (Integrations) → Add Custom Connector.
  2. Paste the endpoint URL: https://mcp.railway.com/mcp
  3. Complete the browser OAuth 2.1 login flow when prompted.

接入步骤

  1. 启用开发者模式 — ChatGPT → Settings → Connectors → Advanced 开启 Developer Mode。
  2. 添加连接器 — 新建 Custom Connector,将 https://mcp.railway.com/mcp 填入 MCP Server URL。
  3. 完成认证 — 首次调用时客户端会打开 Railway 的 OAuth 授权页面——点击允许后工具即可用。
  4. 验证 — 在 在线 Inspector 中粘贴 https://mcp.railway.com/mcp 并运行 initialize + tools/list 验证连通性。

🧰 工具预览(17)

ToolSafetyDescriptionParameters
list_projects
~28 tok
🟢 ReadList Railway projects.—
get_project
~28 tok
🟢 ReadGet a Railway project.—
create_project
~29 tok
🟠 WriteCreate a Railway project.—
list_services
~29 tok
🟢 ReadList services in a project.—
deploy_service
~30 tok
🟠 WriteTrigger a service deployment.—
list_deployments
~30 tok
🟢 ReadList service deployments.—
get_deployment_logs
~29 tok
🟢 ReadGet deployment logs.—
list_variables
~30 tok
🟢 ReadList environment variables.—
set_variable
~29 tok
🟠 WriteSet an environment variable.—
create_database
~30 tok
🟠 WriteProvision a database service.—
list_volumes
~26 tok
🟢 ReadList volumes.—
get_metrics
~27 tok
🟢 ReadGet service metrics.—
list_environments
~30 tok
🟢 ReadList project environments.—
create_environment
~29 tok
🟠 WriteCreate an environment.—
restart_service
~28 tok
🟠 WriteRestart a service.—
get_service
~26 tok
🟢 ReadGet a service.—
get_domain
~27 tok
🟢 ReadGet a service domain.—

更多连接指南