Deploy MCPJungle

Self-hosted MCP gateway: all your MCP servers behind one secure endpoint

Deploy MCPJungle

/data

/var/lib/postgresql/data

Deploy and Host MCPJungle on Railway

MCPJungle is an open-source, self-hosted MCP gateway and registry. You register your MCP servers (remote Streamable HTTP servers, or local STDIO servers started with npx or uvx) in one place, and your AI clients such as Claude, Cursor, VS Code or your own agents reach all of their tools through a single authenticated /mcp endpoint.

About Hosting MCPJungle

This template runs MCPJungle 0.4.7 from the official image, built from a public GitHub repo, in enterprise mode, with Railway Postgres holding every registered server, client and user. On first boot a start script initialises the server, sets the admin token from a generated variable, and creates an MCP client named default with its own generated token, so the gateway is never open. There are no prompts. After deploy, copy MCPJUNGLE_ADMIN_TOKEN and MCPJUNGLE_CLIENT_TOKEN from the MCPJungle service's Variables tab, log in with the mcpjungle CLI, register servers, and paste the client config below into your AI client. A volume on /data keeps the npm and uv caches for STDIO servers.

Common Use Cases

  • Give Claude, Cursor or your agents one MCP URL and one token instead of configuring every MCP server in every client
  • Run STDIO MCP servers (npx or uvx) remotely so that browser-based and hosted agents can use them
  • Control which clients may use which MCP servers, and group selected tools into tool groups

Dependencies for MCPJungle Hosting

  • PostgreSQL (Railway Postgres, included)
  • The mcpjungle CLI on your own machine to register servers (optional; the REST API works too)

Deployment Dependencies

Implementation Details

Services: MCPJungle (the gateway: public URL, health check /health, volume /data) and Postgres (all state, on its own volume).

Log in and register servers from your machine:

mcpjungle login YOUR-ADMIN-TOKEN --registry https://YOUR-DOMAIN.up.railway.app
mcpjungle register --name context7 --url https://mcp.context7.com/mcp

Client config (Cursor, Claude Desktop and similar):

{
  "mcpServers": {
    "mcpjungle": {
      "url": "https://YOUR-DOMAIN.up.railway.app/mcp",
      "headers": { "Authorization": "Bearer YOUR-CLIENT-TOKEN" }
    }
  }
}

Notes: upstream serves its web dashboard only in its unauthenticated development mode, so this template has no web UI; you manage it with the CLI or REST API. The gateway needs about 40 MB of memory. Each STDIO server is an extra process (about 50 to 70 MB). On the Free plan, register STDIO servers with "session_mode": "stateful" so that each tool call doesn't start a new process. STDIO servers that need Docker can't run on Railway. Updates: when we bump MCPJungle in the template repo, Railway shows an update notice on your project, and you choose when to apply it. Your data stays in Postgres.

Why Deploy MCPJungle 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 MCPJungle 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
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

okisdev
117
View Template
Weaviate
Vector database with hybrid search and an API key-protected API

GitHub Locker
1
View Template
Möbius Personal AI OS
Self-hosted AI agent that builds and runs apps for you, with memory.

Tracklayer
1