AWS WAF AI Security for MCP, A2A and LLM endpoints
AWS WAF's new AI Security rule group checks MCP and A2A messages and sends prompts to Bedrock Guardrails, while API Portal finds shadow AI endpoints. How it works, how to draw it, limits and cost.
Opens a copy in the editor, in a new tab, ready to change. No account needed.
What’s in this diagram
services and parts
- Apps and AI agents
- CloudFront distribution
- AWS WAF: AI Security rule group
- Bedrock Guardrails
- Application Load Balancer (VPC origin)
- MCP server
- API Gateway REST API
- A2A agent
- API Portal (discovery)
- CloudWatch metrics (labels)
groups
- AWS Cloud
- Region (one of the seven AI Security Regions)
Key points
- API Portal builds an inventory of your APIs and AI endpoints from traffic logs and configuration, with nothing to install, and treats each new endpoint as a shadow API until you manage it.
- The AI Security rule group checks MCP and A2A messages against their protocol in WAF itself, then calls Bedrock Guardrails for prompt attacks, harmful content and sensitive information.
- It protects CloudFront distributions, Application Load Balancers and API Gateway REST APIs only, in seven Regions plus CloudFront.
- It costs $5.00 per million inspected requests on top of the $0.60 WAF request fee, and Bedrock charges separately for the content checks.
The whole story, step by step: AWS WAF AI Security: protecting MCP, A2A and LLM endpoints.


