---
title: "Deploy ContextForge MCP gateway"
description: "Secure MCP gateway and registry with PostgreSQL, Redis, and admin UI."
category: "AI/ML"
url: https://railway.com/deploy/contextforge-mcp-gateway
---

# Deploy ContextForge MCP gateway

Secure MCP gateway and registry with PostgreSQL, Redis, and admin UI.

**[Deploy ContextForge MCP gateway on Railway](https://railway.com/template/contextforge-mcp-gateway)**

- **Creator:** Anton Orel's Projects
- **Category:** AI/ML
- **Total deploys:** 1

## Template content

### ContextForge Redis

- **Image:** redis:8-alpine@sha256:978f0e01593e65eed801f2402944efcd936d43b5027e4908a7897baf88ed6241
- **Start command:** `/bin/sh -ec 'umask 077; printf "appendonly yes\nrequirepass %s\n" "$REDIS_PASSWORD" >/tmp/redis.conf; exec redis-server /tmp/redis.conf'`

### ContextForge

- **Image:** ghcr.io/ibm/mcp-context-forge:v1.0.6@sha256:049b8e61fa1187f72773d94bcf91fc63338f4fea7808949a8a5daacbc89ef92e
- **Health check:** /ready
- **Public domain:** Yes

### ContextForge PostgreSQL

- **Image:** postgres:18@sha256:3a82e1f56c8f0f5616a11103ac3d47e632c3938698946a7ad26da0df1334744a

## Documentation

# Deploy and Host ContextForge MCP gateway on Railway

ContextForge provides an authenticated registry, proxy, and administration layer for MCP, A2A, REST, and gRPC tools.

## About Hosting ContextForge MCP gateway

The template runs one ContextForge gateway with private PostgreSQL and authenticated Redis, durable volumes, generated secrets, automatic migrations, and strict SSRF defaults.

## Why Deploy ContextForge MCP gateway on Railway

Railway supplies private networking, HTTPS, generated credentials, health-gated deployments, and persistent storage while the template pins reproducible official images.

## Common Use Cases

- Register and govern MCP servers and tools from one authenticated UI.
- Proxy agent tool traffic through a centralized policy and discovery layer.
- Evaluate ContextForge integrations with persistent configuration and audit state.

## Dependencies for ContextForge MCP gateway Hosting

The deployment uses ContextForge, PostgreSQL, and Redis.

### Deployment Dependencies

- One public Railway domain for ContextForge
- A 5 GB PostgreSQL volume and 1 GB Redis volume
- Generated database, cache, JWT, encryption, and administrator secrets


## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

Open this page in a browser: https://railway.com/deploy/contextforge-mcp-gateway
