Home icon

Build a multi-account AI agent with AgentCore Gateway and MCP

Machine Learning Blog



This article demonstrates how to build a multi-account AI agent architecture that keeps data distributed across line-of-business accounts while enabling centralized agent reasoning through Amazon Bedrock AgentCore Gateway and Model Context Protocol (MCP).

  • Deploy agents centrally on AgentCore Runtime in a platform account with LLM inference through Amazon Bedrock
  • Each LOB team exposes data and tools as MCP servers running on AgentCore Runtime in their own accounts
  • AgentCore Gateway aggregates MCP servers behind a single endpoint with semantic tool discovery and unified authentication
  • Use OAuth 2.0 machine-to-machine credentials and AgentCore Identity for cross-account authentication
  • Enforce fine-grained authorization with Policy in AgentCore (Cedar) at the Gateway layer based on user JWT claims
  • Apply Amazon Bedrock Guardrails for PII redaction and content filtering on user input and agent output
  • Enable cost attribution by tagging agent execution roles and tracking tool invocations per LOB
  • Monitor agent quality continuously with AgentCore Evaluations and safely roll out versions with A/B testing

This hub-and-spoke pattern enables enterprises to build AI agents that reason over distributed data without centralizing or copying it, while maintaining security, governance, and clear cost boundaries across accounts.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Dec 8
2025
Streamline AI agent tool interactions: Connect API Gateway to AgentCore Gateway with MCP
Aug 5
2026
How we built an MCP bridge to give our AgentCore-hosted AI agent access to local MCP tools
Sep 18
2026
Migrating multi-model AI agents to Amazon Bedrock AgentCore runtime
Jul 28
2026
How AgentCore Gateway supports the MCP 2026-07-28 spec

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.