
protein bars mcp server
A serverless protein bar ordering system MCP server deployed on AWS.
Repository Info
About This Server
A serverless protein bar ordering system MCP server deployed on AWS.
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Serverless MCP Server: Protein Bar Ordering System
This project implements a serverless Model Context Protocol (MCP) server on AWS Lambda that enables AI assistants to interact with a protein bar ordering system.
Features
- MCP Server with tools for:
- Listing available protein bars
- Creating new orders
- Admin functionality for managing orders
- Serverless Architecture using:
- AWS Lambda with Express and Lambda Web Adapter
- API Gateway for HTTP endpoint
- DynamoDB for data storage
- Stateless Design that scales efficiently
Prerequisites
- Node.js 22 or higher
- AWS CLI configured with appropriate permissions
- AWS CDK installed (
npm install -g aws-cdk)
Setup and Deployment
1. Install Dependencies
npm install
2. Build the Project
npm run build
3. Deploy to AWS
npm run cdk bootstrap # Only needed first time
npm run deploy
The CDK deployment will output:
- The API Gateway URL
- The MCP Server URL (used for client configuration)
4. Seed Initial Data
After deployment, seed the DynamoDB table with initial protein bar data:
# Set your AWS_PROFILE if needed
export PRODUCTS_TABLE=protein_products # Should match the table name in CDK stack
npm run seed-data
Testing Locally
To run the MCP server locally for testing:
npm run dev
This will start the server on port 3000, and you can send MCP requests to http://localhost:3000/mcp.
Connecting Clients
VS Code (Copilot Agent Mode)
- Enable GitHub Copilot Chat and Agent Mode in VS Code
- Create a
.vscode/mcp.jsonfile with:
{
"servers": {
"ProteinBarMCP": {
"type": "http",
"url": "https://your-api-id.execute-api.your-region.amazonaws.com/prod/mcp"
}
}
}
- Reload VS Code and start a conversation with GitHub Copilot
- You can now use the protein bar tools in your AI interactions
Claude Desktop
As of 2025, Claude Desktop has limited support for remote MCP servers, but you can:
- Check for the latest Claude updates that might support direct remote connections
- Alternatively, use a local proxy that forwards requests to your AWS MCP server
Security Considerations
For a production deployment, you should add:
- API Key authentication for both public and admin endpoints
- IAM roles with least privilege for the Lambda function
- VPC configuration if needed
- Proper error handling and logging
License
MIT
protein-bars-mcp-server
Quick Start
Clone the repository
git clone https://github.com/manueltarouca/protein-bars-mcp-serverInstall dependencies
cd protein-bars-mcp-server
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.