Run custom MCP proxies serverless on Amazon Bedrock AgentCore Runtime
AWS•How-to••by Nizar Kheir•AWS Artificial Intelligence Blog
This post shows you how to deploy a serverless MCP proxy on Amazon Bedrock AgentCore Runtime that gives you a programmable layer to implement proper governance, controls, and observability aligned with an organization’s security policies.
Shows how to deploy a stateless MCP proxy on AgentCore Runtime that discovers tools from an upstream MCP server and applies custom controls such as PII tokenization or tool-level access checks before forwarding calls.
Who it is for
Teams running AI agents over MCP that need custom input filtering, audit or access controls outside the AgentCore Gateway Lambda interceptors.
Key points
Proxy authenticates upstream with IAM SigV4 by default, or OAuth client credentials (JWT) via Cognito.
Walkthrough uses an AgentCore Gateway as the upstream server; a deploy script and GitHub repo are provided.
Customization examples cover tokenizing PII in tool arguments and restricting tools per caller.
AI:Both govern MCP tool traffic with a gateway layer, but Microsoft routes it through an existing AI Gateway or APIM while the item builds a custom proxy.
AI:A walkthrough deploys an MCP server on AgentCore Runtime that lets Quick chat agents run insurance risk assessments and fraud checks, with Nova 2 Lite doing the reasoning.
AI:A serverless MCP server on ECS Fargate lets AI agents query an enterprise data lake, and new datasets are added by a metadata JSON file instead of code.
AI:A reference architecture uses X.509 PKI from Keyfactor EJBCA with AWS services to give AI agents cryptographic identity, signed request envelopes, delegation, scoped tokens and OCSP revocation.