How to Use the Cerbos (Access Control) MCP in Claude Code
Automate your Cerbos access control from the terminal using Claude Code to validate policies in your CI/CD pipelines.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Cerbos (Access Control) MCP to Claude Code
Create your Vinkius account to connect Cerbos (Access Control) to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Script your authorization logic
Managing permissions across multiple environments is a massive pain. You can script the entire process by having your agent run `add_policy` during your deployment phase. It pulls your YAML files from the repository and applies them to the target server via the MCP protocol. Rollbacks are just as fast. If a bad rule breaks production, the agent quickly finds the culprit with `get_policy` and reverts the change using `update_policy`. You fix the issue without ever leaving your SSH session.
Run automated permission tests
Stop merging code that breaks access rules. Hook this tool into your GitHub Actions and let the agent run `check_resources` against your staging branch. It validates every single role before the PR gets approved. Bulk testing handles the heavy lifting for massive deployments. The agent fires `authzen_evaluations` to check hundreds of edge cases in seconds. If a test fails, the terminal output tells you exactly where the logic broke down.
Monitor health via Cerbos MCP Server
Keeping tabs on your authorization layer shouldn't require a separate dashboard. Your terminal agent uses `get_metrics` to pull Prometheus data directly into your current session. You spot latency spikes before they affect users. Debugging failed requests takes seconds instead of hours. The agent runs `list_audit_logs` to fetch the exact trace for a denied action. It parses the JSON output and highlights the broken condition immediately.
Set up Cerbos (Access Control) MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seecerbos-access-control-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest Cerbos (Access Control) transactions." It will automatically discover and invoke the available Cerbos (Access Control) tools.
claude mcp add --transport http cerbos-access-control-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp 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 Claude Code
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.