Permit MCP Gateway
Put Permit MCP Gateway in front of your Model Context Protocol (MCP) servers to add authentication, authorization, consent, and audit to every tool call your AI agents make. This page is for AI agent builders and platform teams choosing where to start.
Permit MCP Gateway is a proxy between MCP clients (Cursor, Claude Desktop, Claude Code, VS Code, and other AI tools) and the MCP servers they connect to. Each agent is one person using one MCP client. For each tool call, the gateway:
- Identifies the agent and the person who signed in and approved it.
- Checks the call in Permit.io against the trust level the person approved and the maximum an admin set.
- Runs the checks an admin turned on: agent identity, the Guardian, and admin approval.
- Logs the decision.
You don't add an SDK, rewrite agents, or change your MCP servers. You point the MCP client at the server's gateway URL, https://<subdomain>.agent.security/mcp/<server_key>, instead of the MCP server URL. The diagram shows the path of one tool call.
The path of one MCP tool call
- MCP clientCursor, Claude, or VS Code, acting for a human who signed in and set a trust level.
- Permit MCP GatewayVerifies the session and binds every tool call to that human and that agent.
- permit.check()Runs on every tool call: agent trust level, human trust ceiling, and the tool's risk.
- Upstream MCP serverReceives only allowed calls. Upstream OAuth tokens stay with the gateway, and the server is unchanged.
- Audit logEvery allowed or denied tool call, with the human, the agent, and the reason.
What the gateway gives developers and platform teams
- A short setup: create a host, import an MCP server, grant people access, and copy the server's gateway URL into the MCP client.
- The MCP servers you use: import any remote MCP server by its URL, including servers that require an OAuth sign-in. The gateway discovers the server's tools.
- Client configuration to copy: each MCP server's page shows its gateway URL and snippets for Cursor and VS Code, Claude Desktop, and Claude Code.
- Pass-through runtime: the gateway forwards allowed calls to the MCP server unchanged and returns an error to the agent for denied calls.
What the gateway gives security, IAM, and governance teams
- Per-person agents: each tool call is bound to one person and one agent, so two people using the same MCP client are two agents.
- Least privilege: each tool has a trust level by risk (low for reads, medium for writes, high for deletes), and admins set the maximum trust level each person can approve on each server.
- Consent with terms: the person approves each agent on a consent screen, picks its trust level, can write the agent's task, and chooses when access ends.
- Agent identity and the Guardian: optional checks that stop an agent whose registered identity drifts and grade each call against the server's intent with an LLM judge.
- Approvals: admins can hold chosen tools, or a whole server, until an admin approves each call in the Approvals queue.
- Visibility and audit: the Dashboard shows live gateway activity, Agents shows each agent's sessions, Consent Grants lists every approval people gave, and each decision is logged with the person, the agent, the tool, and the server.
- Deny by default: nobody can use an imported MCP server until an admin grants access. A host that allows dynamic MCP connections also lets people connect to servers nobody imported.
Read the Permit MCP Gateway overview for the security and trust model and a comparison with API gateways and identity and access management (IAM) platforms.
How the gateway uses Permit.io
Permit MCP Gateway runs on Permit.io. Permit is the control plane (where policies are defined) and the default data plane (where decisions are evaluated) for every gateway host.
- Each gateway host maps to one Permit environment. The policies, people, agents, and audit logs for that host live in the linked environment.
- Gateway policies can use Permit's policy models: role-based access control (RBAC), attribute-based access control (ABAC), and relationship-based access control (ReBAC), with policy updates applied without a restart. A change to a tool's trust level or a server's intent applies within about a minute.
- You work in two dashboards: app.agent.security for hosts, MCP servers, people, agents, and approvals, and app.permit.io for policies and audit logs. You sign in to both with your Permit.io account.
See How Permit MCP Gateway works with Permit.io for the policy model.
Prerequisites
- A Permit.io account.
- Access to the Permit MCP Gateway admin dashboard, where you sign in with your Permit.io account to create hosts, import MCP servers, grant access, and review activity.
Start here
- Follow the Permit MCP Gateway quickstart to create a host, import one MCP server, and connect a client.
- Read the Permit MCP Gateway overview to learn what the gateway enforces and when to use it.
- Follow Getting started with Permit MCP Gateway to set up a host for your team, test an allowed and a denied call, read the audit log, and add approvals, agent identity, and the Guardian.
Find a topic
| Task | Page |
|---|---|
| Manage hosts, MCP servers, people, agents, and host settings in the admin UI | Platform reference |
| Grant, limit, and revoke access for people and their agents | Managing humans and agents |
| Plan multiple hosts and roll the gateway out to teams | Host setup guide |
| Configure SSO, OAuth, and email sign-in for the consent flow | Authentication methods |
| Understand what people see when they approve an agent | Consent service |
| Read and investigate activity | Audit logs |
| Review data flows and sequence diagrams | Architecture |
| Govern an agent's outbound HTTP and HTTPS calls outside MCP | HTTP egress proxy |
| Require human approval for high-risk tool calls (Enterprise) | Human-in-the-loop approvals |
| Check agent identity and grade calls against intent with the Guardian | Check agent identity and intent |
| Run the gateway in your own network or fully on-premises | Enterprise deployment |
Get help
- Ask in the Permit Slack community.
- Use the Permit.io API reference for the underlying authorization API.
- Email support@permit.io.