Bedrock Mcp Agent
БесплатноНе проверенServerless Bedrock LLM agent leveraging Lambda-hosted MCP servers for note management, utilizing S3-based vector storage and provisioned through Python CDK.
Описание
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
Установка Bedrock Mcp Agent
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/seziCZ/bedrock-mcp-agentFAQ
Bedrock Mcp Agent MCP бесплатный?
Да, Bedrock Mcp Agent MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Bedrock Mcp Agent?
Нет, Bedrock Mcp Agent работает без API-ключей и переменных окружения.
Bedrock Mcp Agent — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Bedrock Mcp Agent в Claude Desktop, Claude Code или Cursor?
Открой Bedrock Mcp Agent на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: 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
автор: xuzexin-hzCompare Bedrock Mcp Agent with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
