---
title: "AWS MCP gateway: AgentCore Gateway vs a self-hosted gateway in your VPC"
description: "Compare the AWS MCP gateway, Amazon Bedrock AgentCore Gateway, with a self-hosted MCP gateway in your VPC: auth, private networking, policy, logs, and cost."
summary: "Amazon Bedrock AgentCore Gateway gives agents one AWS-managed MCP endpoint for Lambda functions, APIs, and existing MCP servers. This comparison weighs it against running a gateway such as Bifrost in your own VPC: authentication, private networking, policy, telemetry, and pricing."
type: "comparison"
canonical_url: "https://theaiengineering.com/articles/aws-mcp-gateway"
markdown_url: "https://theaiengineering.com/articles/aws-mcp-gateway.md"
topic: "Model Context Protocol"
author: "The AI Engineering Editors"
publisher: "The AI Engineering"
published: "2026-11-27"
updated: "2026-11-27"
keywords: ["aws mcp gateway","agentcore gateway","aws mcp server","aws mcp gateway open source","agentcore gateway pricing","aws mcp gateway registry"]
citation: "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"
---

# AWS MCP gateway: AgentCore Gateway vs a self-hosted gateway in your VPC

## TL;DR

- Amazon Bedrock AgentCore Gateway is the AWS MCP gateway: a fully managed service that aggregates Lambda functions, API Gateway stages, OpenAPI and Smithy schemas, and remote MCP servers into one MCP endpoint, with JWT or IAM inbound authorization.
- The AWS MCP Server is a managed MCP server that exposes AWS documentation and AWS APIs to agents, so it is an upstream server that a gateway can front, not a gateway itself.
- AgentCore Gateway can keep both legs of tool traffic private, with an AWS PrivateLink endpoint for callers and VPC Lattice for private targets, but the gateway itself still runs in the AWS-managed AgentCore service.
- A self-hosted MCP gateway such as Bifrost runs inside your VPC, so tool arguments, results, logs, and upstream credentials stay in infrastructure you operate, at the cost of deploying, scaling, and patching the gateway yourself.
- As of November 2026, AgentCore Gateway bills $0.005 per 1,000 MCP API invocations, $0.025 per 1,000 search calls, and $0.02 per 100 tools indexed per month.

Amazon Bedrock AgentCore Gateway is the AWS MCP gateway: a [fully managed service](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway.html) 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](https://www.getmaxim.ai), an [open-source AI gateway](https://github.com/maximhq/bifrost) 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](https://theaiengineering.com/glossary/mcp-gateway) is a proxy between agents and the servers that expose tools over the [Model Context Protocol](https://theaiengineering.com/glossary/model-context-protocol); the [MCP topic hub](https://theaiengineering.com/topics/mcp) 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](https://theaiengineering.com/glossary/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](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/mcp-server.html) 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](https://theaiengineering.com/articles/skills-vs-mcp). As of November 2026 it serves eight Regions and accepts OAuth 2.1, or SigV4 through [MCP Proxy for AWS](https://github.com/aws/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](https://aws.amazon.com/about-aws/whats-new/2025/12/api-gateway-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](https://aws.amazon.com/blogs/opensource/governing-ai-assets-at-scale-with-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](https://theaiengineering.com/platforms/mcp-platforms).

## 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](https://theaiengineering.com/glossary/a2a-protocol) services.
- **Inference targets:** model requests routed to providers such as [Amazon Bedrock](https://theaiengineering.com/articles/aws-bedrock-pricing), OpenAI, and Anthropic based on the requested model.

For [MCP server targets](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway-target-MCPservers.html), 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](https://theaiengineering.com/glossary/mcp-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](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway-inbound-auth.html), 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.

**Figure 1: With AgentCore Gateway, PrivateLink and VPC Lattice keep both legs of tool traffic private, while the gateway runs in the AWS-managed service.**

An agent in your VPC reaches the AWS-managed AgentCore Gateway through a PrivateLink endpoint, and the gateway reaches a private MCP server through a VPC Lattice resource gateway.

Components:

- **Agent**: MCP client
- **Interface endpoint**: AWS PrivateLink
- **AgentCore Gateway**: Auth, policy, catalog CloudWatch telemetry
- **Lambda and API targets**: Over the AWS network
- **Resource gateway**: VPC Lattice, managed or self-managed
- **Private MCP server**: HTTPS endpoint

Groups:

- Caller VPC: Agent, Interface endpoint
- AWS-managed AgentCore: AgentCore Gateway, Lambda and API targets
- Tool VPC: Resource gateway, Private MCP server

Connections:

- Agent → Interface endpoint
- Interface endpoint → AgentCore Gateway
- AgentCore Gateway → Lambda and API targets
- AgentCore Gateway → Resource gateway
- Resource gateway → Private MCP server

Inbound, the interface endpoint uses the service name `com.amazonaws.region.bedrock-agentcore.gateway`. [VPC endpoint policies](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/vpc-interface-endpoints.html) 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](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/vpc-egress-private-endpoints.html):

- **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](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway-vpc-egress.html) 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](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/policy.html) 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](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway-rate-limits.html) 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](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/agentcore-regions.html) lists AgentCore Gateway in 24 Regions, including AWS GovCloud (US-West) and the two China Regions.

