productivity
Railway MCP, CLI, and Lua Integration for AI Agents
Railway integration docs for AI agents: MCP gateway setup, Railway CLI commands, Lua API reference, credentials, and function schemas.
7 functions 6 read 1 write Bearer token auth
Railway for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
railway- route_slug
railway- package
railway- auth_strategy
bearer_tokenBearer token- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Railway CLIHeadless setup and direct function calls. Railway MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Railway MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Railway.
Claude Code Railway MCP setup for Claude Code. Cursor Railway MCP setup for Cursor. Codex Railway MCP setup for Codex. OpenAI Agents Railway MCP setup for OpenAI Agents SDK. Claude Agent SDK Railway MCP setup for Claude Agent SDK. Vercel AI SDK Railway MCP setup for Vercel AI SDK. LangChain Railway MCP setup for LangChain. LangGraph Railway MCP setup for LangGraph. CrewAI Railway MCP setup for CrewAI. MCP clients Railway MCP setup for Generic MCP Clients.
Railway CLI Matrix
Use these pages for direct Railway CLI workflows in scripts, CI, cron, and agent wrappers.
CI Railway CLI for CI. Cron Jobs Railway CLI for cron jobs. Shell Scripts Railway CLI for shell scripts. Headless Automation Railway CLI for headless automation. Coding Agents Railway CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
railway.railway_list_projects | Read read | 0 | List all Railway projects the authenticated user has access to. Returns project IDs, names, descriptions, and team info. |
railway.railway_get_project | Read read | 1 | Get detailed information about a specific Railway project, including its environments and plugins. |
railway.railway_create_project | Write write | 2 | Create a new Railway project with a name and optional description. |
railway.railway_list_services | Read read | 1 | List all services in a Railway project. Returns service IDs, names, and repository info. |
railway.railway_get_service | Read read | 1 | Get detailed information about a specific Railway service, including its source configuration and repository details. |
railway.railway_list_deployments | Read read | 3 | List deployments for a Railway service. Returns deployment status, environment, and creator info. |
railway.railway_get_current_user | Read read | 0 | Get information about the currently authenticated Railway user. Useful for verifying API credentials. |