Build a multi-account AI agent with AgentCore Gateway and MCP
AWS•How-to••by Senthil Kamala Rathinam, Karthik Tharmarajan and Shashidhar Makkapati•AWS Artificial Intelligence Blog
Build a multi-account architecture that keeps each team’s data in its own AWS account while giving AI agents a unified way to query across them. A central platform account runs the agent using Amazon Bedrock AgentCore Gateway and MCP, while line-of-business accounts expose their data as MCP servers with secure cross-account access and fine-grained authorization.
Shows a hub-and-spoke pattern where a central AWS account runs an AI agent through AgentCore Gateway, while line-of-business accounts keep their data and expose it as MCP servers queried at request time.
Who it is for
Platform and architecture teams in multi-account AWS organizations that want agents across team-owned data without copying it.
Key points
LOB MCP servers return only tool results, not raw datasets, and authenticate via Okta OIDC tokens.
Policy in AgentCore (Cedar, ENFORCE mode) evaluates per-user rules at the Gateway with default-deny.
Reference repository deploys across four accounts; the post notes OBO token exchange was not used because the sample Okta account lacks that flow.
AI:Both route MCP tool traffic through a central gateway for governance; Microsoft uses its own AI Gateway or API Management, AWS uses AgentCore Gateway.
Timeline
Posts about Amazon Bedrock AgentCore Gateway, oldest first.
AI:AWS Professional Services describes a four-agent Strands pattern on Bedrock AgentCore that generates IaC for MCP-connected migrations, which AWS says cut IaC work from 3-4 weeks per application to minutes.
AI:Duco rebuilt its agentic AI stack on Bedrock and AgentCore, using a per-tenant runtime and Gateway, multiple Claude and Nova models, and on-demand MCP skills that cut main context from about 200,000 to 20,000 tokens.
AI:MoEngage built Merlin AI, agents on Bedrock AgentCore runtime that turn its existing OpenAPI platform APIs into MCP tools so marketers can draft, analyze and adjust campaigns in one conversation.