sample-serverless-mcp-servers
Verified Safeby aws-samples
Overview
Implements a sample stateful MCP (Model Context Protocol) server with echo functionality, deployable on AWS ECS Fargate using Python.
Installation
python src/server.py --transport fastapi --host 0.0.0.0 --port 8000Environment Variables
- AWS_REGION
- MCP_SERVER_ENDPOINT
- JWT_SIGNATURE_SECRET
- COGNITO_JWKS_URL
- SESSION_STORE_BUCKET_NAME
- SERVER_ENDPOINT_URL
- WEBHOOK_URL_PARAM_KEY
- AWS_LAMBDA_EXEC_WRAPPER
- AWS_LWA_PORT
- C_VERSION
Security Notes
Multiple examples within the repository demonstrate hardcoded secrets for JWT signing (`'jwt-signature-secret'`) and authorization tokens (`'good_access_token'`). While noted as sample values in the READMEs, deploying these patterns to a production environment without proper secret management (e.g., AWS Secrets Manager, environment variables with controlled access) poses a severe security risk. External API calls are made to `ip-api.com` and `frankfurter.app` by some agents.
Similar Servers
mcp-python-starter
A feature-complete Model Context Protocol (MCP) server template in Python for developing AI applications and agents.
sample-ecs-mcp-server
Deployment of an Agentic AI architecture on AWS Fargate using Amazon ECS, connecting to multiple Model Context Protocol (MCP) servers for tool execution.
mcp-demo-server
Provides demo servers in Go and Python to demonstrate and test the Model Context Protocol (MCP) using various tools like echotest, timeserver, and fetch.
mcp_hello_server
Minimal MCP-style server implemented with FastAPI for demonstrating and extending Model Context Protocol interactions.