The AWS Bedrock Guardrails template connects an Amazon Bedrock guardrail as a custom rule engine in MCP Manager. You create and tune the guardrail in AWS; MCP Manager calls Bedrock’sDocumentation Index
Fetch the complete documentation index at: https://docs.mcpmanager.ai/llms.txt
Use this file to discover all available pages before exploring further.
ApplyGuardrail API on your behalf and translates the result into a pass / modify / block verdict on the tool message. Add it from Rule Engines → Add → AWS Bedrock Guardrails.
This page summarizes Bedrock Guardrails to help you decide how to configure one for MCP Manager. AWS owns the feature and changes it often — treat the AWS Bedrock Guardrails documentation and the AWS Bedrock pricing page as the authoritative source for the current policy types, limits, tiers, and prices.
What Bedrock Guardrails is
Amazon Bedrock Guardrails is a managed safety layer that evaluates content against policies you define — on both the way in (prompts) and the way out (model responses). Its defining property for governance is that it enforces deterministic controls that don’t depend on a model cooperating: unlike instructions embedded in a prompt, a guardrail’s decision doesn’t rely on the model’s reasoning quality. (AWS publishes its own efficacy figures for how much harmful content guardrails catch; see the AWS product page for the current numbers and methodology.)Why MCP Manager uses the ApplyGuardrail API
Bedrock’sApplyGuardrail API evaluates content against a guardrail without invoking any foundation model — standalone content moderation, decoupled from inference. That decoupling is what makes a guardrail a fit for a gateway: MCP Manager sends the tool message text from your MCP traffic to ApplyGuardrail, the guardrail applies its configured policies, and MCP Manager acts on the verdict. Two consequences are worth knowing:
- It’s model-agnostic. Because the guardrail evaluates text rather than running a model, the same guardrail you use elsewhere in Bedrock works here against MCP tool traffic — independent of which model your client ultimately talks to.
- It complements model-side guardrails rather than replacing them. A guardrail attached to a model call protects that call; applying a guardrail at the MCP gateway protects the data flowing through your connections. You can run both.
The policies a guardrail can enforce
AWS groups guardrail safeguards into several configurable policy types. You enable only the ones you want, and a guardrail must contain at least one policy plus the blocked-prompt and blocked-response messaging. The current set, per AWS:Content filters
Content filters
Detect and filter harmful text (and image) content across predefined categories such as Hate, Insults, Sexual, Violence, Misconduct, and Prompt Attack, with adjustable strength per category.
Denied topics
Denied topics
Define topics that are off-limits for your application; content is blocked when one of those topics appears in a query or a response.
Word filters
Word filters
Block specific words, phrases, and profanity on exact match — useful for competitor names, brand terms, or other disallowed vocabulary.
Sensitive information filters (PII)
Sensitive information filters (PII)
Detect PII from a predefined list or from your own custom types defined with regular expressions, then redact or block it.
Contextual grounding checks
Contextual grounding checks
Evaluate whether a response is grounded in the provided source material and relevant to the question, to reduce hallucinations.
Automated Reasoning checks
Automated Reasoning checks
Mathematically verify natural-language content against policies you define, using formal logic.
Per AWS, Automated Reasoning checks do not protect against prompt injection — they validate content as-is. AWS recommends pairing them with content filters.
What you need from AWS
Configure your guardrail in the Amazon Bedrock console first. Then you only need three things to connect it to MCP Manager:Guardrail ARN
From the AWS console: Bedrock → Guardrails → your guardrail → ARN. It looks like
arn:aws:bedrock:us-east-1:000000000000:guardrail/abc123. MCP Manager parses the region and guardrail ID out of it to build the endpoint URL automatically. The rule-engine form links to the Bedrock guardrails console if you still need to create one.Version
A numeric guardrail version (for example
1), or the literal DRAFT for the unpublished working copy. Pinning a number lets you publish new guardrail versions in AWS while controlling exactly which one MCP Manager uses.The endpoint URL is built for you from the ARN and version — you don’t enter it. MCP Manager constructs
https://bedrock-runtime.<region>.amazonaws.com/guardrail/<guardrail-id>/version/<version>/apply, taking the region and guardrail ID from the ARN. The HTTP method is fixed to POST.How it behaves as a rule
Once saved, the Bedrock engine appears in the Detection method dropdown on any gateway rule. On the rule’s detection hook, MCP Manager forwards the tool message to your guardrail throughApplyGuardrail and acts on the result. As with every custom engine, there is no action picker — the guardrail’s decision drives whether the message passes, is modified, or is blocked — and the rule’s failure mode defaults to Block if Bedrock is unreachable or errors. You can test the engine with sample text before attaching it to a gateway.
Cost, tiers, and logging to plan for
A few AWS-side operational details affect how you configure and budget a guardrail. All of these are AWS behaviors and can change — confirm the specifics against AWS before relying on them.Safeguard tiers
Content filters and denied topics can each run in a Classic or Standard tier, and you can mix tiers within one guardrail. The Standard tier adds stronger contextual understanding (including robustness to typos and variations), better prompt-attack defense, and support for many more languages. Using the Standard tier requires opting in to cross-region inference for Bedrock Guardrails. See the AWS safeguard-tiers announcement.Pricing
Bedrock Guardrails is billed per policy, per text unit, and you pay only for the policies you enable. A text unit holds up to 1,000 characters, so a longer message counts as several text units. Two billing nuances matter for a gateway that evaluates traffic inline:- Evaluation is charged even when content is blocked — a block doesn’t make the check free.
- In MCP Manager’s standalone
ApplyGuardrailuse there is no model inference to pay for, so a blocked input costs only the guardrail evaluation.
These charges are billed by AWS, not by MCP Manager. As long as your plan includes custom rule engines, MCP Manager does not meter or charge per call for routing MCP traffic to a Bedrock guardrail — you pay AWS directly, under Bedrock’s own pricing, for the calls your guardrail evaluates.
Logging and encryption
Guardrails are encrypted with an AWS-managed key by default, and you can supply your own customer-managed KMS key instead. See AWS for the details.Further reading
Lakera Guard
A security-first custom rule engine for prompt injection, jailbreaks, and PII.
Custom Rule Engines
How custom engines are added, tested, and applied to gateway rules.
Gateway Rules Overview
Detection methods, hooks, failure modes, actions, and rule ordering.
Microsoft Presidio
The built-in PII detection method, complementary to a Bedrock guardrail.
.png?fit=max&auto=format&n=gKqTvJPtsRi2bLNx&q=85&s=8abbce3efb590630de2102c43d32aadf)
.png?fit=max&auto=format&n=Dy9YsIECUbR9JZiT&q=85&s=a1f404cd7f7aeb1727c89d81137ae1ac)