[Gateway telemetry](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/observability-gateway-metrics.html) lands in your account as CloudWatch metrics, [OpenTelemetry](https://theaiengineering.com/glossary/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](https://aws.amazon.com/bedrock/agentcore/pricing/) and the [AgentCore service quotas](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/bedrock-agentcore-limits.html). 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](https://theaiengineering.com/glossary/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](https://theaiengineering.com/articles/mcp-security) covers the threats, including [tool poisoning](https://theaiengineering.com/glossary/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](https://docs.getbifrost.ai/deployment-guides/platforms/eks) 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](https://docs.getbifrost.ai/deployment-guides/how-to/airgapped) loads them from local files instead. Maxim AI receives no telemetry from a Bifrost deployment.

**Figure 2: A self-hosted Bifrost MCP gateway keeps the gateway, its logs, and its upstream credentials inside your AWS account.**

Bifrost on EKS inside your VPC takes agent traffic at its MCP endpoint, calls stdio, in-VPC, and SaaS MCP servers, and keeps its stores in your account.

Components:

- **Agents and IDE clients**: Virtual key or OAuth 2.1
- **Bifrost on EKS**: /mcp and Virtual MCP endpoints tool filters, guardrails, logs
- **Stores in your account**: PostgreSQL, Amazon S3, AWS Secrets Manager
- **STDIO server**: Gateway subprocess
- **In-VPC MCP servers**: HTTP or SSE
- **SaaS MCP servers**: Per-user OAuth or token exchange

Connections:

- Agents and IDE clients → Bifrost on EKS
- Bifrost on EKS → STDIO server
- Bifrost on EKS → In-VPC MCP servers
- Bifrost on EKS → Stores in your account
- Bifrost on EKS → SaaS MCP servers: egress

### Connections and tool access

Bifrost [connects to MCP servers](https://docs.getbifrost.ai/mcp/connecting-to-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](https://theaiengineering.com/glossary/virtual-key) header or through [OAuth 2.1](https://docs.getbifrost.ai/mcp/gateway-auth), with Bifrost acting as the authorization server and issuing short-lived JWTs. [Tool filtering](https://docs.getbifrost.ai/mcp/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](https://docs.getbifrost.ai/mcp/virtual-mcps) 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](https://docs.getbifrost.ai/mcp/auth/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](https://docs.getbifrost.ai/enterprise/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](https://docs.getbifrost.ai/mcp/tool-execution) to your application instead of running them, and Agent Mode auto-executes only the tools configured for it.

Enterprise [MCP guardrail rules](https://docs.getbifrost.ai/enterprise/guardrails) 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](https://www.getmaxim.ai/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](https://docs.getbifrost.ai/edge/mcp-governance).

## 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](https://theaiengineering.com/glossary/rate-limiting) 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](https://theaiengineering.com/articles/what-is-an-ai-gateway) 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](https://theaiengineering.com/articles/best-mcp-gateways) 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](https://theaiengineering.com/articles/what-is-model-context-protocol) and [how to build an MCP server](https://theaiengineering.com/articles/how-to-build-an-mcp-server) that either gateway can front, and compare other self-hosted and managed options in the [AI gateways directory](https://theaiengineering.com/platforms/ai-gateways).

Teams evaluating a self-hosted AWS MCP gateway for regulated workloads can [request a Bifrost demo](https://www.getmaxim.ai/book-a-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

- [MCP gateway](https://theaiengineering.com/glossary/mcp-gateway): An MCP gateway is a proxy that sits between MCP hosts and many MCP servers, exposing them through one endpoint and centralizing authentication, tool access policy, and audit logging.
- [Model Context Protocol (MCP)](https://theaiengineering.com/glossary/model-context-protocol): Model Context Protocol (MCP) is an open protocol, introduced by Anthropic in November 2024, that standardizes how AI applications connect to external tools, data sources, and prompts through MCP servers.
- [MCP server](https://theaiengineering.com/glossary/mcp-server): An MCP server is a program that exposes tools, resources, and prompts to AI applications through the Model Context Protocol, running locally over stdio or remotely over Streamable HTTP.
- [MCP transport](https://theaiengineering.com/glossary/mcp-transport): An MCP transport is the binding that carries Model Context Protocol messages between a client and a server; the specification defines stdio for local subprocesses and Streamable HTTP for remote servers.
- [A2A protocol](https://theaiengineering.com/glossary/a2a-protocol): The A2A (Agent2Agent) protocol is an open standard, introduced by Google in April 2025, that lets AI agents built on different frameworks discover each other, exchange messages, and delegate tasks.
- [OpenTelemetry](https://theaiengineering.com/glossary/opentelemetry): OpenTelemetry is an open source, vendor-neutral observability framework of APIs, SDKs, a wire protocol, and naming conventions for traces, metrics, and logs, including conventions for LLM calls and agent runs.
- [Rate limiting](https://theaiengineering.com/glossary/rate-limiting): Rate limiting is the enforcement of a maximum number of requests or tokens a client may send to an API within a time window, with excess requests rejected, usually with HTTP 429.
- [AI gateway](https://theaiengineering.com/glossary/ai-gateway): An AI gateway is a proxy layer between applications and model providers that exposes one API for many models and centralizes routing, failover, access control, cost tracking, caching, and logging.
- [Tool poisoning](https://theaiengineering.com/glossary/tool-poisoning): Tool poisoning is an attack in which a malicious or compromised MCP server hides instructions in a tool's description or schema, which the model reads as trusted context and may follow.
- [Virtual key](https://theaiengineering.com/glossary/virtual-key): A virtual key is an API key issued by an AI gateway that maps a caller to its allowed models, budget, and rate limits, while the gateway keeps the real provider credentials.
- [Guardrails](https://theaiengineering.com/glossary/guardrails): Guardrails are programmatic checks placed around a large language model that validate, filter, or block inputs, outputs, and tool calls so an AI application stays within its safety, security, and policy limits.

## Related guides

- [MCP security: threats, authentication, and controls for MCP servers](https://theaiengineering.com/articles/mcp-security): MCP security guide: tool poisoning, prompt injection, and token passthrough, how MCP authentication works with OAuth 2.1, and controls for MCP servers.
- [Microsoft MCP Gateway: how it works, how to deploy it, and its limits](https://theaiengineering.com/articles/microsoft-mcp-gateway): Microsoft MCP Gateway is an open-source Kubernetes proxy and control plane for MCP servers. How it routes requests, deploys on AKS, and what it leaves out.
- [Best MCP gateways: open-source and managed options compared](https://theaiengineering.com/articles/best-mcp-gateways): Compare the best MCP gateways, open source and managed: Bifrost, Docker, ContextForge, agentgateway, Kong, AgentCore, Azure, and more, by auth and tool access.
- [AWS Bedrock pricing: tiers, batch, caching, and worked costs](https://theaiengineering.com/articles/aws-bedrock-pricing): AWS Bedrock pricing as of November 2026: us-east-1 token rates, Flex, Priority, and Reserved tiers, batch, prompt caching, and worked monthly costs.

Part of the [Model Context Protocol](https://theaiengineering.com/topics/mcp) topic hub.

## 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: 2026-11-27
- Updated: 2026-11-27
- URL: https://theaiengineering.com/articles/aws-mcp-gateway
- Markdown: https://theaiengineering.com/articles/aws-mcp-gateway.md

To cite one section, link to its anchor:

- [What AWS offers as an MCP gateway](https://theaiengineering.com/articles/aws-mcp-gateway#what-aws-offers-as-an-mcp-gateway)
- [How AgentCore Gateway handles MCP traffic](https://theaiengineering.com/articles/aws-mcp-gateway#how-agentcore-gateway-handles-mcp-traffic)
- [Private networking: PrivateLink in, VPC Lattice out](https://theaiengineering.com/articles/aws-mcp-gateway#private-networking-privatelink-in-vpc-lattice-out)
- [Governance and telemetry in AgentCore Gateway](https://theaiengineering.com/articles/aws-mcp-gateway#governance-and-telemetry-in-agentcore-gateway)
- [AgentCore Gateway pricing and quotas](https://theaiengineering.com/articles/aws-mcp-gateway#agentcore-gateway-pricing-and-quotas)
- [When a self-hosted MCP gateway in your VPC fits better](https://theaiengineering.com/articles/aws-mcp-gateway#when-a-self-hosted-mcp-gateway-in-your-vpc-fits-better)
- [Bifrost as a self-hosted MCP gateway on AWS](https://theaiengineering.com/articles/aws-mcp-gateway#bifrost-as-a-self-hosted-mcp-gateway-on-aws)
- [AgentCore Gateway vs a self-hosted MCP gateway](https://theaiengineering.com/articles/aws-mcp-gateway#agentcore-gateway-vs-a-self-hosted-mcp-gateway)
- [What running your own MCP gateway costs](https://theaiengineering.com/articles/aws-mcp-gateway#what-running-your-own-mcp-gateway-costs)
- [Running AgentCore Gateway and Bifrost together](https://theaiengineering.com/articles/aws-mcp-gateway#running-agentcore-gateway-and-bifrost-together)
- [How to choose an AWS MCP gateway](https://theaiengineering.com/articles/aws-mcp-gateway#how-to-choose-an-aws-mcp-gateway)
- [Frequently asked questions](https://theaiengineering.com/articles/aws-mcp-gateway#faq)
