Back to Home
aws-samples icon

sample-serverless-mcp-servers

Verified Safe

by aws-samples

Overview

Implements a sample stateful MCP (Model Context Protocol) server with echo functionality, deployable on AWS ECS Fargate using Python.

Installation

Run Command
python src/server.py --transport fastapi --host 0.0.0.0 --port 8000

Environment 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

Stats

Interest Score66
Security Score6
Cost ClassHigh
Avg Tokens500
Stars228
Forks30
Last Update2026-01-08

Tags

MCPPythonECS FargateStatefulServerlessEcho