← Explore all mcp servers

CLOUD OPERATIONS / Amazon Web Services

AWS CloudTrail MCP Server

Queries CloudTrail events for an account you administer.

“The CloudTrail MCP Server provides specialized tools to address common security and operational scenarios including event lookup, user activity analysis, API call tracking, and advanced CloudTrail Lake analytics.”

01 / THE REASONING

Why this made the selection.

  • The README contains the package name awslabs.cloudtrail-mcp-server and a uvx command.
  • The recorded revision is the monorepo commit, not a per-server release tag.
  • The README is for local CloudTrail event lookup and CloudTrail Lake SQL, aimed at investigations and audit questions.
  • Event History is described as on by default and limited to 90 days of management events, while Lake queries need Lake to be enabled.

02 / THE REVIEW RECORD

What we actually inspected.

Source review has boundaries.
A clear record is more useful than a “safe” badge.

Material inspected

  • src/cloudtrail-mcp-server/README.md
  • src/cloudtrail-mcp-server/pyproject.toml at 49de7cc11ae064b9224f07ae050c612c3f92dd55
  • src/cloudtrail-mcp-server/awslabs/cloudtrail_mcp_server/server.py at 49de7cc11ae064b9224f07ae050c612c3f92dd55
  • LICENSE

Our findings

  • Event lookup covers recent management-event history; CloudTrail Lake is a separate source for SQL analysis.
  • The reference separates starting Lake queries, polling status and retrieving paginated results.
  • The Docker example embeds combined flags and a tilde path in argument strings; the retained uvx route avoids copying those shell assumptions into direct process arguments.
  • MCP lane cross-review matched the retained primary setup/permission evidence and the added source-specific findings before this wave was frozen.
  • The server looks up CloudTrail events and can run Trino-compatible SQL against CloudTrail Lake for investigations, auditing, and operational troubleshooting.
  • It must run locally beside the LLM client. The README names cloudtrail:LookupEvents and cloudtrail:StartQuery among the required actions.
  • Event History covers the last 90 days of management events and is on by default. Advanced SQL does not run unless CloudTrail Lake is enabled.

Not established by this review

  • No server installation, authentication, live API operation or isolation test was performed.
  • The server was not started and its tools were not called.
  • A pin does not verify transitive dependencies.
  • No tools/list or tool call was made.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

Connect a server deliberately.

Upstream setup instructions ↗

DOCUMENTED COMMAND

uvx awslabs.cloudtrail-mcp-server@latest

Copying does not execute this command. It may retrieve a newer version than the reviewed source.

  1. Register the uvx command.
  2. Use credentials for the account you mean.
  3. The one-line command above is the uvx launch in the README client block at this commit, not a separate installer. It was not run.

Before you start

  • uv
  • AWS credentials for the service

Documented configuration example

Use the client and authentication context described in the setup guidance. Configuration formats vary between hosts.

{
  "mcpServers": {
    "awslabs.cloudtrail-mcp-server": {
      "autoApprove": [],
      "disabled": false,
      "command": "uvx",
      "args": [
        "awslabs.cloudtrail-mcp-server@latest"
      ],
      "env": {
        "AWS_PROFILE": "[The AWS Profile Name to use for AWS access]",
        "FASTMCP_LOG_LEVEL": "ERROR"
      },
      "transportType": "stdio"
    }
  }
}

04 / FOLLOW THE EVIDENCE

The source trail.

Our notes are separate from the original resource.
Check upstream before adopting a new version.

  1. Server documentation ↗Checked

    https://github.com/awslabs/mcp/blob/49de7cc11ae064b9224f07ae050c612c3f92dd55/src/cloudtrail-mcp-server/README.md

    Supports: Install command and stated scope

  2. Repository licence ↗Checked

    https://github.com/awslabs/mcp/blob/49de7cc11ae064b9224f07ae050c612c3f92dd55/LICENSE

    Supports: Redistribution terms

  3. https://github.com/awslabs/mcp/blob/49de7cc11ae064b9224f07ae050c612c3f92dd55/src/cloudtrail-mcp-server/pyproject.toml

    Supports: review, install, access, limitations

  4. https://github.com/awslabs/mcp/blob/49de7cc11ae064b9224f07ae050c612c3f92dd55/src/cloudtrail-mcp-server/awslabs/cloudtrail_mcp_server/server.py

    Supports: review, install, access, limitations

  5. Server documentation ↗Checked

    https://github.com/awslabs/mcp/blob/49de7cc11ae064b9224f07ae050c612c3f92dd55/src/cloudtrail-mcp-server/README.md

    Supports: Install command and stated scope

Evidence & Ask