Railway

Deploy McpVanguard

MCP security proxy — blocks prompt injection & attacks instantly.

Deploy McpVanguard

Just deployed

Deploy and Host McpVanguard on Railway

McpVanguard is a security gateway for the Model Context Protocol (MCP). It sits between AI agents and MCP tools, enforcing layered protection with static threat detection, optional semantic intent scoring, behavioral session controls, metadata inspection, and upstream trust checks such as capability and integrity verification.

About Hosting McpVanguard

Hosting McpVanguard on Railway lets you expose MCP tools over a secure network endpoint while keeping policy enforcement in front of your upstream server. In a typical deployment, Railway runs the McpVanguard SSE gateway as the public entrypoint and McpVanguard launches or connects to an MCP-compatible upstream server behind it. Railway handles public networking and TLS, while McpVanguard adds request inspection, auth enforcement, filesystem and tool restrictions, metadata poisoning defenses, and structured security decisions. Redis can be attached for behavioral state, rate limiting, and session-aware enforcement across multiple requests.

Common Use Cases

  • Secure remote MCP access for coding agents, copilots, and internal AI tooling over SSE
  • Enforce filesystem boundaries, safe zones, and tool policies for high-risk local or hosted MCP servers
  • Add security auditing, behavioral controls, and upstream trust validation in front of MCP tools and services

Dependencies for McpVanguard Hosting

  • Python 3.11+
  • An MCP-compatible upstream server command or process
  • Optional Redis for behavioral state and scaling
  • Optional LLM API key for semantic scoring

Deployment Dependencies

Implementation Details

Set the upstream MCP server command with MCP_SERVER_COMMAND and expose McpVanguard over SSE.

vanguard sse
--host 0.0.0.0
--port 8080
--server "python -c 'import sys; print("Protected Server Running")'"

Recommended environment variables:

VANGUARD_MODE=enforce VANGUARD_API_KEY=your_secure_authentication_token MCP_SERVER_COMMAND=python -c "import sys; print('Protected Server Running')" PORT=8080 VANGUARD_REDIS_URL=${{Redis.REDIS_URL}}


Template Content

More templates in this category

View Template
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

Lucas
View Template
Letta Code Remote
Run a Letta Code agent 24/7. No inbound ports, just deploy.

Letta
View Template
(v1) Simple Medusa Backend
Deploy an ecommerce backend and admin using Medusa

Shahed Nasser