Railway MCP server
394 operations0 webhooks
Projects, environments, services and service instances, deployments with logs, deploy, redeploy, restart and rollback, variables, domains and TCP proxies, volumes and backups, buckets, databases, templates, GitHub repo deploys, workspaces, members, invitations and tokens, notification rules, observability dashboards, metrics, HTTP logs and traces, usage limits, sandboxes and cloud agents (394 operations over Railway's public GraphQL API).
Try Railway with your agent
Connect Railway, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in Railway on my account, then run one read-only example and show me the result.
Railway tools and triggers
Tools are what your agent can do in Railway through Corsair's MCP server. Triggers are the Railway events a routine can start from.
Environments
- Apply Change SetDestructive
Experimental: applies an intent-level RailwayChangeSet and returns operation results
environments.applyChangeSet
- Change Set Apply StatusRead-only
Returns the status or completed result of an asynchronous RailwayChangeSet apply
environments.changeSetApplyStatus
- CreateDestructive
Creates a new environment
environments.create
- DeleteDestructive
Deletes an environment
environments.delete
- GetRead-only
Find a single environment
environments.get
- Has Legacy Static EgressRead-only
Whether any service in the environment is on legacy static egress (not HA). Used to surface the HA migration banner
environments.hasLegacyStaticEgress
- HistoryRead-only
Settled history for an environment (system events + terminal operations), newest first. Cursor-paginated, one page at a time (first/after)
environments.history
- Iac Partial ReleaseWrite
Release resources from a named IaC partial without deleting, redeploying, or changing them. Omit resources to release the entire partial. Whole-project management is possible once no named partials remain. A later named-partial apply can claim released resources again
environments.iacPartialRelease
- Iac Partial TransferDestructive
Transfer resources between named IaC partials without deleting, redeploying, or changing them. Omit resources to transfer the entire source partial. The destination may be a new or existing partial
environments.iacPartialTransfer
- ListRead-only
Gets all environments for a project, one page at a time (first/after)
environments.list
- LogsRead-only
Fetch logs for a project environment. Build logs are excluded unless a snapshot ID is explicitly provided in the filter
environments.logs
- Override BaseWrite
Sets the base environment override for a deployment trigger
environments.overrideBase
- Pending WorkRead-only
Pending project-mutating work for an environment. Unions registered OperationSources (patches, standalone deploys) and returns parent rows only — not a stored inbox
environments.pendingWork
- Preview Change SetRead-only
Experimental: previews an intent-level RailwayChangeSet without side effects
environments.previewChangeSet
- RenameWrite
Renames an environment
environments.rename
- Stage ChangesWrite
Sets the staged patch for a single environment
environments.stageChanges
- Staged ChangesRead-only
Get the latest staged commit for a single environment
environments.stagedChanges
- Trigger DeploysDestructive
Deploys all connected triggers for an environment
environments.triggerDeploys
- Unskip ServiceWrite
Deploy a service that was skipped when its environment was created, along with its skipped transitive dependencies
environments.unskipService
- Update Clearance DefaultWrite
Sets whether Railway Authentication protects an environment's services that have no setting of their own, and pushes it to them. Requires a workspace admin; turning it on also requires the workspace's Railway Authentication entitlement. Services with edge caching on that it protects have their caching turned off
environments.updateClearanceDefault
- Upsert Config Plan CommentWrite
Posts or updates a `railway config plan` comment on a GitHub pull request under the Railway app identity. The caller proves it runs in the target repo with a GitHub Actions OIDC token; the comment body is composed server-side from the structured plan
environments.upsertConfigPlanComment
Projects
- Add Feature FlagWrite
Add a feature flag for a project
projects.addFeatureFlag
- Cancel Scheduled DeleteWrite
Cancel scheduled deletion of a project
projects.cancelScheduledDelete
- ClaimWrite
Claims a project
projects.claim
- ComplianceRead-only
Get comprehensive compliance information for a project including 2FA status, member permissions, backup schedules, and compliance agreements. Requires workspace API token with admin access
projects.compliance
- Confirm TransferDestructive
Confirm the transfer of project ownership
projects.confirmTransfer
- CreateWrite
Create a project in a workspace (workspaceId), with an optional description and default environment name
projects.create
- DeleteDestructive
Permanently delete a project with every environment, service, deployment, volume and variable in it
projects.delete
- Force Scheduled DeleteDestructive
Force delete a scheduled deletion of a project (skips the grace period)
projects.forceScheduledDelete
- GetRead-only
Get a project by ID
projects.get
- Initiate TransferDestructive
Initiate the transfer of project ownership
projects.initiateTransfer
- LeaveDestructive
Leave project as currently authenticated user
projects.leave
- ListRead-only
List the projects the token can see (all workspaces, or one with workspaceId), as a page of nodes
projects.list
- List By IdsRead-only
Fetch multiple projects by id. Skips ids the caller cannot access (does not throw on partial denial). Intended for batched dashboard hydration of a small viewport-sized set of cards
projects.listByIds
- Remove Feature FlagDestructive
Remove a feature flag for a project
projects.removeFeatureFlag
- Resource AccessRead-only
Get resource access rules for project-specific actions
projects.resourceAccess
- Schedule DeleteDestructive
Deletes a project with a 48 hour grace period
projects.scheduleDelete
- Service UsageRead-only
Get paginated usage grouped by project and service for a workspace
projects.serviceUsage
- TransferDestructive
Transfer a project to a workspace
projects.transfer
- UpdateWrite
Updates a project
projects.update
- Update Clearance DefaultWrite
Sets whether environments created from now on start with Railway Authentication protecting services that have no setting of their own. Existing environments are unchanged. Requires a workspace admin; turning it on also requires the workspace's Railway Authentication entitlement
projects.updateClearanceDefault
- Workspace MembersRead-only
Get workspace members for a project with 2FA details
projects.workspaceMembers
Services
- Acknowledge TakedownWrite
Record that a workspace admin confirms subsequent deployments will exclude the content named in this notice, lifting its persistent takedown restriction. any other restriction on the service, and any other outstanding takedown, still applies. It permits a subsequent deployment; it does not restore an earlier one, and it is not Railway verifying the removal
services.acknowledgeTakedown
- Add Feature FlagWrite
Add a feature flag for a service
services.addFeatureFlag
- ConnectDestructive
Connect a service to a source
services.connect
- CreateDestructive
Create a service in a project from an image or a GitHub repo (source); a service with a source deploys right away and uses credits
services.create
- DeleteDestructive
Deletes a service
services.delete
- Disable CdnWrite
Disables CDN for a service, soft-deleting the edge config
services.disableCdn
- DisconnectWrite
Disconnect a service from a repo
services.disconnect
- Enable CdnDestructive
Enables CDN for a service, creating an edge config and attaching all live domains
services.enableCdn
- Generate Shell TokenDestructive
Creates a short-lived (5-minute) token for opening a shell, file, or network session to a running deployment
services.generateShellToken
- GetRead-only
Get a service by ID
services.get
- Purge CacheWrite
Purges the CDN cache for a service. Bumps the edge config's purge epoch so every edge node treats prior cached entries as stale on next request. Idempotent; returns true even if CDN is disabled for the service
services.purgeCache
- Remove Feature FlagDestructive
Remove a feature flag for a service
services.removeFeatureFlag
- Remove Upstream UrlDestructive
Remove the upstream URL from all service instances for this service
services.removeUpstreamUrl
- Set Under Attack ModeWrite
Enables or disables Under Attack Mode for a service. While enabled, the edge serves a browser challenge to unverified visitors of the service's edge-routed domains; non-browser clients (APIs, webhooks) without a clearance cookie are rejected with a 429. Optionally time-boxed via durationSeconds, after which the mode disarms automatically
services.setUnderAttackMode
- UpdateWrite
Updates a service
services.update
- Update Edge ConfigWrite
Updates the edge config (caching settings) for a service
services.updateEdgeConfig
- Update Edge RulesWrite
Replaces the service's edge rules (whole-section replace; null clears). Rules are boolean expressions over request attributes plus one action (block/allow/challenge/redirect/cache_override), evaluated at the edge before requests reach the service. The ruleset is validated server-side; invalid rulesets are rejected with per-rule diagnostics and nothing is written. Rules without an id get a server-assigned stable `rul_` id
services.updateEdgeRules
- Update KindWrite
Makes an ordinary service a Website (kind WEBSITE) and redeploys it in every environment where it has a deployment. A Website can't be made an ordinary service (kind null) yet. Returns false when the service already has that kind
services.updateKind
- Validate Edge RulesRead-only
Validates an edge ruleset without writing it — returns the same diagnostics updateServiceEdgeRules would reject with (empty list = valid). For live feedback in rule editors
services.validateEdgeRules
Service Instances
- Auto Deploy StatusRead-only
Returns the auto-deploy status for a service instance, including whether it can be enabled
serviceInstances.autoDeployStatus
- Clear Auto Update SnoozeWrite
Undo an active auto-update skip for a service instance, applied immediately (no config staging, no redeploy). The recurring maintenance window and update policy are untouched — the next scheduled occurrence fires normally again
serviceInstances.clearAutoUpdateSnooze
- DeployDestructive
Deploy the service in an environment from its latest source; the deployment runs on usage-billed compute
serviceInstances.deploy
- Deploy V2Destructive
Deploy the service in an environment from its latest source (or a commit) and return the new deployment id; runs on usage-billed compute
serviceInstances.deployV2
- Dismiss Vuln RemediationWrite
Dismiss a pending database security update and cancel its scheduled redeploy
serviceInstances.dismissVulnRemediation
- GetRead-only
Get a service instance belonging to a service and environment
serviceInstances.get
- Is UpdatableRead-only
Check if the upstream repo for a service has an update available
serviceInstances.isUpdatable
- Limit OverrideRead-only
Get the service instance resource limit overrides (null if no overrides set)
serviceInstances.limitOverride
- LimitsRead-only
Get the merged resource limits for a service instance (includes plan defaults)
serviceInstances.limits
- Patch Vuln NowDestructive
Apply a pending database security update now (backup, then redeploy). Returns the new deployment id
serviceInstances.patchVulnNow
- RedeployDestructive
Redeploy a service instance
serviceInstances.redeploy
- Snooze Auto UpdateWrite
Skip the next scheduled auto-update for a service instance. Takes effect immediately, with no staged change and no redeploy. The maintenance window and update policy stay as they are. This only delays the next scheduled update
serviceInstances.snoozeAutoUpdate
- UpdateWrite
Update a service instance
serviceInstances.update
- Update Auto DeployWrite
Enables or disables auto-deploy for a service instance
serviceInstances.updateAutoDeploy
- Update Auto Update ScheduleWrite
Update the auto-update maintenance window for a service instance, applied immediately (no config staging, no redeploy). Only the schedule changes — the update policy is untouched
serviceInstances.updateAutoUpdateSchedule
- Update ClearanceWrite
Sets a service instance's own Railway Authentication setting: on, off, or none (follow the environment's default). Requires a workspace admin; ending up on also requires the workspace's Railway Authentication entitlement and edge caching off
serviceInstances.updateClearance
- Update LimitsWrite
Update the resource limits for a service instance
serviceInstances.updateLimits
Cloud Agents
- ArchiveWrite
Archive a cloud agent, hiding it from lists of unarchived agents. Requires permission to manage the agent
cloudAgents.archive
- CreateDestructive
Create a cloud agent
cloudAgents.create
- Create Dashboard FeedbackWrite
Send feedback about the agent dashboard to the Railway team. True once delivered
cloudAgents.createDashboardFeedback
- Create FeedbackWrite
Send lightweight agent feedback to Railway. Returns the report ID after delivery
cloudAgents.createFeedback
- DeleteDestructive
Delete a cloud agent
cloudAgents.delete
- DeployDestructive
Build the agent's code inside its own VM and deploy it. Creates the named service (default: the agent's name) or reuses it. Needs an agent booted with the builder
cloudAgents.deploy
- ForkDestructive
Duplicate a running cloud agent. With sessionId, the new agent keeps that chat and its history; without it, it starts with no chats
cloudAgents.fork
- GetRead-only
A cloud agent by ID, within an environment. Null when the agent belongs to another one, so a caller cannot render an agent it has switched away from
cloudAgents.get
- ListRead-only
Cloud agents in an environment
cloudAgents.list
- List MineRead-only
Cloud agents you own, across every project and environment you can reach. Answers "where are my agents" in one request; `cloudAgents` needs one call per environment. Machine fields (`status`, `domain`, `domains`) read the last observed state in batched queries, so selecting them across many environments is fine
cloudAgents.listMine
- Mark SeenWrite
Mark the agent's finished and failed sessions as seen, or only sessionId's. Requires permission to manage the agent
cloudAgents.markSeen
- Rename SessionWrite
Set a session's title, shown over its generated one. An empty title clears it
cloudAgents.renameSession
- SleepWrite
Sleep a running cloud agent, keeping its volume. Processes on the machine are terminated; waking re-runs its entrypoint
cloudAgents.sleep
- UnarchiveWrite
Restore an archived cloud agent. Requires permission to manage the agent
cloudAgents.unarchive
- WakeDestructive
Wake a sleeping cloud agent
cloudAgents.wake
Deployments
- ApproveDestructive
Approves a deployment
deployments.approve
- Build LogsRead-only
Get the build log lines of a deployment
deployments.buildLogs
- CancelWrite
Cancels a deployment
deployments.cancel
- Create Instance ExecutionDestructive
Invoke a deployment instance execution
deployments.createInstanceExecution
- EventsRead-only
Get the deployment events for a deployment, one page at a time (first/after)
deployments.events
- GetRead-only
Find a single deployment
deployments.get
- Instance ExecutionsRead-only
Get the deployment instance executions for a deployment, one page at a time (first/after)
deployments.instanceExecutions
- ListRead-only
Get all deployments, one page at a time (first/after)
deployments.list
- LogsRead-only
Get the runtime log lines of a deployment, optionally filtered and between two dates
deployments.logs
- RedeployDestructive
Redeploys a deployment
deployments.redeploy
- RemoveDestructive
Removes a deployment
deployments.remove
- RestartDestructive
Restarts a deployment
deployments.restart
- RollbackDestructive
Rolls back to a deployment
deployments.rollback
- SnapshotRead-only
Find a single DeploymentSnapshot
deployments.snapshot
- StopDestructive
Stops a deployment
deployments.stop
Templates
- CloneWrite
Duplicates an existing template
templates.clone
- CountRead-only
Count all published templates
templates.count
- DeleteDestructive
Deletes a template
templates.delete
- DeployDestructive
Deploy a template (by id or code) into a project and environment; the services it creates run on usage-billed compute
templates.deploy
- Eject Service SourceWrite
Ejects a service from the template and creates a new repo in the provided org
templates.ejectServiceSource
- GenerateWrite
Generate a template for a project
templates.generate
- GetRead-only
Get a template by code or ID or GitHub owner and repo
templates.get
- ListRead-only
Get all published templates, one page at a time (first/after)
templates.list
- MetricsRead-only
Get the metrics for a template
templates.metrics
- PublishWrite
Publishes a template
templates.publish
- RevertWrite
Reverts an HA cluster to standalone mode using template metadata to derive variables to remove
templates.revert
- SearchRead-only
Search published templates using the backend-ranked template search index, one page at a time (first/after)
templates.search
- Source For ProjectRead-only
Get the source template for a project
templates.sourceForProject
- UnpublishWrite
Unpublishes a template
templates.unpublish
- Update VolumeWrite
Sets the default size (in MB) for a volume mount in a template's config. New volumes created when the template is deployed are provisioned at this size, clamped to the deployer's plan maximum. Pass sizeMB: null to clear the pre-size and fall back to the plan default. Editing a template requires maintainer access
templates.updateVolume
Workspaces
- Compliance AgreementsRead-only
Get compliance agreements for a workspace including HIPAA BAA and GDPR DPA status
workspaces.complianceAgreements
- Create Invite CodeDestructive
Get an invite code for a workspace and role
workspaces.createInviteCode
- DeleteDestructive
Delete a workspace and all data associated with it
workspaces.delete
- GetRead-only
Get the workspace
workspaces.get
- Get By CodeRead-only
Find a workspace by invite code
workspaces.getByCode
- Identity ProvidersRead-only
Gets all identity providers of a workspace, one page at a time (first/after)
workspaces.identityProviders
- LeaveDestructive
Leave a workspace
workspaces.leave
- List ExternalRead-only
Get the workspaces the user doesn't belong to, but needs access (like when invited to a project)
workspaces.listExternal
- Set Restrict Project Visibility To GroupsWrite
Control whether non-admin project visibility is restricted to access groups and direct project permissions
workspaces.setRestrictProjectVisibilityToGroups
- UpdateWrite
Update a workspace by id
workspaces.update
- Update Two Factor EnforcementDestructive
Enable or disable 2FA enforcement for a workspace
workspaces.updateTwoFactorEnforcement
- Upsert Slack ChannelWrite
Generate a Slack channel for a workspace
workspaces.upsertSlackChannel
- Usage TotalsRead-only
Workspace-wide SUM of the same UI usage rollup as `usage` grouped by project. Use this for the usage-page header so it does not wait on per-project rows. Deleted projects that still bill are included when `includeDeleted` is true
workspaces.usageTotals
- Use Invite CodeWrite
Use an invite code to join a workspace
workspaces.useInviteCode
Github
- Pr InfoRead-only
Get info for a GitHub pull request
github.prInfo
- Pr Info ResultRead-only
Get info for a GitHub pull request, including fetch errors
github.prInfoResult
- Repo Access AvailableRead-only
Checks if user has access to GitHub repository
github.repoAccessAvailable
- Repos.BranchesRead-only
Get branches for a GitHub repo that the authenticated user has access to
github.repos.branches
- Repos.DeployDestructive
Deploys a GitHub repo
github.repos.deploy
- Repos.GetRead-only
Checks if user has access to GitHub repository
github.repos.get
- Repos.Is Name AvailableRead-only
Check if a repo name is available
github.repos.isNameAvailable
- Repos.ListRead-only
Get a list of repos for a user that Railway has access to
github.repos.list
- Repos.UpdateWrite
Updates a GitHub repo through the linked template
github.repos.update
- Ssh KeysRead-only
Gets SSH public keys from the authenticated user's GitHub account
github.sshKeys
- Writable ScopesRead-only
Get a list of scopes the user has installed the installation to
github.writableScopes
Signals
- ChangesRead-only
Recent audit log entries for a signal
signals.changes
- CreateWrite
Register a new signal for an owner scope
signals.create
- DeleteDestructive
Delete a signal and its audit log
signals.delete
- EvaluateRead-only
Evaluate a signal against an evaluation context (pure resolution; does not mutate registry state)
signals.evaluate
- GetRead-only
Fetch a single signal by owner scope and name
signals.get
- ListRead-only
List signals registered for an owner scope
signals.list
- ReplaceWrite
Replace a signal's type and default, clearing all rules. Destructive — intended for CLI --force re-type
signals.replace
- RollbackWrite
Restore a signal to the snapshot captured before a change (reads prevState from the target change row)
signals.rollback
- Set DefaultWrite
Change a signal's canonical default (production floor)
signals.setDefault
- Set RuleWrite
Attach or replace a rule on a signal. Matching rules must agree at resolution time or the default is returned
signals.setRule
- Unset RuleWrite
Remove a rule from a signal
signals.unsetRule
Databases
- Cancel Pitr Ha WorkflowWrite
Cancels an in-progress PITR enable/disable rollout on an HA database cluster and resets its progress so the UI re-reads from the live cluster. No-ops when nothing is running
databases.cancelPitrHaWorkflow
- Clear Pitr Ha Workflow ProgressWrite
Clears the recorded progress of a finished PITR enable/disable rollout so the Backups page starts fresh. A rollout still in progress cannot be cleared
databases.clearPitrHaWorkflowProgress
- Disable Pitr For Ha ClusterWrite
Disables point-in-time recovery on an HA database cluster with the same rolling rollout as enable. The backup bucket is left intact, so existing backup history is preserved
databases.disablePitrForHaCluster
- Enable Pitr For Ha ClusterDestructive
Enables point-in-time recovery on an HA database cluster (Postgres HA, MySQL HA) with a rolling, near-zero-downtime rollout across its members. Safe to retry
databases.enablePitrForHaCluster
- Mysql Pitr Restorable WindowRead-only
The point-in-time window a MySQL service's binlog archive can restore to, resolved from the archive bucket: the oldest full backup (floor), the newest shipped binlog (ceiling) and every full backup's timestamp. archiveConfigured is false when the service carries no complete BINLOG_ARCHIVE_* contract
databases.mysqlPitrRestorableWindow
- Password Rotation ProgressRead-only
Progress of the HA password rotation running for a cluster, or null when none is
databases.passwordRotationProgress
- Pitr Ha Cluster Replication HealthRead-only
Live replication health for an HA database cluster (Postgres HA, MySQL HA). Use it to gate the Enable/Disable PITR buttons so a rollout can't start while a member is too far behind to rejoin. Returns null when the service isn't an HA root
databases.pitrHaClusterReplicationHealth
- Pitr Ha Workflow ProgressRead-only
One-shot read of the current progress of a PITR enable/disable rollout on an HA database cluster. Use it to rehydrate state on page load, then poll this field for updates. Returns null when no rollout has run recently
databases.pitrHaWorkflowProgress
- Postgres Ha Cluster UptimeRead-only
One Postgres HA cluster's uptime SLI over the last N days: its row, its windows, its daily rollups. The cluster is named by any of its member services, since an environment can hold more than one. Errors when the service is not part of a Postgres HA cluster
databases.postgresHaClusterUptime
- Reset PasswordDestructive
Reset database credentials, coordinating all members for an HA cluster. On an HA cluster the rotation keeps running after this returns (`rotationInProgress`); follow `databasePasswordRotationProgress` until it reports DONE
databases.resetPassword
Egress Gateways
- Clear AssociationsDestructive
Clear all egress gateway associations for a service instance
egressGateways.clearAssociations
- Create AssociationDestructive
Create a new egress gateway association for a service instance
egressGateways.createAssociation
- Ha Migration PreviewRead-only
Preview the HA static egress IPs that would be assigned, without applying them. Set allEnvironments to cover all of the service's environments
egressGateways.haMigrationPreview
- Ha PreviewRead-only
Preview HA static egress IPs that would be assigned without persisting
egressGateways.haPreview
- Legacy PreviewRead-only
Preview legacy static egress IP that would be assigned without persisting
egressGateways.legacyPreview
- ListRead-only
All egress gateways assigned to a service instance
egressGateways.list
- Rollback From HaWrite
Switch a service from HA static egress IPs back to a standard static IP. Set allEnvironments to apply to all of the service's environments
egressGateways.rollbackFromHa
- Upgrade To HaDestructive
Enable HA static egress IPs for a service. Set allEnvironments to apply to all of the service's environments
egressGateways.upgradeToHa
Project Invitations
- AcceptWrite
Accept a project invitation using the invite code
projectInvitations.accept
- CreateDestructive
Create an invitation for a project
projectInvitations.create
- Create Invite CodeDestructive
Create a 24-hour project invite link, reusing a link created within the last hour
projectInvitations.createInviteCode
- DeleteDestructive
Delete an invitation for a project
projectInvitations.delete
- GetRead-only
Get a project invitation by code
projectInvitations.get
- Invite CodeRead-only
Get an invite code for a project for a specifc role
projectInvitations.inviteCode
- ListRead-only
Get invitations for a project
projectInvitations.list
- ResendDestructive
Resend an invitation for a project
projectInvitations.resend
Cloud Agent Tasks
- CancelWrite
Stop a task. Before its prompt is sent it never starts; after, only its own run is aborted. The task ends CANCELLED, with "The task was cancelled" as its error. A finished task is left as is
cloudAgentTasks.cancel
- DispatchDestructive
Start a task and return its handle. Creates a fresh agent by default; replyToTaskId continues the original conversation
cloudAgentTasks.dispatch
- GetRead-only
Read a task turn without waking the VM: the latest on the agent/session, or taskId's
cloudAgentTasks.get
- ListRead-only
List task records in an environment, newest first. Filter to one agent, or with sessionId to one session's turns
cloudAgentTasks.list
- ModelsRead-only
The models a task in this environment can run on, and the default a new conversation starts on
cloudAgentTasks.models
- RecoverDestructive
Recover the latest task response from the agent. May wake the VM
cloudAgentTasks.recover
- RespondDestructive
Answer a question the task is waiting on. Wakes a sleeping VM to deliver it (the question survives sleep); poll cloudAgentTask for the outcome
cloudAgentTasks.respond
Railway Domains
- Email Forwarding EligibilityRead-only
Whether email forwarding can be offered on this domain, or why it can't
railwayDomains.emailForwardingEligibility
- Email Forwarding LimitsRead-only
Caps the forwarding UI surfaces before a rule is rejected server-side. Pass workspaceId for that workspace's alias allowance; without it the highest plan's is returned
railwayDomains.emailForwardingLimits
- GetRead-only
Get a Railway domain by ID
railwayDomains.get
- Get By NameRead-only
Get a Railway domain by its domain name within a workspace
railwayDomains.getByName
- ListRead-only
Get Railway domains for a workspace
railwayDomains.list
- Set NameserversDestructive
Delegate the domain's authoritative nameservers to an external DNS provider, or reset to Railway defaults by passing an empty list
railwayDomains.setNameservers
- UpdateWrite
Update a Railway domain's settings
railwayDomains.update
Sandboxes
- Build TemplateDestructive
Build a sandbox template into a bootable checkpoint
sandboxes.buildTemplate
- CreateDestructive
Create a sandbox in an environment
sandboxes.create
- DestroyDestructive
Destroy a sandbox
sandboxes.destroy
- GetRead-only
Get a sandbox by id
sandboxes.get
- HeartbeatWrite
Extend a sandbox's lifetime
sandboxes.heartbeat
- ListRead-only
List sandboxes in an environment, newest first. Passing first/after paginates; omitting them returns the full list, one page at a time (first/after)
sandboxes.list
- Template BuildRead-only
Get a template's build state by id (the recipe content hash). READY once its checkpoint exists; BUILDING/FAILED reflect the build workflow
sandboxes.templateBuild
Custom Domains
- CreateWrite
Creates a new custom domain
customDomains.create
- DeleteDestructive
Deletes a custom domain
customDomains.delete
- GetRead-only
Fetch details for a custom domain
customDomains.get
- Is AvailableRead-only
Checks if a custom domain is available
customDomains.isAvailable
- Issue CertificateDestructive
Issues a new certificate
customDomains.issueCertificate
- UpdateWrite
Updates a custom domain
customDomains.update
Environment Patches
- CommitDestructive
Commit the provided patch to the environment
environmentPatches.commit
- Commit StagedDestructive
Commits the staged changes for a single environment
environmentPatches.commitStaged
- Dismiss FailureWrite
Acknowledge a FAILED patch so it no longer shows as the environment's latest failure. The patch is left untouched
environmentPatches.dismissFailure
- GetRead-only
Get a single environment patch by ID
environmentPatches.get
- ListRead-only
Get the patches for an environment, one page at a time (first/after)
environmentPatches.list
- RestageWrite
Copy a FAILED patch's changes into the environment's staged patch (creating one if needed). The FAILED patch is left untouched
environmentPatches.restage
Railway Domain Email Forwarding Rules
- CreateWrite
Forward an address on this domain to an external inbox
railwayDomainEmailForwardingRules.create
- DeleteDestructive
Stop forwarding an address on this domain
railwayDomainEmailForwardingRules.delete
- ListRead-only
List email forwarding rules for a Railway domain
railwayDomainEmailForwardingRules.list
- Remove AllDestructive
Stop forwarding every address on this domain, and remove the mail records that delivered them
railwayDomainEmailForwardingRules.removeAll
- Send TestDestructive
Send a message to a forwarded address so the customer can confirm it delivers
railwayDomainEmailForwardingRules.sendTest
- UpdateWrite
Change where a forwarded address delivers
railwayDomainEmailForwardingRules.update
User
- Agree To Fair UseWrite
Agree to the fair use policy for the currently authenticated user
user.agreeToFairUse
- DeleteDestructive
Delete the currently authenticated user
user.delete
- Disconnect DiscordWrite
Disconnect your Railway account from Discord
user.disconnectDiscord
- Pending Email ChangeRead-only
The authenticated user's unconfirmed email change, if there is one
user.pendingEmailChange
- Remove Provider AuthDestructive
Deletes a ProviderAuth
user.removeProviderAuth
- Update TermsWrite
Update date of TermsAgreedOn
user.updateTerms
Buckets
- CreateDestructive
Create a bucket in a project
buckets.create
- Instance DetailsRead-only
Get the S3-compatible credentials for a bucket
buckets.instanceDetails
- Reset CredentialsDestructive
Reset the credentials for a bucket in an environment
buckets.resetCredentials
- S3 CredentialsRead-only
Get the S3-compatible credentials for a bucket
buckets.s3Credentials
- UpdateWrite
Updates a bucket
buckets.update
Notification Rules
- CreateWrite
Create a new notification rule
notificationRules.create
- DeleteDestructive
Delete a notification rule
notificationRules.delete
- ListRead-only
Get all notification rules for a workspace and project
notificationRules.list
- UpdateWrite
Update a notification rule
notificationRules.update
- Upsert Slack ChannelWrite
Generate a Slack channel for a workspace
notificationRules.upsertSlackChannel
Ssh Public Keys
- Approve SignupDestructive
Approve an SSH signup: register the offered SSH key on the authenticated account so the agent is recognized. When the key owns an anonymous trial box, claims that trial into workspaceId and re-owns the key
sshPublicKeys.approveSignup
- CreateDestructive
Creates a new SSH public key. When workspaceId is provided (or omitted under a workspace-scoped API token, in which case it defaults to the token's workspace), the key is owned by the workspace and can be used by anyone authenticating as that workspace via native SSH; requires workspace ADMIN access. Otherwise the key is owned by the authenticated user
sshPublicKeys.create
- DeleteDestructive
Deletes an SSH public key
sshPublicKeys.delete
- ListRead-only
Gets SSH public keys. If workspaceId is provided, returns the keys owned by that workspace (requires workspace MEMBER access). Under a workspace-scoped API token, workspaceId defaults to the token's workspace when omitted; otherwise returns the authenticated user's personal keys, one page at a time (first/after)
sshPublicKeys.list
- Signup InfoRead-only
Details for an SSH signup confirm page: the SSH key fingerprint to verify before binding it to the account, and the trial box it owns if any
sshPublicKeys.signupInfo
Trusted Domains
- CreateWrite
Create a new trusted domain for this workspace
trustedDomains.create
- DeleteDestructive
Delete a trusted domain
trustedDomains.delete
- ListRead-only
Get all trusted domains for a workspace, one page at a time (first/after)
trustedDomains.list
- Retrigger VerificationWrite
Check the DNS record for a workspace email domain
trustedDomains.retriggerVerification
- UpdateWrite
Update the automatic joining policy for a workspace email domain
trustedDomains.update
Variables
- DeleteDestructive
Deletes a variable
variables.delete
- For Service DeploymentRead-only
All rendered variables that are required for a service deployment
variables.forServiceDeployment
- ListRead-only
Get the variables of a service in an environment (or the shared ones without serviceId), as a name -> value map
variables.list
- UpsertWrite
Create or change one variable; Railway redeploys the service unless skipDeploys is set
variables.upsert
- Upsert ManyWrite
Create or change several variables at once (replace: true drops the others); redeploys unless skipDeploys is set
variables.upsertMany
Volume Instance Backups
- CreateDestructive
Create backup of a volume instance
volumeInstanceBackups.create
- DeleteDestructive
Deletes volume instance backup
volumeInstanceBackups.delete
- ListRead-only
List backups of a volume instance
volumeInstanceBackups.list
- LockWrite
Removes backup expiration date
volumeInstanceBackups.lock
- RestoreDestructive
Restore a volume instance from a backup
volumeInstanceBackups.restore
Workspace Policies
- Add Deploy SourceWrite
Add a deploy source to a workspace policy allowlist
workspacePolicies.addDeploySource
- GetRead-only
Get the policies for a workspace
workspacePolicies.get
- Remove Deploy SourceDestructive
Remove a deploy source from a workspace policy allowlist
workspacePolicies.removeDeploySource
- Selectable Deploy SourcesRead-only
List deploy sources that can be added to a workspace policy
workspacePolicies.selectableDeploySources
- Update ItemWrite
Enable or disable a workspace policy. Enterprise workspaces only
workspacePolicies.updateItem
Api Tokens
- CreateDestructive
Creates a new API token
apiTokens.create
- CurrentRead-only
Introspect the current API token and its accessible workspaces
apiTokens.current
- DeleteDestructive
Deletes an API token
apiTokens.delete
- ListRead-only
Gets all API tokens for the authenticated user, one page at a time (first/after)
apiTokens.list
Cloud Agent Checkpoints
- CreateDestructive
Checkpoint the agent's disk. Poll cloudAgentCheckpoint until SUCCEEDED
cloudAgentCheckpoints.create
- DeleteDestructive
Delete a checkpoint
cloudAgentCheckpoints.delete
- GetRead-only
A cloud agent checkpoint by ID
cloudAgentCheckpoints.get
- ListRead-only
Cloud agent checkpoints in an environment, newest first, one page at a time (first/after)
cloudAgentCheckpoints.list
Deployment Triggers
- CreateWrite
Creates a deployment trigger
deploymentTriggers.create
- DeleteDestructive
Deletes a deployment trigger
deploymentTriggers.delete
- ListRead-only
All deployment triggers, one page at a time (first/after)
deploymentTriggers.list
- UpdateWrite
Updates a deployment trigger
deploymentTriggers.update
Observability Dashboards
- CreateWrite
Create an observability dashboard
observabilityDashboards.create
- ListRead-only
Get all observability dashboards for an environment, one page at a time (first/after)
observabilityDashboards.list
- ResetWrite
Reset an observability dashboard to default dashboard items
observabilityDashboards.reset
- UpdateWrite
Update an observability dashboard
observabilityDashboards.update
Project Members
- AddDestructive
Add a workspace member to a project with a specific role. The user must already be a member of the project's workspace
projectMembers.add
- ListRead-only
Gets users who belong to a project along with their role
projectMembers.list
- RemoveDestructive
Remove user from a project
projectMembers.remove
- UpdateDestructive
Change the role for a user within a project
projectMembers.update
Project Tokens
- CreateDestructive
Create a token for a project that has access to a specific environment
projectTokens.create
- DeleteDestructive
Delete a project token
projectTokens.delete
- GetRead-only
Get a single project token by the value in the header
projectTokens.get
- ListRead-only
Get all project tokens for a project, one page at a time (first/after)
projectTokens.list
Railway Domain Dns Records
- CreateWrite
Create a DNS record for a Railway domain
railwayDomainDnsRecords.create
- DeleteDestructive
Delete a DNS record for a Railway domain
railwayDomainDnsRecords.delete
- ListRead-only
List DNS records for a Railway domain
railwayDomainDnsRecords.list
- UpdateWrite
Update a DNS record for a Railway domain
railwayDomainDnsRecords.update
Sandbox Checkpoints
- CreateWrite
Capture a running sandbox's current disk into a reusable, named checkpoint. Synchronous: the checkpoint is ready when this returns
sandboxCheckpoints.create
- DeleteDestructive
Delete a sandbox checkpoint
sandboxCheckpoints.delete
- ListRead-only
List named sandbox checkpoints in an environment
sandboxCheckpoints.list
- RenameWrite
Rename a sandbox checkpoint
sandboxCheckpoints.rename
Service Domains
- CreateWrite
Creates a new service domain
serviceDomains.create
- DeleteDestructive
Deletes a service domain
serviceDomains.delete
- Is AvailableRead-only
Checks if a service domain is available
serviceDomains.isAvailable
- UpdateWrite
Updates a service domain
serviceDomains.update
Usage
- EstimatedRead-only
Get the estimated total cost of the project at the end of the current billing cycle. If no `startDate` is provided, the usage for the current billing period of the project owner is returned
usage.estimated
- GetRead-only
Get the usage for a single project or all projects for a user/workspace. If no `projectId` or `workspaceId` is provided, the usage for the current user is returned. If no `startDate` is provided, the usage for the current billing period of the project owner is returned
usage.get
- Remove LimitDestructive
Remove the usage limit for a customer
usage.removeLimit
- Set LimitDestructive
Set the usage limit for a customer
usage.setLimit
Volume Instances
- GetRead-only
Get a single volume instance by id
volumeInstances.get
- Pitr RestoreDestructive
Point-in-time restore. Creates a brand-new database service in the project, recovered to the target timestamp from the source service's backup history. The source service stays online and untouched
volumeInstances.pitrRestore
- Pitr Restore EstimateRead-only
Estimated disk space a point-in-time restore to this target needs, and whether it fits your plan's largest volume. Returns null when no estimate is available
volumeInstances.pitrRestoreEstimate
- UpdateWrite
Update a volume instance. If no environmentId is provided, all volume instances for the volume will be updated
volumeInstances.update
Access Groups
- CreateWrite
Create an access group in a workspace
accessGroups.create
- DeleteDestructive
Delete an access group
accessGroups.delete
- UpdateWrite
Update an access group's name or role
accessGroups.update
Audit Logs
- Event TypesRead-only
Get a list of all audit log event types and their description
auditLogs.eventTypes
- GetRead-only
Get an audit log by ID
auditLogs.get
- ListRead-only
Gets audit logs for a workspace, one page at a time (first/after)
auditLogs.list
Feature Flags
- AddWrite
Add a feature flag for a user
featureFlags.add
- List PlatformRead-only
Returns the platform feature flags enabled for the current user
featureFlags.listPlatform
- RemoveDestructive
Remove a feature flag for a user
featureFlags.remove
Http Metrics
- DurationRead-only
Get HTTP request duration metrics for a service (avg, p50, p90, p95, p99)
httpMetrics.duration
- GetRead-only
Get HTTP request metrics for a service
httpMetrics.get
- Grouped By StatusRead-only
Get HTTP request metrics for a service, grouped by status code
httpMetrics.groupedByStatus
Notification Deliveries
- GetRead-only
Gets a notification delivery by ID for the authenticated user
notificationDeliveries.get
- ListRead-only
Gets notification deliveries for the authenticated user, one page at a time (first/after)
notificationDeliveries.list
- Mark As ReadWrite
Marks notification deliveries as read
notificationDeliveries.markAsRead
Observability Dashboard Monitors
- CreateWrite
Create an observability monitor for a dashboard item
observabilityDashboardMonitors.create
- RemoveDestructive
Remove an observability monitor from a dashboard item
observabilityDashboardMonitors.remove
- UpdateWrite
Update an observability monitor for a dashboard item
observabilityDashboardMonitors.update
Private Network Endpoints
- GetRead-only
Get a private network endpoint for a service instance
privateNetworkEndpoints.get
- Is Name AvailableRead-only
Check if an endpoint name is available
privateNetworkEndpoints.isNameAvailable
- RenameWrite
Rename a private network endpoint
privateNetworkEndpoints.rename
Traces
- GetRead-only
The spans of one trace, oldest first. Only spans belonging to the environment are returned
traces.get
- ListRead-only
Traces of an environment with at least one span matching the filter, newest first
traces.list
- StatusRead-only
Span activity per service of an environment within retention; a service absent from the list has produced no spans at all
traces.status
Volumes
- CreateDestructive
Create a persistent volume in a project
volumes.create
- DeleteDestructive
Delete a persistent volume in a project
volumes.delete
- UpdateWrite
Update a persistent volume in a project
volumes.update
Workspace Members
- Change RoleDestructive
Changes a user workspace permissions
workspaceMembers.changeRole
- InviteDestructive
Invite a user by email to a workspace
workspaceMembers.invite
- RemoveDestructive
Remove a user from a workspace
workspaceMembers.remove
Access Group Members
- AddDestructive
Add a workspace member to an access group
accessGroupMembers.add
- RemoveDestructive
Remove a member from an access group
accessGroupMembers.remove
Access Group Projects
- AttachWrite
Attach a project to an access group
accessGroupProjects.attach
- DetachWrite
Detach a project from an access group
accessGroupProjects.detach
Agent Usage
- GetRead-only
Get unified AI usage for a workspace
agentUsage.get
- Set LimitDestructive
Set agent usage limit for a workspace
agentUsage.setLimit
Billing
- Create Free Plan SubscriptionDestructive
Create a free plan subscription for a customer
billing.createFreePlanSubscription
- Toggle Payouts To CreditsDestructive
Toggle whether a customer is automatically withdrawing to credits
billing.togglePayoutsToCredits
Bot Scope Bindings
- ListRead-only
Railway agent chat bindings (Slack/Discord scope → workspace) across the caller's workspaces
botScopeBindings.list
- RemoveDestructive
Remove a Railway agent chat binding. Requires admin on the binding's workspace
botScopeBindings.remove
Canvas Views
- MergeDestructive
Merge a canvas layout from one environment into another. Re-computes the merge from current state and applies mutations
canvasViews.merge
- Merge PreviewRead-only
Preview a canvas layout merge from one environment to another. Returns the merged state and the mutations needed to reach it
canvasViews.mergePreview
Clearance Tokens
- CreateDestructive
Creates a Railway Authentication token for a project's protected services and returns it once. Requires a workspace admin and the workspace's Railway Authentication entitlement
clearanceTokens.create
- RevokeDestructive
Revokes a Railway Authentication token. Requires a workspace admin; works without the entitlement. Revoking a revoked token succeeds
clearanceTokens.revoke
Function Runtimes
- GetRead-only
Get information about a specific function runtime
functionRuntimes.get
- ListRead-only
List available function runtimes
functionRuntimes.list
Invite Codes
- GetRead-only
Get an invite code by the code
inviteCodes.get
- UseWrite
Join a project using an invite code
inviteCodes.use
Platform
- StatsRead-only
Get public Railway stats
platform.stats
- StatusRead-only
Get the current status of the platform
platform.status
Preferences
- GetRead-only
Get the email preferences for a user
preferences.get
- UpdateWrite
Update the email preferences for a user
preferences.update
Project Favorites
- ListRead-only
The authenticated user's favorited project ids in a workspace, in the order the Favorites row should render them. Defaults to the order they were starred in
projectFavorites.list
- SetWrite
Star or unstar a project for the authenticated user. Returns the resulting state
projectFavorites.set
Referral
- GetRead-only
Gets the ReferralInfo for the authenticated user
referral.get
- UpdateWrite
Updates the ReferralInfo for the authenticated user
referral.update
Sessions
- DeleteDestructive
Deletes a session
sessions.delete
- ListRead-only
Gets all sessions for authenticated user, one page at a time (first/after)
sessions.list
Tcp Proxies
- DeleteDestructive
Deletes a TCP proxy by id
tcpProxies.delete
- ListRead-only
All TCP proxies for a service instance
tcpProxies.list
User Profile
- GetRead-only
Get the public profile for a user
userProfile.get
- UpdateWrite
Updates the profile for the authenticated user
userProfile.update
Volume Instance Backup Schedules
- ListRead-only
List backups schedules of a volume instance
volumeInstanceBackupSchedules.list
- UpdateWrite
Manage schedule for backups of a volume instance
volumeInstanceBackupSchedules.update
Workspace Api Tokens
- DeleteDestructive
Revokes an API token scoped to a workspace. Requires workspace admin access
workspaceApiTokens.delete
- ListRead-only
Lists API tokens scoped to a workspace. Requires workspace admin access, one page at a time (first/after)
workspaceApiTokens.list
Cloud Agent Console Sessions
- ListRead-only
Shell and exec sessions running on a cloud agent's VM that you can reconnect to. Null if the agent has no running machine, one page at a time (first/after)
cloudAgentConsoleSessions.list
Dns Query Logs
- ListRead-only
Fetch individual DNS query logs for an environment
dnsQueryLogs.list
Docker Compose
- ImportDestructive
Create services and volumes from docker compose
dockerCompose.import
Domains
- ListRead-only
All domains for a service instance
domains.list
Events
- ListRead-only
Gets the events for a project, one page at a time (first/after)
events.list
Http Logs
- ListRead-only
Fetch HTTP logs for a deployment
httpLogs.list
Me
- GetRead-only
Get the user the token belongs to, with their workspaces
me.get
Metrics
- GetRead-only
Get metrics for a project, environment, and service
metrics.get
Network Flow Logs
- ListRead-only
Fetch individual network flow logs for an environment
networkFlowLogs.list
Passkeys
- ListRead-only
Gets all passkeys for the authenticated user, one page at a time (first/after)
passkeys.list
Private Networks
- ListRead-only
List private networks for an environment
privateNetworks.list
Regions
- ListRead-only
List available regions
regions.list
Resource Access
- GetRead-only
Get resource access for the current user or workspace
resourceAccess.get
Sandbox Sessions
- ListRead-only
Resumable sessions inside a sandbox — interactive shells and one-off exec commands, live or recently exited. Null when the sandbox can't report them (e.g. its vm-init predates session listing), one page at a time (first/after)
sandboxSessions.list
Shared Variables
- ConfigureWrite
Configure a shared variable
sharedVariables.configure
Two Factor
- GetRead-only
Gets the TwoFactorInfo for the authenticated user
twoFactor.get
Webhooks
- TestDestructive
Test a webhook URL by sending a sample payload. Returns the HTTP status code. Custom headers come from `headers`, plus the stored headers of `notificationRuleId` for names not passed
webhooks.test
Workflows
- StatusRead-only
Gets the status of a workflow
workflows.status
Workspace Templates
- ListRead-only
Get all templates for a workspace, one page at a time (first/after)
workspaceTemplates.list
Connect Railway to Claude, ChatGPT or Cursor
- 1
Connect Railway in Corsair
Add your Railway API key once in Corsair. Corsair stores the credential encrypted and makes the Railway API calls for your agent, so it never goes into a prompt or a config file. Connect Railway
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Railway. On a ChatGPT personal plan, connect Railway here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Add a custom MCP server with the address and choose OAuth. Personal plans get read tools only.Add to CursorOr add this to~/.cursor/mcp.json. Cursor opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Railway's read and write operations run right away and its 119 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/railway, add the Railway plugin, and connect with an API key. Then call methods like corsair.railway.api.accessGroupMembers.add() from your app. Corsair keeps each tenant isolated.
Yes. Railway requires an API key from your Railway account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit Railway, GitHub, Notion, Stripe, and the rest. Trigger Railway from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for projects, environments, services and service instances, deployments with logs, deploy, redeploy, restart and rollback, variables, domains and TCP proxies, volumes and backups, buckets, databases, templates, GitHub repo deploys, workspaces, members, invitations and tokens, notification rules, observability dashboards, metrics, HTTP logs and traces, usage limits, sandboxes and cloud agents (394 operations over Railway's public GraphQL API). Common builds include sync jobs, admin tooling, and agents that call Railway APIs from your backend.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Railway API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/railway in the open repo. When Railway ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your Railway data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Railway data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put Railway on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 119 destructive Railway operations. You can change a link's mode at hub.corsair.dev/me.