sample-serverless-mcp-server
aws-samples/sample-serverless-mcp-server · 19 stars · Python · MIT-0
MCP server
Install
The repo has no one-line install. Follow its README.
Files
sample-serverless-mcp-server
A Github MCP Server implementation based on Amazon Lambda and Streamable HTTP protocol.
Project Description
This project demonstrates how to transform the official TypeScript MCP Server to support Streamable HTTP protocol and deploy it via Amazon Lambda. The implementation leverages new features introduced in MCP v2025.03.26, including:
-
Stream transmission based on HTTP Chunked Transfer Encoding
-
Dynamic context priority control
-
Seamless integration with existing HTTP infrastructure
Key Features
-
Streamable HTTP MCP protocol support
-
Elastic deployment based on Amazon Lambda
-
Optimized cost-performance balance
MCP Server on Amazon Lambda Architecture
Quick Start
Prerequisites
- Node.js 20+
- AWS CLI configured
- OSS-Serverless CLI
Serverless Streamable HTTP MCP Server
- Github MCP Server
How to deploy Github MCP Server on Amazon Lambda :
This project needs to set up a GITHUB_PERSONAL_ACCESS_TOKEN, which has been stored in Amazon Lambda environment variables.
Never submit your serverless.yml to a GitHub public repository.
# Clone repository git clone https://gitlab.aws.dev/wsuam/sample-serverless-mcp-server.git cd sample-serverless-mcp-server/src/github/ # Install dependencies npm install npm install -g osls #Set your github personal access token in serverless.yml cp serverless.example.yml serverless.yml #edit serverless.yml , GITHUB_PERSONAL_ACCESS_TOKEN: <Your GitHub Personal Access Token> # Test local npm sls offline # Deploy to AWS Lambda npm sls deploy
Architecture Overview
The project utilizes the following architecture:
-
API Gateway: Handles HTTP requests
-
Lambda: Executes MCP Server logic
-
Streamable HTTP: Implements streaming responses
-
DynamoDB and S3 store request logs (this part is not ready yet).
Development Guide
- Configure AWS credentials
- Run
npm sls offline - Follow the prompts to complete deployment configuration
Contributing
Pull requests are welcome. Before submitting, please ensure:
- Code follows project standards
- All tests pass
- Documentation is updated
License
This library is licensed under the MIT-0 License. See the LICENSE file.
Project Status
Project is under active development. Issues and suggestions are welcome.
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 19
- License
- MIT-0
- Language
- Python
- Last push
- 2025-09-15
- Forks
- 1
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k
