Compatible with every major AI agent and IDE
What is the Cerbos (Access Control) MCP Server?
Connect your Cerbos instance to any AI agent to streamline authorization management and policy auditing through natural language.
What you can do
- Permission Checks — Use
check_resourcesto evaluate if a principal (user) has the rights to perform specific actions on resources. - Query Planning — Generate AST query plans with
plan_resourcesto filter database results based on complex authorization logic. - Policy Management — List, retrieve, add, or delete policies (RBAC/ABAC) using the Admin API tools like
list_policiesandadd_policy. - Schema & Auditing — Inspect resource schemas and review access logs with
list_auditLogsto ensure compliance. - Health & Metrics — Monitor your PDP (Policy Decision Point) status with
get_healthandget_metricsdirectly from the chat.
How it works
- Subscribe to this server
- Enter your Cerbos PDP URL and Admin credentials (if required for policy management)
- Start auditing and managing your access control logic from Claude, Cursor, or any MCP client
Who is this for?
- Security Engineers — quickly audit existing policies and verify permission logic without manual API calls
- Backend Developers — test authorization scenarios and generate database filter plans during development
- Compliance Officers — retrieve audit logs and policy definitions to ensure organizational security standards
Built-in capabilities (19)
Add a new policy
Add or update a schema
Perform a single AuthZEN access evaluation
Perform batch AuthZEN access evaluations
Check permissions for a set of resources
Delete a policy by ID
Disable a policy
Enable a policy
Get AuthZEN configuration metadata
Get Cerbos health status
Get Prometheus metrics from Cerbos
Get a specific policy by ID
Get a specific schema by ID
Get Cerbos server version and build information
List audit logs
List all policies
List all schemas
Produce a query plan (AST) for filtering resources
Update an existing policy
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and Cerbos (Access Control) tool infrastructure. Connect 19 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Cerbos (Access Control) without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every Cerbos (Access Control) tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
Cerbos (Access Control) in Mastra AI
Cerbos (Access Control) and 4,000+ other MCP servers. One platform. One governance layer.
Teams that connect Cerbos (Access Control) to Mastra AI through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.
Raw MCP | Vinkius | |
|---|---|---|
| Server catalog | Find and host yourself | 4,000+ managed |
| Infrastructure | Self-hosted | Sandboxed V8 isolates |
| Credential handling | Plaintext in config | Vault + runtime injection |
| Data loss prevention | None | Configurable DLP policies |
| Kill switch | None | Global instant shutdown |
| Financial circuit breakers | None | Per-server limits + alerts |
| Audit trail | None | Ed25519 signed logs |
| SIEM log streaming | None | Splunk, Datadog, Webhook |
| Honeytokens | None | Canary alerts on leak |
| Custom domains | Not applicable | DNS challenge verified |
| GDPR compliance | Manual effort | Automated purge + export |
Why teams choose Vinkius for Cerbos (Access Control) in Mastra AI
The Cerbos (Access Control) MCP Server runs on Vinkius-managed infrastructure inside AWS — a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts. All 19 tools execute in hardened sandboxes optimized for native MCP execution.
Your AI agents in Mastra AI only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
How Vinkius secures
Cerbos (Access Control) for Mastra AI
Every tool call from Mastra AI to the Cerbos (Access Control) MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.
Frequently asked questions
Can I test if a specific user has access to a resource without writing code?
Yes. You can ask the agent to use the check_resources tool by providing the principal (user) details and the resource you want to check. The agent will return the allowed or denied status based on your Cerbos policies.
How do I view all the authorization policies currently loaded in my Cerbos server?
Simply ask the agent to 'list all policies'. It will invoke the list_policies tool (requires Admin credentials) and display the IDs of all active policies in your environment.
Can the AI help me generate filters for my database based on permissions?
Yes, by using the plan_resources tool. The agent will generate a query plan (AST) that describes the conditions under which a user is allowed to access resources, which you can then apply to your database queries.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Explore More MCP Servers
View all →
Salesforce Service Cloud
8 toolsManage support cases, search the knowledge base, track case metrics, and resolve customer issues through natural conversation.

NCR Voyix
10 toolsManage commerce and retail operations via NCR Voyix — track orders, sites, products, and inventory directly from your AI agent.

Centaur Analytics
12 toolsAccess AI-powered grain monitoring via Centaur — track CO2, moisture, temperature, predict spoilage, and forecast grain quality from any AI agent.

Airbyte
7 toolsMonitor your Airbyte data pipelines via AI — track sync jobs, list sources, and check connections instantly.
