Skip to content

// diagrams › aws

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.

Architecture diagram of AWS WAF AI Security: apps and AI agents send MCP, A2A and LLM calls to a CloudFront distribution, which is inspected by an AWS WAF protection pack running the AI Security rule group; WAF sends content checks to Amazon Bedrock Guardrails through an IAM role and publishes labels to CloudWatch metrics; CloudFront forwards to an Application Load Balancer in front of an MCP server and to an API Gateway REST API in front of an A2A agent on Lambda, all in one Region; API Portal sits beside the path and reads logs and configuration to discover the endpoints.

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.

Your diagram is one sentence away.

Start drawing, free

No account needed to start.