Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Bedrock Mcp Agent

FreeNot checked

Serverless Bedrock LLM agent leveraging Lambda-hosted MCP servers for note management, utilizing S3-based vector storage and provisioned through Python CDK.

GitHubEmbed

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:

  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

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-agent

FAQ

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

Compare 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