Demo of Anthropic's open source MCP used with Amazon Bedrock Converse API
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.
git clone <repository-url>
cd <project-directory>
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
~/.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
app.py
: Main application entry point and interactive loopconverse_agent.py
: Core agent implementation with Bedrock integrationconverse_tools.py
: Tool management and execution systemmcp_client.py
: MCP (Model Control Protocol) client implementationpython app.py
The main agent class that:
Reference:
startLine: 3
endLine: 109
Manages tool registration and execution:
Reference:
startLine: 5
endLine: 76
Handles communication with the MCP server:
Reference:
startLine: 6
endLine: 48
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.
No configuration available
Related projects feature coming soon
Will recommend related projects based on sub-categories