
Amazon-Bedrock-MCP
Démo de l'open source d'Anthropic MCP utilisé avec API Amazon Bedrock Converse
5
Github Watches
22
Github Forks
81
Github Stars
Amazon Bedrock Converse API MCP Demo
This is a demo of Anthropic's open source MCP used with Amazon Bedrock Converse API. This combination allows for the MCP to be used with any of the many models supported by the Converse API.
Prerequisites
- Python 3.8+
- AWS account with Bedrock access
- AWS credentials configured locally
- SQLite database (Follow the instructions in the MCP Quick Start Guide to set this up.)
Installation
- Clone the repository:
git clone <repository-url>
cd <project-directory>
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install required packages:
pip install -r requirements.txt
Configuration
- Ensure AWS credentials are properly configured in
~/.aws/credentials
or via environment variables:
export AWS_ACCESS_KEY_ID=your_access_key
export AWS_SECRET_ACCESS_KEY=your_secret_key
export AWS_DEFAULT_REGION=us-west-2
- The default configuration uses:
- Model: anthropic.claude-3-5-sonnet-20241022-v2:0
- Region: us-west-2
- SQLite database path: ~/test.db
Project Structure
-
app.py
: Main application entry point and interactive loop -
converse_agent.py
: Core agent implementation with Bedrock integration -
converse_tools.py
: Tool management and execution system -
mcp_client.py
: MCP (Model Control Protocol) client implementation
Usage
- Start the application:
python app.py
- Enter prompts when prompted. The agent will:
- Process your input
- Execute any necessary tools
- Provide responses
- Maintain conversation context
- Exit the application by typing 'quit', 'exit', 'q', or using Ctrl+C
Key Components
ConverseAgent
The main agent class that:
- Manages conversation flow
- Integrates with Bedrock
- Handles tool execution
- Processes responses
Reference:
startLine: 3
endLine: 109
ConverseToolManager
Manages tool registration and execution:
- Tool registration with schemas
- Name sanitization
- Tool execution handling
Reference:
startLine: 5
endLine: 76
MCPClient
Handles communication with the MCP server:
- Tool discovery
- Tool execution
- Server connection management
Reference:
startLine: 6
endLine: 48
Security
See CONTRIBUTING for more information.
License
This library is licensed under the MIT-0 License. See the LICENSE file.
相关推荐
I find academic articles and books for research and literature reviews.
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Advanced software engineer GPT that excels through nailing the basics.
Take an adjectivised noun, and create images making it progressively more adjective!
Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.
L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.
Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX
Plateforme d'automatisation de workflow à code équitable avec des capacités d'IA natives. Combinez le bâtiment visuel avec du code personnalisé, de l'auto-hôte ou du cloud, 400+ intégrations.
🧑🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.
Une liste organisée des serveurs de protocole de contexte de modèle (MCP)
Un puissant plugin Neovim pour gérer les serveurs MCP (Protocole de contexte modèle)
Pont entre les serveurs Olllama et MCP, permettant aux LLM locaux d'utiliser des outils de protocole de contexte de modèle
Reviews

user_DgLW4Kkh
I have been using amazon-bedrock-mcp for a while, and it has truly transformed my workflow. The integration and functionality provided by mikegc-aws are impressive. The documentation is thorough, and the support is outstanding. Highly recommend checking it out at https://github.com/mikegc-aws/amazon-bedrock-mcp.