Railway MCP 与 API 接入

团队应用鉴权:api_key

团队 Railway 云部署:项目、服务、环境、部署记录、自定义域名与存储卷。

本地 Railway MCP 配置

每台设备存放明文密钥

  • 原始 Railway Token 被复制到本地配置文件
  • 每位成员在每台电脑都需要重复安装配置
  • 每次对话都要注入数十个工具 Schema 占满上下文
通过 Duang 金库接入 Railway

一次连接,随时一键吊销

  • 每团队独立信封加密保存凭证
  • 本地磁盘与大模型提示词中零明文密钥
  • 全团队共享同一个远程 MCP 端点
发给 Agent 对话直接发给 Claude Code、OpenClaw、OpenCode、Grok Bot、Antigravity、Hermes 或 Pi

set up https://duang.ai/SKILL.md

可以让智能体这样提问

“Show me the projects in our Railway workspace.”

## Projects in your Railway workspace | Project | Environments | Services | |---|---|---| | **acme-platform** | production, staging | web, api | | **acme-docs** | production | docs | Two projects and three services in all. **acme-platform** is the larger one, with two environments. Want me to show the latest deployment of any of them?

projects

“Why did the last deployment of api fail? Look at its logs.”

## Why the last deployment failed It crashed on startup because it **could not reach its database**. 1. 09:14:02 The container started and ran `node dist/server.js` 2. 09:14:05 `connect ECONNREFUSED 10.0.0.5:5432`: the database refused the connection 3. 09:14:08 It gave up after 3 retries 4. 09:14:08 The container exited with code 1 **Likely cause:** nothing is accepting connections at 10.0.0.5:5432, so the database service is stopped, or the address the app uses is wrong. Want me to check that the database service is running?

deployment-logs

全部操作(334)

操作价格
POST backboard.railway.com/graphql/v2:Mutation.baseEnvironmentOverride

Sets the base environment override for a deployment trigger.

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.canvasViewMerge

Merge a canvas layout from one environment into another.

自备 Key
POST backboard.railway.com/graphql/v2:Query.project

Get a project by ID

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.projectClaim

Claims a project.

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.projectClearanceDefaultUpdate

Sets whether environments created from now on start with Railway Authentication protecting services that have no setting of their own.

自备 Key
POST backboard.railway.com/graphql/v2:Query.projectCompliance

Get comprehensive compliance information for a project including 2FA status, member permissions, backup schedules, and compliance…

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.projectCreate

Creates a new project.

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.projectDelete

Deletes a project.

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.projectFavoriteSet

Star or unstar a project for the authenticated user.

自备 Key
POST backboard.railway.com/graphql/v2:Query.projectFavorites

The authenticated user's favorited project ids in a workspace, in the order the Favorites row should render them.

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.projectInvitationCreate

Create an invitation for a project

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.projectInvitationDelete

Delete an invitation for a project

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.projectInvitationResend

Resend an invitation for a project

自备 Key
POST backboard.railway.com/graphql/v2:Query.projectInvitations

Get invitations for a project

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.projectLeave

Leave project as currently authenticated user

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.projectMemberAdd

Add a workspace member to a project with a specific role.

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.projectMemberRemove

Remove user from a project

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.projectMemberUpdate

Change the role for a user within a project

自备 Key
POST backboard.railway.com/graphql/v2:Query.projectMembers

Gets users who belong to a project along with their role

自备 Key
POST backboard.railway.com/graphql/v2:Query.projectResourceAccess

Get resource access rules for project-specific actions

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.projectScheduleDelete

Deletes a project with a 48 hour grace period.

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.projectScheduleDeleteCancel

Cancel scheduled deletion of a project

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.projectScheduleDeleteForce

Force delete a scheduled deletion of a project (skips the grace period)

自备 Key
POST backboard.railway.com/graphql/v2:Query.projectServiceUsage

Get paginated usage grouped by project and service for a workspace.

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.projectTransfer

Transfer a project to a workspace

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.projectTransferConfirm

Confirm the transfer of project ownership

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.projectTransferInitiate

Initiate the transfer of project ownership

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.projectUpdate

Updates a project.

自备 Key
POST backboard.railway.com/graphql/v2:Query.projectWorkspaceMembers

