run-model-context-protocol-servers-with-aws-lambda
Verified Safeby awslabs
Overview
This project provides client and server-side utilities for deploying Model Context Protocol (MCP) servers as AWS Lambda functions, enabling AI agents to interact with these servers.
Installation
npm run deployEnvironment Variables
- LOG_LEVEL
- AWS_REGION
Security Notes
The project extensively uses AWS SDKs for secure communication (e.g., SigV4 for HTTP requests, Lambda Invoke API). JSON payloads are parsed and validated, mitigating common injection risks. The `stdioServerAdapter` in both TypeScript and Python executes child processes based on provided command-line arguments. While this is a powerful feature for flexibility, it relies on `serverParams` being securely configured at deployment time (e.g., via CDK) and not exposed to untrusted runtime input, which is a standard security practice for serverless functions.
Similar Servers
fastmcp
FastMCP is a Python framework for building and interacting with Model Context Protocol (MCP) servers. It provides client and server capabilities, enabling the creation of AI agents and services through definable tools, resources, and prompts. It supports various transports, authentication methods, logging, and background task execution, with strong integration for OpenAPI specifications.
mcp
Enables AI assistants to interact with AWS DocumentDB databases by providing tools for connection management, database/collection operations, document CRUD, aggregation, schema analysis, and query planning.
tmcp
Build Model Context Protocol (MCP) servers for AI agents, providing schema-agnostic tools, resources, and prompts, with optional OAuth 2.1 authentication and distributed session management.
1xn-vmcp
An open-source platform for composing, customizing, and extending multiple Model Context Protocol (MCP) servers into a single logical, virtual MCP server, enabling fine-grained context engineering for AI workflows and agents.