Gateway
Run MCP servers with a scoped environment, audit trail and discovery from registries
- Pricing
- Open source
- Platforms
- CLI, self-hosted
- Runs
- Locally
- Version
- 0.6.0
- Listing updated
- 3 days ago
About Gateway
Gateway is an open-source MCP server for security. It runs locally on your machine and is started by your AI client.
Gateway spawns each server with a short environment allowlist plus only variables you name, so a server can't read all your API keys. Files remain readable by default; only opt-in Docker isolation closes that.
It also discovers servers from MCP Rating, the official registry or your own, and proxies their tools through one endpoint, with a log of connections and calls. Since 0.5.0 starting raw commands needs confirmation and since 0.6.0 credentials-shaped arguments prompt. It does not scan tool descriptions. MIT, beta.
Install
Run in a terminal
claude mcp add gateway -- npx -y @mcp-rating/gatewayAdd to claude_desktop_config.json
{
"mcpServers": {
"gateway": {
"command": "npx",
"args": [
"-y",
"@mcp-rating/gateway"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"gateway": {
"command": "npx",
"args": [
"-y",
"@mcp-rating/gateway"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"gateway": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mcp-rating/gateway"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"gateway": {
"command": "npx",
"args": [
"-y",
"@mcp-rating/gateway"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"gateway": {
"command": "npx",
"args": [
"-y",
"@mcp-rating/gateway"
]
}
}
}What it does
- Scoped environment
- Only named variables pass.
- Discovery
- From several registries.
- Audit trail
- Logs calls.
- Container isolation
- Opt-in Docker.
- Single endpoint
- Proxies tools.
- Secret prompts
- Ask before leaks.
Good for
- Limit what a server sees
- Connect servers on demand
- Review what a server did
- Use a private registry
Pricing
Open source
MIT licensed, beta
Prices change. Check mcprating.io before you buy.
Gateway FAQ
Does it stop file reads?
Not without container isolation.
Does it stop prompt injection?
No.
Licence?
MIT, beta.
Is Gateway free?
Yes. Gateway is open source, so you can use and self-host it for free.
How do I add Gateway to Claude Code?
Run this command in your terminal: claude mcp add gateway -- npx -y @mcp-rating/gateway
What are the best alternatives to Gateway?
The closest alternatives to Gateway are REA, Agent Roast, Midplane, Leash and Tinplate Edge AI Safety, Security & EU Compliance.
Alternatives to Gateway

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools
Agent Roast
MCP serverOffline review that flags agent changes which weaken tests, assertions or CI
Runs locally- Open source
- 4 Hacker News points
- Developer tools

Midplane
MCP serverPostgres gateway for AI agents with table grants, column masking and approval for writes
Runs locally- Open source
- 5 GitHub stars
- Databases

Leash
MCP serverReview what your AI touched, approve risky actions and undo supported changes
- 1 tool
- Remote
- Free
- 1 GitHub star
- Security
Zero-log MCP server with 49 tools for AI guardrails, secret scanning and EU compliance
- 49 tools
- Remote
- Freemium
- Security

SecureCloud
MCP serverSentinelOne and IT security catalog, prices, quotes and checkout links for Israel
- 7 tools
- Remote
- Free
- Security