Back to Home
awslabs icon

run-model-context-protocol-servers-with-aws-lambda

Verified Safe

by 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

Run Command
npm run deploy

Environment 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

Stats

Interest Score79
Security Score8
Cost ClassMedium
Avg Tokens750
Stars337
Forks40
Last Update2025-12-05

Tags

AWS LambdaMCPAI AgentsServerlessTypeScriptPythonJSON-RPCSDK