---
title: "Deploy Companion Games MCP"
description: "Play eight conversational games with your AI companion through MCP."
category: "Bots"
url: https://railway.com/deploy/companion-games-mcp
---

# Deploy Companion Games MCP

Play eight conversational games with your AI companion through MCP.

**[Deploy Companion Games MCP on Railway](https://railway.com/template/companion-games-mcp)**

- **Creator:** Lau&Geppie Lilazul's Projects
- **Category:** Bots
- **Total deploys:** 21

## Template content

### companion-game

- **Source:** lauramarmun-prog/companion-game
- **Start command:** `npm start`
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# 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

- [Source code and setup guide](https://github.com/lauramarmun-prog/companion-game)
- [Model Context Protocol documentation](https://modelcontextprotocol.io/)
- [Railway template documentation](https://docs.railway.com/reference/templates)

### 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.

## Similar templates

- [Telegram JavaScript Bot](https://railway.com/deploy/5lRkWa) — A template for Telegram bot in JavaScript using grammY
- [Cobalt Tools [Updated Aug ’26]](https://railway.com/deploy/cobalt) — Cobalt Tools [Aug ’26] (Media Downloader, Converter & Automation) Self Host
- [Telegram Gateway](https://railway.com/deploy/railway-telegram-gateway) — Multi-bot Telegram webhook gateway with real-time WebSocket event streaming

Open this page in a browser: https://railway.com/deploy/companion-games-mcp
