About MCP HTTP Wrapper
MCP HTTP Wrapper runs MCP servers behind an AWS Lambda HTTP interface. It is for deploying configured MCP servers and exposing their tools through HTTP endpoints.
Key features
- 01AWS Lambda HTTP wrapper
- 02List tools by server name
- 03Call tools through POST endpoints
- 04Local development with Serverless Offline or Express
- 05Development and production deployment scripts
Use cases
- 01Expose MCP server tools through HTTP routes
- 02Run the service locally for development
- 03Deploy the wrapper to AWS
MCP support
It packages and runs MCP server implementations, handling communication with MCP clients. HTTP clients can list available tools and invoke them through server and tool routes.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP HTTP Wrapper
AWS Lambda HTTP wrapper for Model Context Protocol servers.
Prerequisites
- Node.js (v18 or later)
- AWS CLI configured with appropriate credentials
- Serverless Framework
Installation
npm install
Setting up MCP Servers
Before testing or deployment, you need to install dependencies and build each MCP server:
# Navigate to each MCP server directory and install dependencies
cd mcp_servers/[server-name]
npm install
npm run build
# Repeat for each server directory under mcp_servers/
Local Development
To run the service locally with Serverless Offline:
npm run dev
To run the service with Express for easier debugging:
npm run dev:express
Deployment
Configure AWS Credentials
Before deploying, make sure you have AWS credentials configured:
aws configure
Prepare MCP Servers
Ensure you've built all MCP servers before deployment (see Setting up MCP Servers section).
Deploy to Development
npm run deploy
This will:
- Clean the dist directory
- Build the TypeScript code
- Package the necessary files including MCP servers
- Deploy to AWS using Serverless Framework
Deploy to Production
npm run deploy:prod
API Usage
List Available Tools
GET /{serverName}
Call a Tool
POST /{serverName}/{toolName}
{
"param1": "value1",
"param2": "value2"
}
Required headers must be included based on the specific MCP server configuration.
Project Structure
src/index.ts- Main Lambda handler functionsrc/mcp/mcp-server-config.ts- Configuration for available MCP serverssrc/mcp/mcp-client-handler.ts- Handler for MCP client communicationsmcp_servers/- Directory containing MCP server implementationsserverless.yml- Serverless Framework configuration
Scripts
npm run build- Compiles TypeScriptnpm run watch- Watches for TypeScript changesnpm run clean- Removes the dist directorynpm run dev- Runs the service locallynpm run deploy- Deploys to developmentnpm run deploy:prod- Deploys to production
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.