Compatible with every major AI agent and IDE
What is the Cerbos MCP Server?
Connect your Cerbos instance to any AI agent to manage complex authorization policies through natural language conversation.
What you can do
- Permission Evaluation — Use
check_resourcesto instantly verify if a principal can perform specific actions on resources based on your policies. - Query Planning — Generate AST-based query plans with
plan_resourcesto filter database results according to user permissions. - AuthZEN Compliance — Leverage standardized access requests using
authzen_evaluationandauthzen_evaluationstools. - System Monitoring — Check instance health and build metadata using
get_server_infoandget_authzen_config.
How it works
- Subscribe to this server
- Provide your Cerbos instance base URL (e.g.,
http://localhost:3592) - Start auditing and testing your access control logic directly from your chat interface
Who is this for?
- Software Engineers — debug complex RBAC/ABAC policies without manual API calls
- Security Auditors — verify permission logic across different roles and resource attributes
- DevOps Teams — monitor Cerbos instance metadata and configuration status
Built-in capabilities (6)
Single action evaluation using the AuthZEN entity model
Supports execute_all, deny_on_first_deny, and permit_on_first_permit semantics. Batch evaluation of multiple access requests using AuthZEN
This is a read-only evaluation. Evaluates permissions for a principal on a set of resources
Returns endpoint URLs for the AuthZEN APIs
Returns the version and build details of the Cerbos instance
Produces a query plan for obtaining a list of resources a principal is allowed to access
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and Cerbos tool infrastructure. Connect 6 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 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 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 in Mastra AI
Cerbos and 4,000+ other MCP servers. One platform. One governance layer.
Teams that connect Cerbos 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 in Mastra AI
The Cerbos 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 6 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 for Mastra AI
Every tool call from Mastra AI to the Cerbos MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.
Frequently asked questions
Can I check if a specific user has permission to access a resource?
Yes. Use the check_resources tool by providing the principal (user) details and the resource information. The agent will return an evaluation of allowed or denied actions.
How do I generate a filter for my database based on user permissions?
Use the plan_resources tool. It produces a query plan (AST) that you can use to construct database queries, ensuring users only see records they are authorized to access.
Is it possible to verify the Cerbos server version via AI?
Yes, the get_server_info tool retrieves the version, build date, and commit hash of your connected Cerbos instance.
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 →
Plane Alternative
12 toolsManage projects, issues, and product roadmaps via Plane — create projects, toggle features, and organize workspaces directly from your AI agent.

Jasper
10 toolsEquip your AI agent with direct access to Jasper — generate marketing copy, manage brand voices, and orchestrate content campaigns without opening the Jasper app.

Tencent Cloud VOD / 腾讯云点播
8 toolsTencent's dominant video-on-demand platform — manage media, track tasks, and audit storage via AI.

Amazon Redshift
7 toolsEquip your AI to directly query, analyze, and manage your petabyte-scale data warehouse via the serverless AWS Redshift Data API.
