1. Conduid
  2. Security
  3. Cedar MCP Server
MCP server · Security

Cedar MCP Server

MCP server for Cedar policy language - validate, authorize, diff, and plan policy changes for Amazon Verified Permissions from your AI assistant.

38Low

Scored 23 hours ago · breakdown

About Cedar MCP Server

Cedar MCP Server is an MCP server published by Pigius in the Security category: mCP server for Cedar policy language - validate, authorize, diff, and plan policy changes for Amazon Verified Permissions from your AI assistant. Conduid read 20 tools from its source: cedar-avp-migration-checklist, cedar-explain-denial, cedar-review-policy-diff, cedar_advise, cedar_authorize, cedar_authorize_batch and 14 more. No package is published for it, so it installs from a source checkout.

The repository has 8 stars and 0 forks, and its last commit was on 23 May 2026. Conduid has no tagged release on record for it. Its topics include abac, amazon-verfied-permissions, authorization, avp, cedar and cedar-policy.

Install

From source
git clone https://github.com/Pigius/cedar-mcp-server

Tools (20)

cedar-avp-migration-checklistProvide a guided checklist for migrating a local Cedar policy set into Amazon Verified Permissions, covering schema format, namespace constraints, entity validation, and behavioral diff.
cedar-explain-denialExplain why a Cedar authorization request was allowed or denied, in plain English, by evaluating the request and examining the deciding policies.
cedar-review-policy-diffDrive a structured Cedar policy store promotion review: diff policies, diff schema, summarize breaking risk, and produce a go/no-go recommendation.
cedar_adviseALWAYS call this before suggesting any Cedar policy modification or addition. Returns the structured project context you need to plan correctly: schema summary, policy inventory with AST-classified Cedar patterns (Membership/Relationship/Discretionary/hybrid) per file, intent-selected gotcha catalog, AVP UpdatePolicy mutability rules (in-place vs delete-recreate vs new), Cedar patterns reference, sequencing guidance, and explicit next steps. Reading policy files alone is INSUFFICIENT, because this tool encodes Cedar/AVP knowledge (AVP API rules, validation error categories, AST-based pattern classification) that does not live in the files. The bundle is deterministic (no LLM sampling); the calling assistant produces the plan from the bundle and verifies snippets with cedar_validate and cedar_check_policy_change.
cedar_authorizeEvaluate a Cedar authorization request against policies and entities. Returns the decision (Allow/Deny), the determining policies, and any evaluation errors. ALWAYS call this for any 'would X be allowed?' or 'why was Y denied?' question. You CANNOT simulate an authorization decision by reading the policy files; only the Cedar engine implements the full evaluation semantics (default-deny, forbid-overrides-permit, attribute guards, action group membership, schema-validated entity types). Accepts inline policy text OR a cedar:// resource reference. When policies / schema / entities are omitted and a single MCP root is loaded, the missing inputs are auto-discovered from the workspace; the response's auto_discovered field reports each source store.
cedar_authorize_batchRun N authorization requests through ONE policy set in a single call and return the full decision matrix (Allow / Deny / Error per request, with determining policies). ALWAYS use this for regression testing after a policy edit, for canonical-request suites, and for behavioral comparisons. You CANNOT predict the matrix by reading policies alone; each request's decision depends on engine evaluation against the resolved entity graph and schema. Accepts inline policies+schema OR cedar:// refs.
cedar_check_policy_changeDiff an old vs new Cedar policy and classify the change against Amazon Verified Permissions UpdatePolicy mutability rules: in-place via UpdatePolicy, requires delete+recreate, or new-via-CreatePolicy. ALWAYS call this before recommending any modification to a policy in a deployed AVP store. Visually reading the diff does NOT tell you whether AVP will accept the update; only this tool encodes the actual API contract (effect / principal / resource scope are immutable; action and when/unless are mutable; static ↔ template-linked conversion is not supported).
cedar_diff_policy_storesSemantic + structural diff of two Cedar policy stores (blue vs green) with AVP immutability classification per change and an optional behavioral diff (run canonical authorization requests through both stores and surface decisions that flip). ALWAYS call this before recommending a deployment from a green/staging store to a blue/production store. A text diff CANNOT tell you which authorization decisions change between the two stores; only running both stores against the same requests does. Returns added / removed / modified policies, structured schema_diff (with safe/review/breaking risk), and (when behavioral_test_requests is supplied) per-request decision drift.
cedar_diff_schemaStructural diff of two Cedar schemas with AVP-aware risk classification per change (safe / review / breaking) and a reason string per change. ALWAYS call this before recommending a schema migration to a deployed store. A `diff` over the schema text does NOT tell you which changes break policies (e.g. removing a required attribute breaks every policy that reads it; widening principalTypes is safe; narrowing it is breaking). Only this tool normalizes both schemas via the parser, walks entity types / actions / common types / appliesTo / memberOfTypes, and tags each change. Each side accepts inline schema text (JSON or .cedarschema) OR a cedar://schema/{store} URI.
cedar_explainExplain one or more Cedar policies in structured form, derived from the parsed AST (not from text inspection). ALWAYS call this when summarizing what a policy permits, walking a user through inherited policies, or detecting Cedar patterns (RBAC role-membership, ABAC attribute conditions, ReBAC relationship checks, optional-attribute guards, path-matching with depth limiting). Reading the policy text does not reliably yield correct structural breakdown or pattern detection; the AST is the authority. Accepts a single policy, a template, or a full policy set. When schema is omitted and a single MCP root is loaded, the schema is auto-discovered from the workspace; the response's auto_discovered field reports the source store.
cedar_formatFormat Cedar policies to the canonical Cedar style via the official formatter. ALWAYS use this when emitting Cedar text for storage, diffs, or display; do not hand-format. Hand-formatted output drifts from canonical style and produces noise in `cedar_diff_policy_stores` and code review. The formatter handles operator spacing, line wrapping, comment placement, and nested expression indentation per the Cedar reference implementation.
cedar_generate_sample_requestGenerate a complete Cedar authorization request (principal, action, resource, entities JSON) that will be allowed or denied by the given policy under the supplied schema. The generated request is verified by running it through the Cedar engine before return; the response field `ready_to_test: true` confirms the agreement. ALWAYS use this when a user needs a working test payload; constructing entity JSON by hand (correct uid format, required attributes, parent relationships, action-group entities) is error-prone and Cedar will silently reject a malformed entity graph.
cedar_link_templateInstantiate a Cedar template by binding its ?principal and/or ?resource slots to specific entity references. Returns the linked policy as Cedar text and (when a schema is supplied) validates the result as a static policy. ALWAYS use this tool to perform the substitution; do NOT hand-substitute slot text into the template body. The official substitution path uses `templateToJson` → JSON patch → `policyToText`, which preserves operator semantics and slot-position rules that a naïve string replace will silently break (e.g. for templates that reference the slot inside set or relation operators).
cedar_list_template_linksList all template-linked policy instances in a policy store configured via MCP Roots. Links live in the template-links/ subdirectory. Each link records which template it uses and the slot values bound to it. ALWAYS call this when the user asks 'which policies in the store came from a template?' or before recommending a refactor across template links. The tool decodes the link record format the rest of the server uses; a direct file read would still need to parse and join links against templates to produce a usable inventory.
cedar_list_templatesList all Cedar template policies in a policy store configured via MCP Roots. Templates live in the templates/ subdirectory of the store root. Returns template IDs, content, and detected slot placeholders. ALWAYS call this when the user asks 'what templates are available?' or before recommending which template to link. The tool walks the configured store's templates/ directory via the same StoreManager other tools use, so the inventory matches what `cedar_link_template` and `cedar_validate_template` will actually resolve; a direct file listing may miss the store's namespacing convention or include unrelated files.
cedar_translateTranslate between Cedar human-readable format and the official Cedar JSON format for policies or schemas. ALWAYS use this when converting between formats for storage, AVP deployment (which uses JSON), or AST inspection. Do NOT translate by hand: the Cedar JSON shape is non-obvious (templates use slot encoding, schemas resolve common types, conditions are nested op trees), and a hand-written translation will be silently wrong against the parser. Round-trip via this tool is the only safe path.
cedar_validateValidate Cedar policies, with OR without a schema. Two modes: syntax-only (no schema, parser-only, catches typos and bad scopes) and syntax-and-schema (full parse plus type-check against a Cedar schema). Returns parse errors, schema-type errors, and warnings with source locations; the `validation_mode` field in the response tells you which mode ran. ALWAYS call this before claiming a policy is valid or before recommending it to a user. You CANNOT determine policy validity by reading the file; the Cedar parser is the only authority on syntax, attribute typing, action-applies-to checks, and UnsafeOptionalAttributeAccess warnings. Accepts inline text OR cedar:// resource references. When schema is omitted and a single MCP root is loaded, the schema is auto-discovered from the workspace; the response's auto_discovered field reports the source store. Pass validation_mode to force a specific mode: 'syntax_only' skips workspace auto-discovery and runs parser-only (useful when the user explicitly has no schema); 'syntax_and_schema' requires a schema and returns an error if none is resolvable.
cedar_validate_entitiesValidate a Cedar entities JSON array against a schema using the official Cedar entities parser. Returns per-entity errors classified by kind: unknown_type, missing_required_attribute, type_mismatch, unknown_attribute, disallowed_parent_type, parse_error. ALWAYS call this before treating an entities file as ground truth for a downstream `cedar_authorize` call. You CANNOT predict by reading whether the entity graph will pass schema validation; only the parser checks required attributes, type compatibility, and allowed parent types per the schema's `memberOfTypes`. Schema is optional; without it only JSON shape is checked.
cedar_validate_schemaValidate a Cedar schema in isolation (no policies required) using the official Cedar schema parser. Accepts JSON object or .cedarschema text. Returns parse errors with source locations plus a structured summary (namespaces, entity types, actions, common types). ALWAYS call this before claiming a schema is well-formed or before treating its declarations as ground truth. You CANNOT determine schema validity or accurate counts by reading the file; the parser is the only authority on common-type resolution, appliesTo cross-references, and reserved-word collisions.
cedar_validate_templateValidate a Cedar template policy against a schema using the official parser. Templates use slot placeholders (?principal, ?resource) bound at link time. Returns parse errors, schema-type errors, warnings, and detected slots. ALWAYS call this before claiming a template is valid or before linking it; the parser is the only authority on whether a template's slots are typed correctly against the schema's `appliesTo` and on whether the body's attribute access satisfies type rules. Visual inspection of a template does NOT catch slot-type mismatches or missing-attribute references.

Security checks

6 checks have not been run yet.

Questions

About Cedar MCP Server

How do I install Cedar MCP Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Cedar MCP Server safe to use with an AI agent?

Its trust score is 38 out of 100 (low). Conduid hasn't run static security checks on this repository yet, so review the source yourself before granting it credentials. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Cedar MCP Server still maintained?

The last commit was 6 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.

What tools does Cedar MCP Server provide?

Conduid read 20 tools from the source: cedar-avp-migration-checklist, cedar-explain-denial, cedar-review-policy-diff, cedar_advise, cedar_authorize, cedar_authorize_batch, cedar_check_policy_change, cedar_diff_policy_stores and 12 more.