AWS MCP gateway: AgentCore Gateway vs a self-hosted gateway in your VPC
Amazon Bedrock AgentCore Gateway is the AWS MCP gateway: a fully managed service that gives agents one Model Context Protocol endpoint for Lambda functions, APIs, and existing MCP servers, with inbound and outbound authentication handled by AWS. Teams whose controls require the gateway process, its logs, and its upstream credentials to run inside infrastructure they operate use a self-hosted MCP gateway in their own VPC instead, such as Bifrost, an open-source AI gateway by Maxim AI. This comparison checks both against their documentation as of November 2026 and covers authentication, private networking, policy, telemetry, cost, and running the two together.
An MCP gateway is a proxy between agents and the servers that expose tools over the Model Context Protocol; the MCP topic hub collects the related guides.
What AWS offers as an MCP gateway#
AWS operates one managed MCP gateway, Amazon Bedrock AgentCore Gateway. Searches for an AWS MCP gateway also return the AWS MCP Server, MCP Proxy for AWS, the MCP proxy feature in Amazon API Gateway, and the open-source MCP Gateway and Registry. Each does a different job, and only AgentCore Gateway is a gateway that AWS runs for you.
| Option | What it is | Who runs it | Role in an MCP stack |
|---|---|---|---|
| Amazon Bedrock AgentCore Gateway | Managed gateway that aggregates targets into one MCP endpoint and also fronts HTTP agents and model providers | AWS | MCP gateway |
| AWS MCP Server | Managed remote MCP server for AWS documentation, AWS API calls, sandboxed scripts, and skills | AWS | Upstream MCP server |
| MCP Proxy for AWS | Open-source client-side proxy and library that signs MCP requests with SigV4 | You, on the client | Client authentication bridge |
| Amazon API Gateway MCP proxy | Feature that exposes REST APIs as MCP endpoints through AgentCore Gateway | AWS | Tool source |
| MCP Gateway and Registry | Apache 2.0 registry for MCP servers, agents, and skills, with an optional gateway | You | Self-hosted gateway and registry |
The AWS MCP Server lets agents search AWS documentation without credentials and, under the caller's IAM credentials, call AWS APIs, run sandboxed Python scripts, and follow curated skills. As of November 2026 it serves eight Regions and accepts OAuth 2.1, or SigV4 through MCP Proxy for AWS for clients that cannot sign requests themselves. AWS recommends it over the older AWS API MCP Server and AWS Knowledge MCP Server.
Amazon API Gateway added MCP proxy support on December 2, 2025, which turns existing REST APIs into MCP endpoints through AgentCore Gateway, so it feeds tools into AgentCore rather than replacing it. The MCP Gateway and Registry, described on the AWS Open Source Blog in June 2026, is a registry with an optional nginx-based gateway that you deploy yourself on EKS, ECS, or EC2 with Docker Compose. It belongs with the other self-hosted options in the MCP platforms directory.
How AgentCore Gateway handles MCP traffic#
AgentCore Gateway acts as one virtual MCP server. It aggregates every MCP target into a single tools/list response, translates MCP calls into Lambda invocations and API requests, injects the right credential for each target, and offers a semantic search tool so agents can find relevant tools in a large catalog without loading every definition into context.
The targets of the AWS MCP gateway fall into three categories:
- MCP targets: Lambda functions, API Gateway REST API stages, OpenAPI and Smithy schemas, remote MCP servers, built-in integration templates, and built-in connectors, merged into one catalog.
- HTTP targets: passthrough traffic with no aggregation or protocol translation, used for AgentCore Runtime agents and A2A services.
- Inference targets: model requests routed to providers such as Amazon Bedrock, OpenAI, and Anthropic based on the requested model.
For MCP server targets, the gateway supports protocol versions 2026-07-28, 2025-11-25, 2025-06-18, and 2025-03-26, and the versions are fixed when the gateway is created unless the account is enabled for version updates. In the default listing mode, the gateway indexes each server's tools, prompts, and resources, and you call SynchronizeGatewayTargets whenever they change. Dynamic mode fetches capabilities at call time instead, but it does not work with semantic search or outbound three-legged OAuth.
MCP server targets are remote endpoints, so a server that only speaks the stdio transport has to be hosted remotely first, for example on AgentCore Runtime.
Inbound and outbound authentication#
Outbound, the gateway authenticates to an MCP server with OAuth (client credentials, authorization code, or on-behalf-of token exchange), an API key, or IAM SigV4 signed with the gateway's service role. SigV4 works only when the server sits behind a service that verifies signatures: AgentCore Gateway, AgentCore Runtime, API Gateway, or Lambda function URLs. A server behind an Application Load Balancer or on a bare EC2 endpoint needs OAuth or an API key.
Inbound, a gateway uses a JWT authorizer from any OIDC provider, IAM, or one of two offloaded modes, Authenticate only and No Authorization. In an offloaded mode the gateway makes no access decision, and AWS warns that a policy engine, an interceptor Lambda function, or the target must enforce access, or any caller can reach the target. With JWT inbound auth, CloudTrail records the token's subject claim, so keep personal data out of that field.
Private networking: PrivateLink in, VPC Lattice out#
AgentCore Gateway can keep both legs of MCP traffic off the public internet. Callers reach it through an AWS PrivateLink interface endpoint, and the gateway reaches private MCP servers and OpenAPI backends through Amazon VPC Lattice. The gateway itself still runs in the AWS-managed AgentCore service in an AWS Region, not inside your VPC.
Inbound, the interface endpoint uses the service name com.amazonaws.region.bedrock-agentcore.gateway. VPC endpoint policies can restrict only IAM principals, so a gateway with JWT inbound auth needs Principal: * in its endpoint policy and relies on the gateway's authorizer to filter callers.
Outbound, you set a privateEndpoint on MCP server and OpenAPI targets and choose one of two VPC Lattice modes:
- Managed VPC resources: you supply the VPC, subnets, and security groups. AgentCore creates a resource gateway in your account that is read-only to you, keeps the resource configuration in the AgentCore service account, and does not support cross-account targets.
- Self-managed Lattice resources: you create and own the resource gateway and resource configuration, can audit and revoke each connection, and can share resources across accounts through AWS RAM, at an hourly charge per resource plus data processing.
The VPC egress guide covers what a security review asks. A target can trust a private certificate authority whose certificate sits in Amazon S3 or AWS Secrets Manager, but the gateway does not check CRLs or OCSP, so a revoked certificate stays trusted until it expires or the target is updated, and open connections keep the old trust material for up to 15 minutes. Targets with a private endpoint cannot use No Authorization inbound unless an interceptor Lambda function is configured, and private connectivity for Smithy targets needs an AWS Support case.
Governance and telemetry in AgentCore Gateway#
AgentCore Gateway governs tool calls with Policy in AgentCore for Cedar-based authorization, interceptor Lambda functions for custom checks, per-caller rate limits, and customer-managed AWS KMS keys. These controls plug into IAM, KMS, and CloudWatch, which most AWS security teams already review, and AWS runs and scales the gateway, so there is no fleet to patch.
- Policy: Policy in AgentCore evaluates each tool call through a gateway against Cedar policies before the target runs. Policies can be written in natural language and translated into Cedar, with automated reasoning that flags rules that are overly permissive, overly restrictive, or impossible to satisfy, and temporal policies can reason over earlier actions in the same session.
- Interceptors and encryption: a gateway can run one REQUEST and one RESPONSE interceptor Lambda function for custom authorization and transformation, and can be encrypted with a customer-managed AWS KMS key.
- Rate limits: gateway rate limits group traffic by JWT claims, IAM identity, target, or tool, cap tokens per minute on inference targets, and block a caller with a rate of zero. They fail open by default, so AWS advises against relying on them as a security boundary.
- Regions: as of November 2026, the Regions table lists AgentCore Gateway in 24 Regions, including AWS GovCloud (US-West) and the two China Regions.
Gateway telemetry lands in your account as CloudWatch metrics, OpenTelemetry-compatible spans, and vended logs sent to CloudWatch Logs, Amazon S3, or Firehose, which can include request and response bodies. Gateway application logs do not record policy decisions: a denied call never reaches the target and produces no request record, so denials are monitored through the policy metrics and spans instead.
AgentCore Gateway pricing and quotas#
AgentCore Gateway, the AWS MCP gateway, uses consumption-based pricing with no upfront commitment: you pay per MCP API call, per semantic search call, and per indexed tool, plus data sent to your VPCs. Default service quotas cap targets per gateway, tools per target, and tool-call throughput, and AWS lists every gateway quota as adjustable through Service Quotas.
| Item (as of November 2026) | AgentCore Gateway |
|---|---|
| MCP API invocations (ListTools, InvokeTool, Ping) | $0.005 per 1,000 |
| Search API calls | $0.025 per 1,000 |
| Tool indexing | $0.02 per 100 tools per month |
| Data egress to customer-owned VPCs | $0.006 per GB |
| Policy in AgentCore authorization requests | $0.000025 per request |
| Targets per gateway (default quota) | 100 |
| Tools per target (default quota) | 1,000 |
| Tool-call and tool-list rate (default quota) | 200 transactions per second per gateway and per account |
| Gateway invocation timeout | 15 minutes |
| Maximum tool-call payload | 6 MB |
Sources: AgentCore pricing and the AgentCore service quotas. At these rates, one million tool calls cost $5 in gateway invocation charges, before Lambda, VPC Lattice data processing, logging, and the targets themselves. Because the throughput default also applies per account, busy multi-agent deployments should request an increase before launch.
When a self-hosted MCP gateway in your VPC fits better#
Run the MCP gateway yourself when a control requires the gateway's compute, its logs, and its credentials to sit inside infrastructure you deploy and operate. With the managed AWS MCP gateway, private networking keeps traffic off the internet, but every tool call is still processed by the AWS-managed service in an AWS Region.
The usual triggers for self-hosting:
- Data-handling rules say tool arguments and results may be processed only by software running in your account, with logs written to stores you own.
- The environment is air-gapped or has no route to a Regional AWS endpoint.
- Tools include stdio servers that should run next to the gateway, or servers in other clouds and on premises.
- Model calls and tool calls need one set of keys, budgets, and logs in an AI gateway that you run.
- Tool access has to follow users and teams synced from your identity provider, with per-user credentials to upstream servers.
The MCP security guide covers the threats, including tool poisoning, that a gateway in either model has to address.
Bifrost as a self-hosted MCP gateway on AWS#
Bifrost is an AI gateway and control plane for model, MCP tool, and agent traffic, with an Apache 2.0 open-source core. As an MCP gateway, Bifrost is an MCP client to upstream servers and an MCP server to agents, and on AWS it runs on Amazon EKS or ECS inside your VPC, so the gateway process and its stores stay in your account.
Bifrost ships as a single binary that installs with npx, Docker, Kubernetes, or the Go SDK. The EKS deployment guide installs it with the Helm chart, Bifrost Enterprise images come from Amazon ECR through IRSA or ECS task roles, and Enterprise needs PostgreSQL 16 or later for its stores. Bifrost fetches pricing datasheets from getbifrost.ai at startup by default, so an air-gapped deployment loads them from local files instead. Maxim AI receives no telemetry from a Bifrost deployment.
Connections and tool access#
Bifrost connects to MCP servers over STDIO, HTTP, or SSE, and can generate a server from an OpenAPI document (beta). A STDIO server runs as a gateway subprocess inside your cluster, and tool lists refresh every 10 minutes by default or on demand.
Agents reach the /mcp endpoint with a virtual key header or through OAuth 2.1, with Bifrost acting as the authorization server and issuing short-lived JWTs. Tool filtering stacks the client configuration, per-request headers, and the virtual key, so a tool must pass every filter that applies, and an empty tool list on a client denies all of its tools.
A Virtual MCP bundles selected tools from several servers into one endpoint at /mcp/<slug>, reachable only through the virtual keys attached to it.
Identity, credentials, and guardrails#
Upstream, Bifrost authenticates to MCP servers with static headers, OAuth 2.0 with automatic token refresh, per-user OAuth, per-user headers, or token exchange, which swaps each caller's identity-provider token for a short-lived token scoped to the upstream server. Token exchange is an Enterprise feature and requires an enabled SCIM identity provider. The upstream auth types do not include IAM SigV4, which matters when the upstream is an IAM-authorized AWS endpoint.
With secret management, an Enterprise feature, Bifrost stores a reference to AWS Secrets Manager instead of a plaintext value, including MCP auth headers. When Bifrost adds MCP tools to a model request, it returns the tool calls to your application instead of running them, and Agent Mode auto-executes only the tools configured for it.
Enterprise MCP guardrail rules inspect or redact tool arguments before a tool executes and tool results after it returns, with AWS Bedrock Guardrails among the supported providers. Bifrost keeps MCP logs alongside LLM logs. Enterprise deployments can also offload payloads to Amazon S3 while searchable metadata stays in the database, and record administrative changes in audit logs that can be signed with an HMAC key.
Beyond the gateway, Bifrost applies these governance and security controls (virtual keys, tool filters, guardrails, and audit logs) in one place, and Bifrost Edge extends the same governance and security to the AI apps on employee machines, where it inventories the MCP servers each app has configured and enforces allow and deny decisions on each device.
AgentCore Gateway vs a self-hosted MCP gateway#
AgentCore Gateway and a self-hosted gateway such as Bifrost do the same core job, one governed MCP endpoint in front of many tools, and differ mainly in where the gateway runs and who operates it. AgentCore builds on IAM, Cedar, and CloudWatch; Bifrost builds on virtual keys, your identity provider, and stores in your own account.
| Amazon Bedrock AgentCore Gateway | Bifrost in your VPC | |
|---|---|---|
| Where the gateway runs | AWS-managed service in an AWS Region | Your EKS or ECS cluster |
| Who operates it | AWS runs and scales it | Your team deploys, scales, and patches it |
| Caller authentication | JWT from an OIDC provider, IAM SigV4, or offloaded modes | Virtual key header, or OAuth 2.1 with Bifrost-issued JWTs |
| Upstream authentication | OAuth (client credentials, authorization code, token exchange), API key, IAM SigV4 | Headers, OAuth 2.0, per-user OAuth, per-user headers, token exchange (Enterprise); no SigV4 |
| Tool sources | Lambda, API Gateway, OpenAPI, Smithy, remote MCP servers, connectors | STDIO, HTTP, and SSE MCP servers; OpenAPI documents (beta) |
| Stdio servers | Hosted remotely first, for example on AgentCore Runtime | Run as gateway subprocesses |
| Tool discovery | Aggregated catalog with semantic search; explicit sync in default mode | Aggregated catalog; periodic sync every 10 minutes by default, plus manual refresh |
| Access policy | Cedar policies, interceptor Lambda functions, rate limits | Layered tool filters, Virtual MCPs, virtual key budgets and rate limits |
| Content guardrails | Amazon Bedrock Guardrails through Policy and inference targets | MCP guardrail rules on arguments and results (Enterprise), Bedrock Guardrails included |
| Logs and traces | CloudWatch metrics, spans, and vended logs to CloudWatch Logs, S3, or Firehose | MCP and LLM logs in your database, payload offload to S3 (Enterprise), OpenTelemetry tracing |
| Model traffic | Inference targets with model-based routing | LLM gateway for 10,000+ models across 25+ providers, Bedrock included |
| Pricing model | Per call, per search, per indexed tool | Open source free to self-host; Enterprise custom-priced |
Both gateways now route model traffic as well as tool traffic, so the choice turns on whether an AWS-managed control point satisfies your controls and which team carries the operational load. Rate limits differ too: AgentCore groups them by caller, target, or tool, while Bifrost attaches them, with budgets, to virtual keys, teams, and customers.
What running your own MCP gateway costs#
Self-hosting replaces the per-call bill of the AWS MCP gateway with infrastructure and people. You pay for the cluster nodes, the PostgreSQL database behind the config and log stores, object storage for payloads, and the engineering time to run a service that sits in the request path of every tool call your agents make.
- Availability: open-source Bifrost can run several nodes from a shared
config.json, but changes need a restart; real-time state sync across nodes is an Enterprise clustering feature. - Upgrades: you schedule and test gateway releases and patch the Kubernetes cluster underneath.
- Incidents: when tool calls fail overnight, your on-call engineer debugs the gateway instead of opening an AWS support case.
- Licensing: token exchange, MCP guardrails, secret management, audit logs, and clustering are Enterprise features, and Enterprise is custom-priced.
AgentCore Gateway does not remove all of that work either. Teams still own IAM roles, Lattice resources, KMS keys, log destinations, Cedar policies, and quota requests; AWS runs the gateway process and its scaling. The explainer on what an AI gateway is covers the general build-versus-buy trade-off for gateways.
Running AgentCore Gateway and Bifrost together#
The two gateways can run side by side, split by workload risk. A common pattern keeps AgentCore Gateway for AWS-native tools such as Lambda functions and API Gateway stages, and routes regulated data paths, stdio servers, and tools in other clouds through Bifrost in the VPC.
AgentCore Gateway exposes a standard MCP endpoint at https://{gateway-id}.gateway.bedrock-agentcore.{region}.amazonaws.com/mcp, so Bifrost can also register a gateway as an upstream HTTP MCP server and put its tools behind virtual keys. Check the authentication pairing first:
- JWT authorizer: the gateway accepts tokens from the identity provider it trusts, which can pair with Bifrost's OAuth 2.0 mode (authorization code flow with automatic refresh) or, for per-caller identity, token exchange against the same identity provider.
- IAM authorizer: the gateway expects SigV4-signed requests, which none of the MCP upstream auth types in Bifrost produce, so use a JWT authorizer for gateways that Bifrost fronts.
Layering two gateways adds a network hop and a second set of logs, so decide up front which gateway's records form the audit trail.
How to choose an AWS MCP gateway#
Choose AgentCore Gateway when an AWS-managed control point satisfies your controls and your tools already live in AWS. Choose a self-hosted MCP gateway when your controls require the gateway inside your own boundary, or when tools span stdio servers, other clouds, or disconnected networks.
| If this is true | Start with | Why |
|---|---|---|
| Tools are Lambda functions, API Gateway stages, and OpenAPI services in AWS | AgentCore Gateway | Native targets, IAM roles, and no gateway fleet |
| Auditors accept an AWS-managed service as the tool-call control point | AgentCore Gateway | PrivateLink, VPC Lattice, KMS, CloudTrail, and Cedar policies |
| Workloads run in AWS GovCloud (US-West) | AgentCore Gateway | Listed in that Region as of November 2026 |
| Tool arguments, results, and logs may be processed only by software you run | Bifrost in your VPC | Gateway and stores in your account |
| The environment is air-gapped | Bifrost in your VPC | No dependency on a Regional AWS endpoint |
| Stdio servers or tools in other clouds and on premises | Bifrost in your VPC | Subprocess servers and any reachable HTTP or SSE endpoint |
| Risk levels differ across teams and data classes | Both | AgentCore for AWS-native tools, Bifrost for regulated paths |
For background, read what the Model Context Protocol is and how to build an MCP server that either gateway can front, and compare other self-hosted and managed options in the AI gateways directory.
Teams evaluating a self-hosted AWS MCP gateway for regulated workloads can request a Bifrost demo and run it alongside AgentCore Gateway on a single workload before committing either way.
Frequently asked questions
What is the AWS MCP gateway?
- The AWS MCP gateway is Amazon Bedrock AgentCore Gateway, a fully managed AWS service that turns Lambda functions, API Gateway stages, OpenAPI and Smithy schemas, and existing remote MCP servers into one MCP endpoint for agents. It handles inbound authorization with JWT or IAM, outbound credentials for each target, semantic tool search, and CloudWatch telemetry. It can also proxy HTTP agents and route model requests through inference targets.
What is the difference between AgentCore Gateway and the AWS MCP Server?
- AgentCore Gateway is a gateway: it sits between agents and many tools, aggregates them into one MCP endpoint, and applies authentication and policy. The AWS MCP Server is a single managed MCP server that exposes AWS itself, including documentation search, AWS API calls under your IAM credentials, sandboxed Python scripts, and curated skills. A gateway, managed or self-hosted, can sit in front of the AWS MCP Server like any other upstream server.
Can AgentCore Gateway connect to a private MCP server in my VPC?
- Yes. MCP server and OpenAPI targets accept a privateEndpoint that AgentCore Gateway reaches through Amazon VPC Lattice, either with a managed resource gateway in your subnets or with Lattice resources you create and own. The managed option does not support cross-account targets; the self-managed option does, through AWS RAM. A target can also trust a private certificate authority stored in Amazon S3 or AWS Secrets Manager.
How much does AgentCore Gateway cost?
- As of November 2026, AgentCore Gateway charges $0.005 per 1,000 MCP API invocations such as ListTools and InvokeTool, $0.025 per 1,000 search API calls, $0.02 per 100 tools indexed per month, and $0.006 per GB of data sent to customer-owned VPCs. Policy in AgentCore adds $0.000025 per authorization request. Lambda, VPC Lattice data processing, logging, and the targets themselves are billed separately.
Is there an open source MCP gateway for AWS?
- Yes, several open-source MCP gateways deploy onto AWS. Bifrost, an Apache 2.0 AI gateway by Maxim AI, runs on Amazon EKS or ECS and governs both MCP tool calls and model calls. MCP Gateway and Registry, an Apache 2.0 project described on the AWS Open Source Blog, pairs an asset registry with an optional nginx-based gateway and deploys on EKS, ECS, or EC2. Both run in your account rather than as an AWS-managed service.
Does AgentCore Gateway support stdio MCP servers?
- Not directly. AgentCore Gateway connects to remote MCP servers over HTTPS endpoints, so a server that only speaks the stdio transport has to be hosted as a remote server first, for example on AgentCore Runtime. Self-hosted gateways handle this differently: Bifrost, for example, can launch a stdio MCP server as a subprocess of the gateway and expose its tools through the same /mcp endpoint as remote servers.
Terms in this guide
Cite this guide
The AI Engineering Editors. "AWS MCP gateway: AgentCore Gateway vs a self-hosted gateway in your VPC." The AI Engineering, updated Nov 27, 2026. https://theaiengineering.com/articles/aws-mcp-gateway
- Title
- AWS MCP gateway: AgentCore Gateway vs a self-hosted gateway in your VPC
- Author
- The AI Engineering Editors
- Publisher
- The AI Engineering
- Published
- Updated