# Gateway

> Gateway is an open-source MCP server for security. Run MCP servers with a scoped environment, audit trail and discovery from registries. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted
- **Website:** https://mcprating.io/gateway
- **Repository:** https://github.com/mcprating/mcp-gateway
- **MCP Registry name:** io.mcprating/gateway
- **Categories:** security
- **Listing updated:** 2026-11-14

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

```sh
claude mcp add gateway -- npx -y @mcp-rating/gateway
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "gateway": {
      "command": "npx",
      "args": [
        "-y",
        "@mcp-rating/gateway"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "gateway": {
      "command": "npx",
      "args": [
        "-y",
        "@mcp-rating/gateway"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "gateway": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mcp-rating/gateway"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "gateway": {
      "command": "npx",
      "args": [
        "-y",
        "@mcp-rating/gateway"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "gateway": {
      "command": "npx",
      "args": [
        "-y",
        "@mcp-rating/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

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.
- [SecureCloud](https://ai-powered.com/mcp/securecloud): SecureCloud is a free MCP server for security.
- [Eikino](https://ai-powered.com/mcp/eikino): Eikino is a freemium MCP server for security.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.

---
Source: https://ai-powered.com/mcp/gateway-7
