Skip to content
MCP server

Gateway

Run MCP servers with a scoped environment, audit trail and discovery from registries

Runs locallyStatus and history
Install
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/gateway

Add to claude_desktop_config.json

{
  "mcpServers": {
    "gateway": {
      "command": "npx",
      "args": [
        "-y",
        "@mcp-rating/gateway"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "gateway": {
      "command": "npx",
      "args": [
        "-y",
        "@mcp-rating/gateway"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

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

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Agent Roast

    MCP server

    Offline review that flags agent changes which weaken tests, assertions or CI

    Runs locally
    • Open source
    • 4 Hacker News points
    • Developer tools
  3. Midplane

    MCP server

    Postgres gateway for AI agents with table grants, column masking and approval for writes

    Runs locally
    • Open source
    • 5 GitHub stars
    • Databases
  4. Leash

    MCP server

    Review what your AI touched, approve risky actions and undo supported changes

    • 1 tool
    • Remote
    • Free
    • 1 GitHub star
    • Security
  5. SecureCloud

    MCP server

    SentinelOne and IT security catalog, prices, quotes and checkout links for Israel

    • 7 tools
    • Remote
    • Free
    • Security