How to Use the Cerbos (Access Control) MCP in Cursor
Author Cerbos policies and test access rules directly in Cursor with this MCP Server while your agent writes your code.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Cerbos (Access Control) MCP to Cursor
Create your Vinkius account to connect Cerbos (Access Control) to Cursor and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Generate real security code using live schemas
When you are writing a new API endpoint in Cursor, your agent can call `get_schema` to see exactly what attributes your resources require. It generates working controller code based on your actual Cerbos schemas instead of guessing the structure. This means the code Cursor writes actually works on the first try. It uses `check_resources` to mock the authorization calls inline, ensuring your middleware matches your active policies perfectly.
Validate policy changes using this MCP Server
While editing a YAML policy file in Cursor, you can ask this MCP Server to run `add_policy` or `update_policy` against a local test container. You get instant feedback on whether your syntax is valid without switching to a terminal window. If a rule fails, the agent uses `get_health` to verify the test engine is running and then rewrites the policy logic. It keeps your development loop tight and prevents broken rules from committing to your repository.
Build query plans for database filtering
Instead of guessing how to filter database rows based on user permissions, let Cursor call `plan_resources` to fetch the abstract syntax tree directly from Cerbos. Your agent can translate this AST into an SQL or Prisma query on the fly. This approach ensures your database queries only fetch rows the user is actually allowed to see. It bridges the gap between your central authorization rules and your database layer right inside your editor.
Set up Cerbos (Access Control) MCP in Cursor
Prerequisites
- Cursor installed (macOS, Windows, or Linux)
- Active Vinkius subscription with a valid endpoint token
- 1
Open MCP Settings
Go to Cursor Settings → MCP or open the Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) and search for "MCP: Add Server". - 2
Add the Cerbos (Access Control) MCP
Cursor will create or open
.cursor/mcp.jsonin your project root. Paste the JSON snippet on the right. Replace[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. - 3
Enable Agent mode
Open Composer (
Cmd+I/Ctrl+I) and switch to Agent mode using the dropdown at the top. MCP tools are only available in Agent mode. - 4
Verify the connection
Ask Cursor something like "List my recent Cerbos (Access Control) transactions." If the MCP tools are loaded correctly, Cursor will call the Cerbos (Access Control) tools automatically. You can also check Settings → MCP for a green status indicator.
{
"mcpServers": {
"cerbos-access-control-mcp": {
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
}
}
} Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Cerbos. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Cerbos (Access Control) MCP in Cursor
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Cerbos (Access Control) MCP today
We host it, we monitor it, we maintain it. You just paste one token.