@crisog/railway-mcp-server

@crisog/railway-mcp-server

Unofficial MCP server for Railway that enables managing Railway infrastructure through natural language, including projects, services, deployments, environments, variables, templates, domains, volumes, observability, integrations, networking, and workflows.

Category
访问服务器

README

@crisog/railway-mcp-server

⚠️ This is an unofficial MCP server for Railway

This project is not affiliated with, officially maintained by, or endorsed by Railway. It is a community-built integration.

An unofficial Model Context Protocol (MCP) server for exposing Railway resources and automation tools to MCP-compatible clients.

Quick Start

Install MCP Server

This will add the following configuration to your Cursor settings:

{
  "mcpServers": {
    "railway-mcp-server": {
      "command": "npx",
      "args": ["-y", "@crisog/railway-mcp-server"]
    }
  }
}

Authentication

Getting Your Railway API Token

  1. Go to Railway Settings
  2. Create a new API token:
    • Account Token: Full access to all workspaces and projects
    • Workspace Token: Access to a specific workspace and its projects
    • Project Token: Access to a specific project environment
  3. Copy the token (you'll only see it once!)
  • Use the minimum required scope - Prefer Workspace or Project tokens over Account tokens when possible

Configuring the Token

Add your Railway API token to the MCP server configuration in ~/.cursor/mcp.json:

{
  "mcpServers": {
    "railway-mcp-server": {
      "command": "npx",
      "args": ["-y", "@crisog/railway-mcp-server"],
      "env": {
        "RAILWAY_API_TOKEN": "<YOUR_RAILWAY_API_TOKEN>"
      }
    }
  }
}

Important: Replace <YOUR_RAILWAY_API_TOKEN> with your actual token. After updating the configuration, restart Cursor for the changes to take effect.

Token Types & Scope

Railway supports three types of API tokens, each with different access levels:

  • Account Token: Global access to everything, multiple workspaces
  • Workspace Token: Single workspace access, multiple projects
  • Project Token: Scoped to specific environment within a project

Token Scope Matrix

Tool Category Account Token Workspace Token Project Token
Projects ✅ Full Access ✅ Full Access ❌ Not Authorized
Services ✅ Full Access ✅ Full Access ❌ Not Authorized
Environments ✅ Full Access ✅ Full Access ❌ Not Authorized
Deployments ✅ Full Access ✅ Full Access ❌ Not Authorized
Variables ✅ Full Access ✅ Full Access ❌ Not Authorized
Domains ✅ Full Access ✅ Full Access ❌ Not Authorized
Templates ✅ Full Access ✅ Full Access ✅ Full Access
Networking ✅ Full Access ✅ Full Access ❌ Not Authorized
Observability ✅ Full Access ✅ Full Access ❌ Not Authorized
Workflows ⚠️ Limited ⚠️ Limited ❌ Not Authorized
GitHub Integrations ✅ Full Access ❌ Not Authorized ❌ Not Authorized
Volumes ✅ Full Access ✅ Full Access ✅ Backups Only

Legend:

  • ✅ Full Access - All operations work
  • ⚠️ Limited - Some operations may be restricted
  • ❌ Not Authorized - Token scope doesn't allow access

Key Differences:

  • Account Token: Required for GitHub integrations. All other operations work identically to Workspace Token.
  • Workspace Token: Best for most operations. Workflow status works for template deployments but volume backup workflows return "Not Authorized". All other operations work correctly.
  • Project Token: Environment-scoped access. Only templates work fully. Volume backup operations (create, list) work with valid volume instance IDs in the token's scoped environment. Volume creation is not authorized. Deployment and observability operations return "Not Authorized" even for deployments in the token's scoped environment.

Available Tools

This MCP server provides 51 tools for managing Railway infrastructure, organized into the following categories:

Projects

  • railway_projects_list - List all projects for a user or workspace
  • railway_project_create - Create a new Railway project
  • railway_project_get - Get project details
  • railway_workspaces_list - List all workspaces the user is a member of

Services

  • railway_services_list - List all services in a project
  • railway_service_get - Get service details
  • railway_service_create - Create a new service in a project
  • railway_service_update - Update service metadata (name, icon)
  • railway_service_deploy_latest - Deploy service using latest commit or specific commit
  • railway_service_instance_build_command_update - Update the build command for a service instance (advanced; can change how your service builds)
  • railway_service_instance_start_command_update - Update the start command for a service instance (advanced; can change how your service runs)
  • railway_service_instance_predeploy_commands_update - Update pre-deploy commands for a service instance (advanced; runs before each deployment)

Deployments

  • railway_deployment_list - List deployments with filtering options
  • railway_deployment_get - Get deployment details
  • railway_deployment_logs - Fetch deployment logs
  • railway_deployment_events - Fetch deployment events
  • railway_deployment_redeploy - Redeploy a previous deployment
  • railway_deployment_restart - Restart a deployment
  • railway_deployment_stop - Stop a running deployment
  • railway_deployment_cancel - Cancel a pending/in-progress deployment
  • railway_deployment_rollback - Rollback to a previous deployment

Environments

  • railway_environments_list - List all environments for a project
  • railway_environment_create - Create a new environment (optionally clone from existing)
  • railway_environment_rename - Rename an environment
  • railway_environment_logs - Fetch environment logs
  • railway_environment_get_by_name - Get an environment by its name (useful when environments_list returns empty results)

Variables

  • railway_variable_upsert - Create or update a variable (project or service scope)
  • railway_variables_collection_upsert - Bulk create/update multiple variables
  • railway_variables_render_for_deployment - Resolve concrete variables for a service deployment

Templates

  • railway_templates_list - List available templates with pagination and filtering
  • railway_template_get - Get template details by code or GitHub owner/repo
  • railway_template_deploy - Deploy a template into a project or workspace

Domains

  • railway_domain_generate - Generate a railway.app domain for a service
  • railway_domains_list - List all domains for a service in an environment
  • railway_custom_domain_create - Add a custom domain to a service
  • railway_custom_domain_available - Check if a custom domain is available

Volumes

  • railway_volume_create - Create a new volume for persistent storage
  • railway_volume_instances_list - List all volume instances for an environment
  • railway_volume_instance_backup_create - Create a volume backup
  • railway_volume_instance_backup_list - List all backups for a volume
  • railway_volume_instance_backup_restore - Restore a volume instance from a backup

Observability

  • railway_observability_http_logs - Get HTTP request logs for a deployment
  • railway_observability_build_logs - Get build logs for a deployment
  • railway_observability_events - Get system events for a project

Integrations

  • railway_github_repos_list - List accessible GitHub repositories
  • railway_github_branches_list - List branches for a GitHub repository
  • railway_github_repo_deploy - Deploy a GitHub repository to Railway

Networking

  • railway_private_network_create_or_get - Create or retrieve a private network
  • railway_private_networks_list - List all private networks for an environment
  • railway_tcp_proxies_list - List TCP proxies for a service

Workflows

  • railway_workflow_status - Check status of asynchronous Railway workflows

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选