aws-bedrock-mcp-lambda
If you are the rightful owner of aws-bedrock-mcp-lambda and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This project demonstrates how to create an MCP client and server hosted in an AWS Lambda accessed via API Gateway that interacts with AWS Bedrock as the model.
The AWS Lambda Handling MCP Client and Server using Bedrock project is designed to facilitate the creation of a Model Context Protocol (MCP) client and server. These are hosted on AWS Lambda and accessed via API Gateway, interacting with AWS Bedrock as the model. The project is structured to include a CDK stack deployment script, a Lambda handler entry point, and MCP client and server scripts. It allows for local testing and deployment to AWS, with the ability to test the Lambda function via the API Gateway or directly against the AWS Lambda function. The setup requires AWS CLI, Node.js, AWS CDK, and Python 3.11, with specific instructions for creating a virtual environment, installing dependencies, and deploying the MCP stack.
Features
- AWS Lambda hosting for MCP client and server
- Integration with AWS Bedrock model
- Local testing capability for Lambda functions
- Deployment via AWS CDK
- API Gateway access for Lambda functions
Tools
mcp_handler.py
Lambda handler entry point
mcp_client.py
MCP client interacting with MCP server and Bedrock
mcp_server.py
MCP server containing all exposed tools
test_mcp_handler.py
Local test script for handler