Cover image
Try Now
2025-04-14

A simple and clear example for implementation and understanding Anthropic MCP (on AWS Bedrock).

3 years

Works with Finder

1

Github Watches

8

Github Forks

35

Github Stars

MCP on AWS Bedrock

A simple and clear example for implementation and understanding Anthropic MCP (on AWS Bedrock).

For multiple MCP servers management, this tiny project Q-2001 could be referred~

Overview

This project demonstrates how to implement and use Anthropic's Model Context Protocol (MCP) with AWS Bedrock. It provides a client implementation that can interact with MCP-enabled tools through AWS Bedrock's runtime service.

Prerequisites

  • Python 3.10 or higher
  • AWS account with Bedrock access
  • Configured AWS credentials
  • UV package manager

Project Structure

  • client_stdio.py: Main client implementation for interacting with Bedrock and MCP tools using stdio mode
  • client_sse.py: Main client implementation for interacting with Bedrock and MCP tools using sse mode
  • mcp_simple_tool/: Directory containing the MCP tool implementation
    • server.py: MCP tool server implementation
    • __main__.py: Entry point for the tool
  • pyproject.toml: Project dependencies and configuration

Usage

Run the stdio client with:

uv pip install boto3
uv run client_stdio.py

The client will:

  1. Initialize a connection to AWS Bedrock
  2. Start the MCP tool server
  3. List available tools and convert them to the format required by Bedrock
  4. Handle communication between Bedrock and the MCP tools

Run the sse client with:

# server
uv pip install boto3 uvicorn
uv run mcp-simple-tool --transport sse --port 8000

# client
uv run client_sse.py

Features

  • Seamless integration with AWS Bedrock runtime using Converse API
  • Tool format conversion for Bedrock compatibility
  • Asynchronous communication handling
  • Structured logging for debugging

Contributing

Feel free to submit issues and pull requests to improve the implementation.

License

MIT License

References

相关推荐

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • 林乔安妮
  • A fashion stylist GPT offering outfit suggestions for various scenarios.

  • 1Panel-dev
  • 💬 MaxKB is a ready-to-use AI chatbot that integrates Retrieval-Augmented Generation (RAG) pipelines, supports robust workflows, and provides advanced MCP tool-use capabilities.

  • Mintplex-Labs
  • The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.

  • ShrimpingIt
  • Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx

  • GLips
  • MCP server to provide Figma layout information to AI coding agents like Cursor

  • open-webui
  • User-friendly AI Interface (Supports Ollama, OpenAI API, ...)

  • Dhravya
  • Collection of apple-native tools for the model context protocol.

  • activepieces
  • AI Agents & MCPs & AI Workflow Automation • (280+ MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

    Reviews

    2 (1)
    Avatar
    user_nDrJrDT8
    2025-04-17

    I've been a loyal user of MCP-on-AWS-Bedrock, and it has truly transformed our cloud computing capabilities. The seamless integration with AWS and the robust features developed by davidshtian offer unmatched efficiency and performance. Highly recommend checking it out at https://github.com/davidshtian/MCP-on-AWS-Bedrock for anyone looking to enhance their cloud infrastructure.