AWS ECS MCP Server
Published · Updated
At a glance
- Category
- Cloud & DevOps
- GitHub repository
- awslabs/mcp/tree/main/src/ecs-mcp-server
- Watch out for
- The local server is labelled legacy and will no longer receive updates; new setups should use the hosted version.
The Amazon ECS MCP Server helps an agent with the whole lifecycle of a containerised application on Elastic Container Service: containerising it, deploying it, troubleshooting a deployment that is not becoming healthy, and inspecting or managing ECS resources. It lives in the awslabs/mcp monorepo as awslabs.ecs-mcp-server.
AWS now offers this as a managed, hosted server too, and the README labels that the recommended option, with the local version described as legacy. The hosted version updates itself, uses IAM for security and logs calls to CloudTrail. The local version is still documented, but the README says it will no longer receive updates.
The troubleshooting tool is the part that earns its keep. When a service is stuck, it can fetch service events, task failures, logs and network configuration, and return ECS-specific guidance on what is wrong, which is often a missing IAM permission, an image that will not pull, or a health check that never passes. Express Mode tools validate prerequisites and wait for a new service to become ready. Two environment variables keep it safe: ALLOW_WRITE, off by default, controls creating and deleting infrastructure, and ALLOW_SENSITIVE_DATA controls whether tools may return logs and detailed resource information.
How it connects
Your AI app
An assistant or agent that supports MCP
AWS ECS MCP Server
Runs as
- Python (uv / pip)
Gives the agent
- Troubleshooting
- Resource management
- Express Mode deployment
- AWS documentation
- Safety switches
AWS ECS
The data or system the tools act on
What it can do
- Troubleshooting
- ecs_troubleshooting_tool actions such as fetch_service_events and get_ecs_troubleshooting_guidance diagnose failed deployments, with logs and task failures when sensitive data is allowed.
- Resource management
- ecs_resource_management lists and describes clusters, services and tasks; create and delete operations need ALLOW_WRITE.
- Express Mode deployment
- validate_ecs_express_mode_prerequisites checks an account is ready, and wait_for_service_ready polls until a new service is healthy.
- AWS documentation
- Built-in tools search and read AWS documentation, so guidance reflects current ECS behaviour.
- Safety switches
- ALLOW_WRITE (default false) and ALLOW_SENSITIVE_DATA gate infrastructure changes and log access separately.
Setting it up
AWS recommends the hosted ECS MCP Server; its setup is linked from the README and uses IAM authentication. For the local server, add a stdio server that runs uvx --from awslabs-ecs-mcp-server ecs-mcp-server, with AWS_PROFILE and AWS_REGION in its environment (it falls back to your local AWS configuration) and FASTMCP_LOG_LEVEL=ERROR to keep logs quiet. Leave ALLOW_WRITE=false until you want the agent creating or deleting infrastructure, and decide whether ALLOW_SENSITIVE_DATA should be true, since it lets tools return logs and network details. The README includes a list of allowlisted actions for production use and IAM best practices.
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Finding out why a new ECS service never reaches a steady state
- Listing services and tasks across clusters during an incident
- Getting guidance on containerising an existing application for ECS
- Deploying a simple service with Express Mode in a development account
Limitations and things to watch
- The local server is labelled legacy and will no longer receive updates; new setups should use the hosted version.
- With ALLOW_WRITE enabled, the agent can create and delete infrastructure in your account.
- Logs and network details reach the model when ALLOW_SENSITIVE_DATA is on.
- It only covers ECS; Fargate networking, IAM and load balancer issues may still need other tools.
Sources
Written from the project's own documentation, checked November 2026.
- github.com /awslabs/mcp/tree/main/src/ecs-mcp-server
- docs.aws.amazon.com /AmazonECS/latest/developerguide/ecs-mcp-introduction.html
- pypi.org /project/awslabs.ecs-mcp-server
- awslabs.github.io /mcp/servers/ecs-mcp-server
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.