Bedrock Mcp Agent
FreeNot checkedServerless Bedrock LLM agent leveraging Lambda-hosted MCP servers for note management, utilizing S3-based vector storage and provisioned through Python CDK.
About
Serverless Bedrock LLM agent leveraging Lambda-hosted MCP servers for note management, utilizing S3-based vector storage and provisioned through Python CDK.
README
This project demonstrates a fully serverless architecture for a Bedrock-powered LLM agent, where an MCP server manages note creation, retrieval, and semantic search using AWS S3 Vectors.
The agent uses AWS Bedrock for language reasoning and LangChain for agent orchestration, tool routing, and multi-step decision-making. The same agent container can be executed in two different hosting environments:
- API Gateway → Lambda (direct invocation of the Dockerized agent)
- Bedrock AgentCore Runtime (Bedrock runs the agent container itself)
Both the agent and the MCP server are provisioned using the Python AWS CDK.
Key Concept
Serverless Agent (API Gateway Path):
A Dockerized LangChain agent deployed to AWS Lambda and invoked through API Gateway.
This path uses an API key (X-API-Key) for authentication.AgentCore Runtime (Direct Bedrock Execution):
Bedrock AgentCore hosts and runs the same agent container directly, without a Lambda wrapper.
AgentCore handles planning, tool routing, validation, retries, and multi-step reasoning.
Authentication uses IAM, not API keys.LangChain Orchestration:
LangChain manages agent reasoning, decides when to call MCP tools, structures tool invocation arguments, and supports multi-step flows across both hosting environments.Lambda-Hosted MCP:
MCP server running fully on AWS Lambda, responsible for storing and retrieving user notes.Persistent Note Store:
Notes are represented as vector embeddings and stored in an S3 Vector Index.Authentication:
- API Gateway route →
X-API-Key - AgentCore route → IAM-based authorization
- API Gateway route →
Architecture
┌──────────────┐
│ User/API │
└──────┬───────┘
│
┌────────────┴────────────┐
│ │
▼ ▼
┌──────────────────┐ ┌──────────────────────┐
│ API Gateway │ │ AgentCore Runtime │
│ (X-API-Key) │ │ (IAM Auth) │
└──────┬───────────┘ └──────────┬───────────┘
│ │
▼ ▼
┌──────────────────┐ ┌──────────────────┐
│ Agent Container │ │ Agent Container │
│ (via Lambda) │ │ (via AgentCore) │
└──────┬───────────┘ └──────┬───────────┘
│ invokes tools │ invokes tools
└──────────────┬─────────────┘
▼
┌──────────────────┐
│ Server Lambda │
│ (Notes MCP) │
└──────┬───────────┘
│ stores/queries
▼
┌───────────────┐
│ S3 Vectors │
└───────────────┘
Flow:
API Gateway Path
User → API Gateway → Lambda → LangChain Agent (Docker) → MCP Server → S3 VectorsAgentCore Path
User → AgentCore (direct container execution) → MCP Server → S3 Vectors
Useful Commands
aws s3vectors list-vectors --vector-bucket-name <bucket> --index-name memories --return-metadata
aws s3vectors delete-vectors --vector-bucket-name <bucket> --index-name my-index --keys <key>
aws bedrock-agentcore invoke-agent-runtime --agent-runtime-arn <runtime-arn> --payload <base64-json> <output-file>
aws apigateway get-api-keys --include-values
References
- AWS Lambda – Serverless compute service
- AWS Bedrock – Foundation models for language understanding
- AWS S3 Vectors – Object storage for vector embeddings
- AWS CDK – Infrastructure as code
- API Gateway – Secure API endpoints
- LangChain – Agent orchestration, tool routing, and reasoning framework
- langchain-aws – Bedrock model bindings and AWS-native LangChain integrations
- langchain-mcp-adapters – MCP adapter layer enabling LangChain agents to consume MCP tools
- Serverless MCP – Inspiration for Lambda-based MCP server implementation
- Serverless MCP Options – Options and patterns for running MCP servers in serverless environments
Installing Bedrock Mcp Agent
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/seziCZ/bedrock-mcp-agentFAQ
Is Bedrock Mcp Agent MCP free?
Yes, Bedrock Mcp Agent MCP is free — one-click install via Unyly at no cost.
Does Bedrock Mcp Agent need an API key?
No, Bedrock Mcp Agent runs without API keys or environment variables.
Is Bedrock Mcp Agent hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Bedrock Mcp Agent in Claude Desktop, Claude Code or Cursor?
Open Bedrock Mcp Agent on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Bedrock Mcp Agent with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
