railguey-mcp-cloudflare
Provides tools for interacting with Railway's GraphQL API, allowing AI agents to manage Railway projects and deployments using paired account tokens.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@railguey-mcp-cloudflareshow me my Railway projects and recent deployments"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
railguey-mcp-cloudflare
Railguey in the cloud. A Cloudflare Worker MCP server that bridges Grok to Railway GraphQL.
The CLI lives in eidos-agi/railguey. This repo is the hosted Streamable HTTP MCP that Grok can actually add as a connector — Railway’s own MCP (mcp.railway.com) is OAuth/CLI-shaped and cannot be added to Grok directly.
Live worker: railguey.eidos-agi.workers.dev
MCP: https://railguey.eidos-agi.workers.dev/mcp
Product page: eidosagi.com/tools/railguey
Why a separate repo
Repo | What it is |
Project-scoped Railway CLI (Go). Local shells, GitHub Actions, agents with a workspace path. | |
| Hosted MCP server (this Worker). Grok talks HTTP here; the Worker talks Railway GraphQL. |
The Worker script is still named railguey on Cloudflare. That name is the workers.dev host and must match wrangler.toml name. The GitHub repo is named for what it is.
Related MCP server: @crisog/railway-mcp-server
Pairing (claim codes)
Railway tokens never go through Grok chat. Pairing is a device-code flow:
Grok calls
account_pair_begin(or a code is minted here).You open
/pair/<CODE>on this worker.Paste a Railway token and give the account a slug (
eidos,personal,client-acme).The worker validates the token against Railway, stores it in KV, and Grok sees it via
account_list.
Codes expire in 10 minutes, are single-use, and burn after 8 failed pastes.
Account tokens (railway.com/account/tokens), workspace tokens, and project tokens (Project → Settings → Tokens) are all accepted. Kind is recorded so Grok knows the scope.
Multiple accounts
Each pair is a named slot. Railway tools take an optional account slug. One slot is the default.
This matches the CLI model (~/.railguey/accounts.json) — named accounts, one default — stored in Workers KV instead of a home directory.
Endpoints
GET /— status pageGET /health— JSON health (no secrets; includes paired account metadata)GET /pair— enter a claim codeGET|POST /pair/:code— paste a Railway tokenPOST /mcp— MCP Streamable HTTP (auth required)
Secrets and bindings
MCP_AUTH_TOKEN— bearer Grok sends asAuthorization: Bearer …KV
ACCOUNTS(railguey-accounts) — paired Railway tokens, claim codes, default slug
Never commit tokens. wrangler.toml only has the KV namespace id and Cloudflare account id.
Connect in Grok
grok.com/connectors → Add connector → Other
Server URL:
https://railguey.eidos-agi.workers.dev/mcpHeader:
Authorization: Bearer <MCP_AUTH_TOKEN>Ask Grok to pair a Railway account, then open the claim URL it returns
Deploy
git push to main is the deploy. This repo is permanently attached to the live Worker:
Push to
eidos-agi/railguey-mcp-cloudflaremain(especiallyindex.js).Grok automation
railguey-git-deployfires on that push, uploadsindex.jsto Workerrailguey, and keeps KV +MCP_AUTH_TOKEN.Hourly backup redeploys
mainif a push event is missed.
No Cloudflare API token in GitHub. No Cloudflare GitHub App. Changing MCP behavior means editing index.js and pushing.
loader.js is a Dynamic Worker Loader (git-pull at the edge). It is not live — this Cloudflare account is on the free Workers plan (API 10195). wrangler.toml main stays index.js.
name = "railguey" must not change. Renaming the Worker would break the live host and Grok’s connector URL.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Host your MCP tool over streamable HTTP in one command.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
- QuallaaOAuthcom.quallaa
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive management of Railway infrastructure, including projects, services, variables, and deployments, directly through the Railway GraphQL API. It is designed to work as a remote service over HTTP, allowing seamless integration with cloud-based MCP clients like claude.ai.MIT
- AlicenseNot gradedqualityDmaintenanceUnofficial 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.64 npm2MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that exposes the Railway API as tools for Claude. Manage Railway projects, services, deployments, variables, environments, and domains directly from Claude.16 npmMIT
- FlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server that gives Claude (and other MCP-compatible AI tools) full access to your Railway.app infrastructure. Deploy, manage services, check logs, configure environment variables — all through natural conversation.3010 npm-