Get workspace members for a project with 2FA details

自备 Key
POST backboard.railway.com/graphql/v2:Query.projects

Gets all projects for a user or workspace.

自备 Key
POST backboard.railway.com/graphql/v2:Query.projectsByIds

Fetch multiple projects by id.

自备 Key
POST backboard.railway.com/graphql/v2:Query.service

Get a service by ID

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.serviceCreate

Creates a new service.

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.serviceDelete

Deletes a service.

自备 Key
POST backboard.railway.com/graphql/v2:Query.serviceInstance

Get a service instance belonging to a service and environment

自备 Key
POST backboard.railway.com/graphql/v2:Query.serviceInstanceAutoDeployStatus

Returns the auto-deploy status for a service instance, including whether it can be enabled.

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.serviceInstanceAutoDeployUpdate

Enables or disables auto-deploy for a service instance.

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.serviceInstanceAutoUpdateScheduleUpdate

Update the auto-update maintenance window for a service instance, applied immediately (no config staging, no redeploy).

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.serviceInstanceAutoUpdateSnooze

Skip the next scheduled auto-update for a service instance.

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.serviceInstanceAutoUpdateSnoozeClear

Undo an active auto-update skip for a service instance, applied immediately (no config staging, no redeploy).

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.serviceInstanceClearanceUpdate

Sets a service instance's own Railway Authentication setting: on, off, or none (follow the environment's default).

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.serviceInstanceDeploy

Deploy a service instance

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.serviceInstanceDeployV2

Deploy a service instance.

自备 Key
POST backboard.railway.com/graphql/v2:Query.serviceInstanceIsUpdatable

Check if the upstream repo for a service has an update available

自备 Key
POST backboard.railway.com/graphql/v2:Query.serviceInstanceLimitOverride

Get the service instance resource limit overrides (null if no overrides set)

自备 Key
POST backboard.railway.com/graphql/v2:Query.serviceInstanceLimits

Get the merged resource limits for a service instance (includes plan defaults)

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.serviceInstanceLimitsUpdate

Update the resource limits for a service instance

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.serviceInstanceRedeploy

Redeploy a service instance

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.serviceInstanceUpdate

Update a service instance

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.serviceInstanceVulnRemediationDismiss

Dismiss a pending database security update and cancel its scheduled redeploy.

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.serviceInstanceVulnRemediationPatchNow

Apply a pending database security update now (backup, then redeploy).

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.serviceUpdate

Updates a service.

自备 Key
POST backboard.railway.com/graphql/v2:Query.environment

Find a single environment

自备 Key
POST backboard.railway.com/graphql/v2:Query.environmentChangeSetApply

Returns the status or completed result of an asynchronous RailwayChangeSet apply.

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.environmentClearanceDefaultUpdate

Sets whether Railway Authentication protects an environment's services that have no setting of their own, and pushes it to them.

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.environmentCreate

Creates a new environment.

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.environmentDelete

Deletes an environment.

自备 Key
POST backboard.railway.com/graphql/v2:Query.environmentHasLegacyStaticEgress

Whether any service in the environment is on legacy static egress (not HA).

自备 Key
POST backboard.railway.com/graphql/v2:Query.environmentHistory

Settled history for an environment (system events + terminal operations), newest first.

自备 Key
POST backboard.railway.com/graphql/v2:Mutation.environmentIacPartialRelease

Release resources from a named IaC partial without deleting, redeploying, or changing them.

自备 Key
已展示 60 / 334 个操作,在上方输入关键词可检索全部。

常见问题

如何在 Claude Code 或 Cursor 中接入 Railway?

通过 Duang 远程 MCP 网关(https://api.duang.ai/mcp)一键连接,即可让 AI Agent 调用 Railway 全部 334 个操作,无需本地维护 MCP 插件或明文密钥。

通过 Duang 接入 Railway 需要额外付费吗?

团队应用接入永久 $0 平台费。凭证加密封存于团队金库,永不进入模型上下文。

我的 Railway 密钥会暴露给大模型吗?

不会。密钥仅在 Duang 服务端出站请求时解密注入,本地配置文件与大模型上下文中均不包含明文密钥。

相关团队应用