Back to Home
aws-samples icon

sample-ecs-mcp-server

Verified Safe

by aws-samples

Overview

Deployment of an Agentic AI architecture on AWS Fargate using Amazon ECS, connecting to multiple Model Context Protocol (MCP) servers for tool execution.

Installation

Run Command
npm run cdk deploy

Environment Variables

  • MCP_SERVICE_ONE_NAME
  • MCP_SERVICE_ONE_PORT
  • MCP_SERVICE_TWO_NAME
  • MCP_SERVICE_TWO_PORT

Security Notes

The architecture uses AWS Secrets Manager for the API key, and service-to-service communication employs Service Connect for private networking. IAM policies for Bedrock model invocation and S3 bucket listing, while using a wildcard resource (`*`), are explicitly justified for the sample's functionality. The Application Load Balancer is internet-facing, allowing HTTP access from any IPv4 address, which is noted but expected for a public API endpoint.

Similar Servers

Stats

Interest Score32
Security Score8
Cost ClassMedium
Avg Tokens750
Stars2
Forks0
Last Update2025-11-26

Tags

AWS FargateECSAgentic AIMCP ServerAWS CDKPythonFastAPIBedrock