Railway

Deploy Companion Games MCP

Play eight conversational games with your AI companion through MCP.

Deploy Companion Games MCP

Just deployed

/data

Deploy and Host Companion Games MCP on Railway

Companion Games MCP is a self-hosted Model Context Protocol server that lets ChatGPT and other MCP clients play eight conversational games: Hangman, Tic-Tac-Toe, Quiz, Word Quest, Hidden Fleet, Hidden Fleet Short, Who is it?, and the persistent Enchanted Forest graphic adventure.

About Hosting Companion Games MCP

This template deploys the TypeScript MCP server as a public HTTPS service while keeping the MCP endpoint behind an automatically generated private URL path. Railway builds the repository, starts the production server, checks /health, exposes port 3000, and mounts persistent storage at /data so Enchanted Forest sessions survive redeploys. No third-party API key or external database is required.

After deployment, open the service variables and copy the generated MCP_PATH_SECRET value. Your connector URL is:

https://YOUR-RAILWAY-DOMAIN/GENERATED-MCP_PATH_SECRET/mcp

Add that URL as a remote MCP connector in your compatible AI client.

Common Use Cases

  • Give an AI companion a collection of replayable conversational games.
  • Add lightweight multiplayer-style play to ChatGPT without building a user interface.
  • Run persistent choose-your-own-adventure sessions across conversations.
  • Explore MCP tools, hidden game state, and structured tool responses in a friendly project.

Dependencies for Companion Games MCP Hosting

  • A Railway account.
  • A remote-MCP-compatible client such as ChatGPT Developer Mode.

Deployment Dependencies

Implementation Details

The server uses the MCP Streamable HTTP transport. A 48-character MCP_PATH_SECRET is generated for every deployment, the public root never reveals it, request bodies are limited, and the health endpoint is separate from the MCP endpoint. Secret game data such as quiz answers, ships, hidden words, and character identities stays on the server. Enchanted Forest state is stored in the attached Railway volume.

Privacy and Security

Treat the complete connector URL as a secret because it contains the generated access path. Rotate MCP_PATH_SECRET if the URL is exposed. The server does not require analytics, ad services, or an external AI-provider key.

Why Deploy Companion Games MCP on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Companion Games MCP on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Telegram JavaScript Bot
A template for Telegram bot in JavaScript using grammY

Agampreet Singh
295
View Template
Cobalt Tools [Updated Jul ’26]
Cobalt Tools [Jul ’26] (Media Downloader, Converter & Automation) Self Host

shinyduo
234
View Template
Telegram Gateway
Multi-bot Telegram webhook gateway with real-time WebSocket event streaming

INAPP
4