Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

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.

GitHubEmbed

Описание

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:

  1. API Gateway → Lambda (direct invocation of the Dockerized agent)
  2. 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 routeX-API-Key
    • AgentCore route → IAM-based authorization

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 Vectors

  • AgentCore 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

from github.com/seziCZ/bedrock-mcp-agent

Установка Bedrock Mcp Agent

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/seziCZ/bedrock-mcp-agent

FAQ

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

Compare Bedrock Mcp Agent with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai