Open-source MCP gateway for enterprise AI
AI agents read web pages, tickets and emails that anyone can write, and a hidden instruction in them can make an agent send your data to an attacker. Godelgate sits between your agents and your tools and stops that call.
The problem
To be useful, an agent needs three things: your private data, content from outside (web pages, issues, emails) and a way to act (send email, post, open a pull request). Put the three together and anyone who can get text in front of the agent can tell it to send your data out. The model can't reliably tell an instruction from data, so asking it to be careful doesn't work.
Godelgate checks from outside the agent. It remembers what each session has read, and once a session has seen private data and untrusted content, any tool that can send data out is blocked or waits for a person. Run the attack and see.
The agent is asked to write a report. It has a CRM, a web browser and email. Fake data, real Godelgate.
How it fits
Agents become useful when they can read your data and act on it. Godelgate gives every agent and AI client a single endpoint to connect to, and checks each call before it reaches anything that matters.
See what it checks →“No system can prove its own consistency from the inside. AI agents are no different: a model can be talked into anything, and asking it whether it is behaving tells you nothing. The checks have to live outside it.”— The idea behind Godelgate, after Kurt Gödel's incompleteness theorems
Production controls
Safe agents aren't agents that never get fooled. They're agents that can't do damage when they are, and leave a record of everything they tried.
Godelgate tracks each session. Once an agent has read private data and untrusted content, every tool that can send data out is blocked or held for a human. Allow rules can't override it.
How containment works →Every tool definition is fingerprinted on first sight. If a server changes a tool or hides instructions in its description, the tool is quarantined and hidden until someone reviews it.
See tool pinning →Each person and agent gets its own key and groups. Risky calls wait for approval. Every decision is logged with the rule that made it, secrets redacted, in a database you own.
See approvals and audit →Product
A live dashboard for every call, decision, approval and session, so security teams can say yes to agents instead of blocking them.
Every tool call with the person, labels, decision and the reason behind it. Here an exfiltration attempt is denied by the trifecta rule.
Quickstart
Run it locally, ship it in a container, then point your AI clients at one URL.
Read the quickstart guide →# Requires Node 22+. Starts with a built-in demo server. $ npm install && npm run build $ ALICE_KEY=$(openssl rand -hex 16) \ GODELGATE_ADMIN_TOKEN=$(openssl rand -hex 16) \ npm start # Dashboard: http://localhost:8080/app
# Audit log and tool pins live in /data $ docker build -t godelgate . $ docker run -p 8080:8080 -v godelgate:/data \ -e GODELGATE_ADMIN_TOKEN=... \ -e ALICE_KEY=... \ godelgate
# Claude Code $ claude mcp add --transport http godelgate https://your-gate/mcp \ --header "Authorization: Bearer $YOUR_KEY" # VS Code (.vscode/mcp.json) { "servers": { "godelgate": { "type": "http", "url": "https://your-gate/mcp", "headers": { "Authorization": "Bearer YOUR_KEY" } } } }
Works with your stack
Engineers keep Claude Code, Cursor, Codex and VS Code. Godelgate speaks standard MCP on both sides, so nobody switches clients or rewrites servers.
Your security team gets one place to set policy and review what happened.
Why Godelgate
Most AI platforms try to do everything. Godelgate does the one job that has to happen outside the agent, in a codebase you can read in an afternoon.
Godelgate is just an MCP endpoint. Keep your clients, your servers and your workflows.
Pricing
Every security feature is open source. Pay only if you want us to run it or support it.
Bring the agent, the tools it needs and the data you're worried about. We'll show you Godelgate on your use case and set up the first policy with you.
The open-source edition is free under Apache-2.0, with every security feature, no user limits and no paywalled SSO. Cloud and Enterprise are for teams that want us to run it or support it.
An agent becomes dangerous when three things meet in one session: it can read private data, it reads content an attacker can control (web pages, emails, tickets), and it can send data out. Any two are fine. All three let a hidden instruction steal your data. Godelgate tracks the first two per session and blocks the third.
Most gateways route traffic and check who is calling. Godelgate also reasons about the whole session: what the agent has already read decides what it may do next. It also pins tool definitions, so a server can't quietly change a tool after you approved it.
No. Claude Code, Cursor, Codex, VS Code and other MCP clients connect to Godelgate like any MCP server. They see the same tools, with policy applied.
You could build a proxy. Session-aware containment, tool pinning, approvals that hold the agent's call open, and an audit trail your security team trusts take longer. Godelgate is open source, so you can also start from it and extend it.
Classifiers guess, and attackers adapt. Containment doesn't need to recognise the attack: if the session can't send data out after reading untrusted content, the attack has nowhere to go. You can run both.
Self-hosted, everything stays on your infrastructure. On Cloud, server tokens and OAuth credentials are encrypted at rest, and each workspace is isolated from the others. The audit log keeps call metadata and short, redacted previews: fields that look like passwords, tokens or keys are removed, and long values are truncated.