Back to Home
cerbos icon

cerbos-mcp-authorization-demo

Verified Safe

by cerbos

Overview

Implements role-based access control for AI Assistant tools using Model Context Protocol (MCP) and Cerbos policies.

Installation

Run Command
npm start

Security Notes

The server includes a simulated user authentication (`req.user = { ... }`) for demonstration purposes, explicitly stating it should be replaced with OAuth in production. This is not a vulnerability in the context of a demo but a critical point for deployment. The Cerbos client connects to `localhost:3593` without TLS, which is acceptable for local development but would be a network risk if the Cerbos PDP were exposed publicly without TLS. No 'eval' or direct malicious patterns are present in the provided source code.

Similar Servers

Stats

Interest Score34
Security Score8
Cost ClassLow
Avg Tokens50
Stars4
Forks0
Last Update2026-01-12

Tags

AI AssistantsRole-Based Access ControlCerbosModel Context ProtocolNode.js