aws-lambda-mcp-server
Verified Safeby poad
Overview
A Hono wrapper library for building and deploying Model Context Protocol (MCP) servers on AWS Lambda, including an example implementation with AWS CDK for deployment.
Installation
pnpm --filter example devEnvironment Variables
- PORT
Security Notes
The project demonstrates strong security awareness. It explicitly prohibits hardcoding authentication details, recommends using environment variables or AWS Secrets Manager, enforces input validation with Zod, and suggests output escaping to prevent XSS. It also includes `pnpm audit --fix` in its update script for dependency vulnerability scanning and adheres to the principle of least privilege for AWS IAM roles. No `eval` or obvious malicious patterns were found in the provided source code. Logging is handled via `@aws-lambda-powertools/logger`, which is a recommended practice for AWS Lambda.
Similar Servers
run-model-context-protocol-servers-with-aws-lambda
This project provides a CDK pipeline to automate the deployment of Model Context Protocol (MCP) servers as AWS Lambda functions, offering client transports for Lambda invocation and SigV4 HTTP, and server adapters/handlers for various AWS Lambda event models.
boilerplate-mcp-server
Provides a production-ready foundation for developing custom Model Context Protocol (MCP) servers in TypeScript to connect AI assistants with external APIs and data sources, exemplified by an IP geolocation tool.
remote-mcp-functions-typescript
Provides a remote Model Context Protocol (MCP) server using Azure Functions to host tools for AI agents, specifically for managing code snippets and simple greetings.
mcp-typescript-starter
A feature-complete Model Context Protocol (MCP) server template in TypeScript demonstrating all major MCP features for AI assistant interaction.