{"id":24545,"library":"run-mcp-servers-with-aws-lambda","title":"Run MCP Servers with AWS Lambda","description":"Run Model Context Protocol (MCP) servers using AWS Lambda. Current version: 0.5.17. Active development, frequent releases.","status":"active","version":"0.5.17","language":"python","source_language":"en","source_url":"https://github.com/awslabs/run-model-context-protocol-servers-with-aws-lambda","tags":["mcp","model-context-protocol","aws-lambda","serverless"],"install":[{"cmd":"pip install run-mcp-servers-with-aws-lambda","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Hyphens in package name become underscores in Python imports.","wrong":"from run-mcp-servers-with-aws-lambda import MPCServer","symbol":"MPCServer","correct":"from run_mcp_servers_with_aws_lambda import MPCServer"}],"quickstart":{"code":"import os\nfrom run_mcp_servers_with_aws_lambda import MPCServer\n\napp = MPCServer(\n    function_name=\"my-mcp-server\",\n    region=os.environ.get(\"AWS_REGION\", \"us-east-1\"),\n)\n\ndef handler(event, context):\n    return app.handle(event, context)","lang":"python","description":"Basic Lambda handler integration with MCP server."},"warnings":[{"fix":"Ensure runtime uses Python 3.11 or later.","message":"Python >=3.11 required. Older versions will fail to install.","severity":"breaking","affected_versions":">=0.5.0"},{"fix":"Use `from run_mcp_servers_with_aws_lambda import ...` (underscores).","message":"Package name uses hyphens, but import uses underscores. Common import error.","severity":"gotcha","affected_versions":"all"},{"fix":"Configure IAM roles and environment variables outside the library.","message":"Lambda execution environment must have appropriate AWS credentials and permissions (e.g., lambda:InvokeFunction). Not handled by library.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install: pip install run-mcp-servers-with-aws-lambda. Import: from run_mcp_servers_with_aws_lambda import MPCServer","cause":"Incorrect import alias; package installed but import uses hyphens instead of underscores.","error":"ModuleNotFoundError: No module named 'run_mcp_servers_with_aws_lambda'"},{"fix":"Upgrade Python to 3.11+ or use a compatible Lambda runtime.","cause":"Running on Python version older than 3.11.","error":"RuntimeError: Requires Python >=3.11"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}