
From Demos to Deployments: Building Production-Grade AI Agents on AWS with MCP
A practical guide to running Model Context Protocol (MCP) agents on AWS using Amazon Bedrock, Strands Agents and AgentCore, with five architecture patterns that survive enterprise security reviews.
From Demos to Deployments: Building Production-Grade AI Agents on AWS with the Model Context Protocol (MCP)
Everyone has seen the demo. An agent books a meeting, queries a database, and summarises the result, all in one smooth screen recording. Then the same agent meets production traffic, a locked-down VPC, and a security review, and the smooth demo becomes a six-month project.
Having spent the last couple of years building agentic systems for industrial clients, I have come to a simple conclusion: the hard part of agents is not the model. It is the plumbing between the model and your tools. That is exactly the gap the Model Context Protocol (MCP) closes, and AWS now gives us a genuinely solid way to run it at scale.
In this article, I will walk through what MCP actually solves, how it fits into the AWS agentic stack (Amazon Bedrock, Strands Agents, and Amazon Bedrock AgentCore), and the patterns I use to take an agent from a laptop demo to something an enterprise will sign off on.
The N x M problem, and why MCP exists
Before MCP, every agent framework spoke to every tool through custom glue code. Ten agents and ten tools meant up to a hundred bespoke integrations. Each one had its own authentication logic, its own error handling, and its own maintenance burden.
MCP replaces that mess with a single open protocol. A tool is wrapped once as an MCP server, and any MCP-aware agent (the client) can discover and invoke it. The protocol standardises three things:
- Tools: functions the agent can call, with typed schemas
- Resources: data the agent can read, such as files or records
- Prompts: reusable prompt templates the server can expose
Think of it as USB-C for AI agents. You stop wiring each device individually and start plugging into a standard port.
The AWS agentic stack in 2026
AWS has assembled the pieces remarkably quickly, and they map cleanly onto the layers of a production agent:
1. Amazon Bedrock: the reasoning layer. Managed access to frontier models (Anthropic Claude, Amazon Nova, Meta Llama and others) behind one API, with guardrails, knowledge bases, and private connectivity through VPC endpoints.
2. Strands Agents: the orchestration layer. AWS's open-source, model-driven agent SDK. Instead of hand-coding a rigid workflow graph, you give the agent a model, a set of tools, and a prompt, and the model plans the loop itself. Crucially, Strands speaks MCP natively, so an MCP server becomes a first-class tool source in a few lines of code.
3. Amazon Bedrock AgentCore: the runtime layer. This is the piece most teams underestimate. AgentCore provides the serverless runtime, session isolation, memory, identity, and observability needed to run agents securely at scale. Its Gateway component can even convert existing APIs and Lambda functions into MCP-compatible tools without a rewrite.
A minimal but honest example
Here is the shape of a Strands agent that consumes an MCP server. This is close to what I run in real projects, minus client-specific details:
from mcp import stdio_client, StdioServerParameters
from strands import Agent
from strands.tools.mcp import MCPClient
# Connect to an MCP server (here, a local one over stdio)
mcp_client = MCPClient(lambda: stdio_client(
StdioServerParameters(
command="uvx",
args=["awslabs.aws-documentation-mcp-server@latest"]
)
))
with mcp_client:
tools = mcp_client.list_tools_sync()
agent = Agent(
model="anthropic.claude-sonnet-4-20250514-v1:0",
tools=tools,
system_prompt="You are a precise AWS solutions assistant."
)
response = agent("What is the cold start behaviour of Lambda SnapStart?")
print(response)Notice what is absent: no bespoke integration code, no manual schema definitions for each tool. The MCP server advertises its tools, and the agent discovers them at runtime. Swap the documentation server for your own MCP server wrapping an ERP, a historian database, or a ticketing system, and the agent code barely changes.
Five patterns that survive the security review
These are the practices that consistently move projects from proof of concept to production in my experience.
1. Treat MCP servers as microservices, not scripts. Version them, containerise them, and deploy them behind proper identity. On AWS, AgentCore Gateway or a container on ECS/Fargate with IAM-based auth works well. A stdio server on someone's laptop is a demo, not an architecture.
2. Put a guardrail layer between the agent and its tools. An agent with tools is an agent with blast radius. Enforce allow-lists of tools per agent role, validate arguments against schemas before execution, and log every tool call. Amazon Bedrock Guardrails covers the content side; your MCP gateway should cover the action side.
3. Scope credentials to the tool, never to the agent. The agent should hold no long-lived secrets. Each MCP server assumes a narrowly scoped IAM role for its own backend. If the agent is compromised through prompt injection, the damage is bounded by that role.
4. Make observability non-negotiable. Emit traces for every reasoning step and tool invocation (AgentCore Observability and OpenTelemetry make this straightforward). When an agent misbehaves in production, and one eventually will, you want a full flight recorder, not a shrug.
5. Design for human checkpoints on irreversible actions. Reading data can be autonomous. Writing to a live system, raising a purchase order, or actuating industrial equipment should require an approval step. MCP makes this easy to centralise: the gateway can hold high-risk tool calls for human confirmation.
Where this is heading
The direction of travel is clear. Protocols such as MCP are doing for agents what HTTP did for the web: turning isolated systems into an interoperable ecosystem. AWS backing MCP across Strands and AgentCore, alongside the industry momentum behind open agent standards, means the integration layer is no longer the differentiator. Your differentiator is the quality of the tools you expose and the governance you wrap around them.
If you are starting today, my advice is simple. Wrap one internal system as an MCP server, point a Strands agent at it through AgentCore, and put a guardrail gateway in the middle. That single vertical slice will teach you more than any amount of reading, and it scales into a real platform rather than a pile of demos.
I would love to hear how fellow builders are approaching this. Are you running MCP servers in production yet, and what has been your biggest obstacle: security, observability, or organisational buy-in? Drop a comment below.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article