AWS Builder Center

Build a Private MCP Server for Amazon Quick with VPC Connectivity

Learn how to connect Amazon Quick to an MCP server that stays fully inside an AWS VPC. This pattern uses a public TLS certificate, private DNS, an internal ALB, and a Quick VPC connection so AI can query internal observability data without exposing it to the internet.

Cloud Engineer, Devops
AI assistants become much more useful when they can reach real operational data: traces, logs, metrics, internal APIs, and debugging tools. The hard part is doing that without turning private systems into public endpoints.
This article walks through a pattern for connecting Amazon Quick to a Model Context Protocol (MCP) server that runs fully inside an AWS VPC. The demo MCP server queries Jaeger traces for an incident response use case, but the same network pattern can apply to other private tools and APIs.
The core idea is simple:
Use a publicly trusted TLS certificate, but resolve the hostname only inside the VPC.
That gives Amazon Quick a valid HTTPS endpoint while keeping the MCP server private.

Architecture


The request path looks like this:
User -> Amazon Quick
-> Quick VPC connection ENI in private subnet
-> Route 53 Resolver inbound endpoint
-> Route 53 private hosted zone
-> Internal Application Load Balancer
-> MCP server on EC2
-> Jaeger
The MCP server has no public IP. The load balancer is internal. The hostname resolves only inside the VPC. From the public internet, the service does not exist.

Why This Pattern Works

Amazon Quick needs a valid HTTPS endpoint for the MCP connector. That means the endpoint hostname must match a trusted TLS certificate.
At the same time, the backend service should not be exposed publicly.
This design separates those concerns:
  • ACM provides a public certificate for the hostname.
  • Route 53 private hosted zone resolves the hostname only inside the VPC.
  • An internal ALB terminates TLS and forwards traffic to the MCP server.
  • A Quick VPC connection places Quick-managed ENIs inside private subnets.
  • Route 53 Resolver inbound gives Quick explicit DNS resolver IPs for the private hostname.
The result is a private endpoint with valid TLS.

Components

The Terraform in this project creates:
  • A VPC with public and private subnets
  • NAT Gateway and Internet Gateway for setup-time outbound access
  • Security groups for the bastion, ALB, MCP server, resolver, and Quick ENIs
  • A private EC2 instance running Jaeger and the MCP server
  • A bastion host for administrative SSH access
  • An ACM certificate for the MCP hostname
  • An internal Application Load Balancer
  • A Route 53 private hosted zone and alias record
  • A Route 53 Resolver inbound endpoint
  • An Amazon Quick VPC connection
The MCP server exposes:
  •  /health  for ALB health checks
  •  /mcp  for the MCP connector
  • tools that query Jaeger traces and investigate failures

DNS: The Important Detail

There are two DNS concerns that are easy to mix up.
First, ACM needs DNS validation. That validation record lives in public DNS, wherever your domain is hosted. It proves that you control the domain.
Second, the MCP hostname itself lives in a Route 53 private hosted zone. That private record points to the internal ALB.
So the public DNS record is only for certificate validation. The actual MCP endpoint remains private.
From the internet:
dig +short A mcp.example.com @1.1.1.1
The expected result is empty.
From inside the VPC:
getent hosts mcp.example.com
The expected result is a private IP for the internal ALB.

TLS: Public Certificate, Private Endpoint

The ALB listens on HTTPS port 443 and uses the ACM certificate for the MCP hostname.
Behind the ALB, traffic is forwarded to the MCP server on port 8000 over HTTP inside the VPC.
This keeps the external contract clean:
https://mcp.example.com/mcp
But the service is still reachable only through the private network path.

Why Use an Internal ALB?

You could try to point directly at an EC2 instance, but the ALB gives several benefits:
  • TLS termination with an ACM certificate
  • A stable DNS alias target
  • Health checks
  • A clean place to scale to multiple MCP targets later
  • Network separation between Quick and the instance running the tools
The security group chain is also easier to reason about:
Quick ENI -> ALB :443
ALB -> MCP server :8000
Bastion -> MCP server :22
The MCP server does not accept application traffic directly from broad CIDR ranges.

Why Route 53 Resolver Inbound Is Needed

The Quick VPC connection provides network reachability by creating ENIs inside private subnets.
DNS resolution is a separate problem.
Quick needs resolver IPs that can answer for the private hostname. A Route 53 Resolver inbound endpoint provides those private DNS IPs. Terraform passes those resolver IPs into the Quick VPC connection.
Without this piece, the VPC path may exist, but the MCP hostname cannot be resolved.

Deploying with Terraform

The repository includes Terraform for the infrastructure.
cd terraform
terraform init
terraform apply
Before applying, replace placeholder values such as:
  •  mcp.example.com 
  • AWS account-specific values
  • domain validation records
  • repository URL for the MCP server
After Terraform requests the ACM certificate, add the generated validation CNAME to your public DNS provider. Once ACM marks the certificate as issued, the ALB listener can use it.

Creating the MCP Connector in Amazon Quick

After the VPC connection is available, create the MCP connector in Amazon Quick:
  1. Open Amazon Quick.
  1. Create a Model Context Protocol connector.
  1. Set the MCP endpoint to:
https://mcp.example.com/mcp
  1. Select the named VPC connection.
  1. Choose the required authentication mode for your environment.
  1. Create the connector and let Quick discover the MCP tools.
For the demo setup, the connector can be tested with a Jaeger-backed incident investigation prompt.
Example:
I got a 500 error at checkout. What's the root cause?
Quick calls the MCP tool through the private VPC path, the MCP server queries Jaeger, and the assistant can summarize the failing service chain.
A typical result might identify:
checkout-service returned 500
payment-service failed
bank-api timed out after 3000 ms
The important part is that the trace data stays inside the private network.

Verification Checklist

Before calling the setup complete, verify each layer independently.
Check public DNS:
dig +short A mcp.example.com @1.1.1.1
This should return nothing.
Check private DNS from inside the VPC:
getent hosts mcp.example.com
This should return a private address.
Check HTTPS health:
curl -s https://mcp.example.com/health
Expected response:
{"status":"ok","server":"jaeger-mcp","version":"1.0.0"}
Then verify that Amazon Quick can discover and invoke the MCP tools.

Operational Notes

A few practical details matter:
  • Keep the ACM DNS validation record in public DNS so the certificate can renew.
  • Use private subnets in at least two Availability Zones for the ALB and Quick VPC connection.
  • Restrict security groups by source security group wherever possible.
  • Remove demo infrastructure when finished, because NAT Gateway, ALB, resolver endpoints, and VPC connections can incur ongoing cost.
  • Add OAuth or another authentication layer before adapting this pattern for production workloads.

Conclusion

This pattern gives Amazon Quick access to useful internal tools without making those tools public.
The main design principle is:
Public trust for TLS, private resolution for reachability.
With an internal ALB, private Route 53 DNS, Route 53 Resolver inbound, and a Quick VPC connection, an MCP server can stay inside the VPC while still becoming available to an AI assistant in a controlled way.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article