AuthzX MCP Gateway — policy-enforcing proxy between AI agents and MCP servers
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
💡 Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Authorization gateway for AI agents and MCP tool calls.
Open-source. Drop-in. Works with any MCP client.
AI agents connected to MCP servers can call any tool they have access to — read your database, delete files, execute arbitrary SQL. Vengtoo MCP Gateway puts a policy enforcement point between the agent and those tools, so every call is authorized before it executes.
Create a policy.rego to define what your agent can do:
See demo/policies/ for more examples including Kubernetes namespace protection.
gateway.config.json:| Field | Type | Required | Description |
|---|---|---|---|
vengtoo.agentUrl | string | * | URL of local Vengtoo Agent (local mode) |
vengtoo.cloudUrl | string | * | URL of Vengtoo Cloud API (cloud mode) |
vengtoo.apiKey | string | API key from Vengtoo Cloud (or set VENGTOO_API_KEY env var) | |
vengtoo.timeoutMs | number | Authorization request timeout (default: 5000) | |
subject | string | yes | Identity of the agent making tool calls |
subjectType | string | Subject type (default: "agent") | |
resourceType | string | Resource type for authorization checks (default: "mcp_tool") | |
servers | object | yes | Map of downstream MCP servers to proxy |
* Provide either agentUrl (local mode) or cloudUrl (cloud mode).
Each entry in servers has:
| Field | Type | Required | Description |
|---|---|---|---|
command | string | yes | Command to spawn the MCP server |
args | string[] | Command arguments | |
env | object | Additional environment variables |
Connect to Vengtoo Cloud for managed policies:
Run the Vengtoo Agent locally with a .rego policy file for offline, self-contained authorization:
| Flag | Description |
|---|---|
--config <path> | Path to gateway config file (default: ./gateway.config.json) |
--list-tools | List all tools from configured downstream servers and exit |
--generate-policy [path] | Generate a starter .rego policy file for the configured tools (default: policy.rego) |
Environment variable overrides: VENGTOO_API_KEY, VENGTOO_AGENT_URL, AUTHZX_SUBJECT.
The gateway runs as a stdio MCP server. Point your MCP client at it instead of the downstream server directly.
Add to .cursor/mcp.json:
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Add to .vscode/mcp.json:
See demo/ for full end-to-end examples with sample policies.
Apache-2.0 — see LICENSE.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-gateway-2)<a href="https://allmcps.com/mcp/mcp-gateway-2"><img src="https://allmcps.com/api/badge/mcp-gateway-2?style=directory" alt="Mcp Gateway on AllMCPs" /></a>