Resources / MCP Server Risk Directory / AWS API MCP Server
Is the AWS API MCP Server safe? Risks, permissions and safe setup
Cloud engineers and SREs using AI assistants to query and operate AWS accounts through the AWS CLI. Here is what an AI agent can do through it, its published vulnerabilities and how to set it up safely.
Baseline risk
- Capabilities: 30 of 40
- Read-plus-exfiltrate: +20
- Hidden instructions (publicly verified): none known
- Third-party publisher: no (official)
Before your own factors: version pinning, number of users and policy coverage. How we score
- Maker
- Amazon Web Services (AWS Labs)
- Publisher
- Official (published by the maker)
- Runs
- Local (runs on the device)
- Transport
- stdio, streamable-http
- Authentication
- Local AWS credentials (AWS_API_MCP_PROFILE_NAME, boto3 default chain, or access key env vars); in streamable-http mode OAuth is on by default (AUTH_ISSUER, AUTH_JWKS_URI, AUTH_AUDIENCE or AUTH_CLIENT_ID), AUTH_TYPE=no-auth disables it
- Tools
- 3
- Built-in limits
- READ_OPERATIONS_ONLY=true (only non-Write operations); REQUIRE_MUTATION_CONSENT=true (elicitation before mutations); custom policy ~/.aws/aws-api-mcp/mcp-security-policy.json with denyList and elicitList; AWS_API_MCP_ALLOW_UNRESTRICTED_LOCAL_FILE_ACCESS=workdir|unrestricted|no-access
- License
- Apache-2.0
- Source
- github.com/awslabs/mcp/tree/main/src/aws-api-mcp-server
- Last verified
- 2026-11-23
What an agent can do through it
| Tool | Type | What it does |
|---|---|---|
| call_aws | Infrastructure | Runs AWS CLI commands with validation and error handling |
| suggest_aws_commands | Read | Suggests up to 5 likely AWS CLI commands for a natural-language query |
| get_execution_plan | Execute | Experimental step-by-step agent script guidance (EXPERIMENTAL_AGENT_SCRIPTS=true) |
Read-plus-exfiltrate: this server can both read sensitive data and send data out, so a single prompt injection in content the agent reads could move private data to an outside party without any other server involved.
Known vulnerabilities
| ID | Issue | Published | Fixed in |
|---|---|---|---|
| CVE-2026-125271 / GHSA-4wq9-grf3-qg2p High (CVSS 4.0 8.5) | AWS API MCP Server Security Policy Bypass via Incorrect Operation Name Normalization Affected: >= 0.2.13, < 1.5.1. | 2026-11-10 | 1.5.1 |
| CVE-2026-115413 / GHSA-4prq-p2x5-w9fh High (CVSS 4.0 7.3) | AWS API MCP Server OAuth Token Audience Validation Bypass Affected: >= 1.3.0, < 1.6.0. | 2026-10-27 | 1.6.0 |
| CVE-2026-16584 / GHSA-29w2-fq35-v728 High (CVSS 4.0 7.3) | AWS API MCP Server Security Policy Bypass via Startup Initialization Failure Affected: >= 0.2.13, < 1.3.47. | 2026-07-23 | 1.3.47 |
| CVE-2026-4270 / GHSA-2cpp-j2fc-qhp7 Moderate (CVSS 4.0 6.8) | AWS API MCP File Access Restriction Bypass Affected: >= 0.2.14, < 1.3.9. | 2026-03-16 | 1.3.9 |
Main risks
Any AWS API call the credentials allow
ASI03 Identity and Privilege Abuse
call_aws can run nearly any AWS CLI command, and the README says IAM permissions remain the primary security control. An admin profile turns one injected instruction into account-wide changes such as new IAM users or deleted databases.
Prompt injection from untrusted AWS data
LLM01:2025 Prompt Injection
The README warns not to connect the server to data sources with untrusted data. Object contents, logs or resource tags read with call_aws can instruct the agent to copy data to an outside S3 bucket or open a security group.
Policy guardrails have been bypassed
ASI02 Tool Misuse and Exploitation
Two 2026 advisories showed denyList and elicitList entries not enforced (operation name normalization, startup load failure). Custom policy files are a convenience layer, not a substitute for IAM.
Local file read and overwrite
LLM02:2025 Sensitive Information Disclosure
The server runs as the starting user with no sandbox, and commands like aws s3 cp and aws s3 sync can read or overwrite local files without confirmation. CVE-2026-4270 showed the workdir restriction could be bypassed to expose arbitrary local files.
How to set it up safely
- Upgrade to 1.6.0 or later (fixes all four listed advisories)
- Use a dedicated AWS profile with least-privilege, ideally read-only IAM permissions; never an admin profile
- Set READ_OPERATIONS_ONLY=true for investigation and reporting use
- Set REQUIRE_MUTATION_CONSENT=true with a client that supports elicitation when writes are allowed
- Set AWS_API_MCP_ALLOW_UNRESTRICTED_LOCAL_FILE_ACCESS=no-access unless file arguments are needed, and point AWS_API_MCP_WORKING_DIR at an empty directory
- Run in stdio mode as the README intends; if HTTP is required keep OAuth on, bind to 127.0.0.1 and never use AUTH_TYPE=no-auth
- Pin a reviewed version instead of uvx awslabs.aws-api-mcp-server@latest or the :latest container
- Plan migration to the managed AWS MCP Server, which AWS names as the successor
How we score
Baseline scores use the method from our guide to scoring every MCP server on employee laptops. Score the servers in your own environment with the free MCP Server Risk Checklist.
1. What the server can do (capped at 40)
- Sends messages externally: 15
- Fetches arbitrary URLs: 15
- Writes to code repositories: 15
- Reads and writes databases: 15
- Writes or deletes local files: 10
- Automates a browser: 10
- Reads and writes SaaS data: 10
- Reads local files: 5
- Runs code or commands: 15 (added for this directory)
- Changes cloud infrastructure: 15 (added for this directory)
- Moves money or changes payments: 15 (added for this directory)
2. What we found
- Read-plus-exfiltrate: reads sensitive data and can also send data out: 20
- Hidden instructions in a tool description (publicly verified): 30, and always Critical
- Third-party: not published by the maker of the system it connects to: 10
3. Band
0–24 Low · 25–49 Medium · 50–74 High · 75–100 Critical.
This is a baseline. The full method also adds points for unpinned package versions, how many employees use the server and whether a policy covers it; those depend on your setup, so check them in your own environment.
How AccuroAI helps
The AccuroAI Endpoint Agent finds the MCP servers configured in AI clients on managed devices and lists the tools each local server exposes. Each server gets a risk level with its capabilities, and you can block a server once in the console to enforce the block on every device: Claude Code and Cursor refuse calls to it, and for other clients the agent stops the server process. Tool calls from coding agents can be graded by risk, then allowed, confirmed with the employee or blocked.
MCP security · MCP server inventory · How to red team an MCP server
Questions about the AWS API MCP Server
Is the AWS API MCP Server safe to use?
It can be, with the right setup. At baseline it scores 50 (High) in the AccuroAI method because an agent using it can changes cloud infrastructure, reads local files, writes or deletes local files. Limit its scopes or tools, keep a person in the loop for write actions and pin the version you reviewed.
Does the AWS API MCP Server have known vulnerabilities?
Yes. 4 published issues are listed on this page with the affected versions and the fix, as of 2026-11-23. Update to a fixed version and check the maker's advisories before approving a new release.
How do I restrict the AWS API MCP Server?
Use the controls the maker provides: READ_OPERATIONS_ONLY=true (only non-Write operations); REQUIRE_MUTATION_CONSENT=true (elicitation before mutations); custom policy ~/.aws/aws-api-mcp/mcp-security-policy.json with denyList and elicitList; AWS_API_MCP_ALLOW_UNRESTRICTED_LOCAL_FILE_ACCESS=workdir|unrestricted|no-access. Then grant the narrowest token or account, approve the server centrally and block other copies of it.
Related servers
Azure MCP Server · Terraform MCP Server · All servers
Sources
- https://github.com/awslabs/mcp/tree/main/src/aws-api-mcp-server
- https://github.com/awslabs/mcp/blob/main/src/aws-api-mcp-server/MIGRATION.md
- https://github.com/awslabs/mcp/security/advisories
- https://github.com/awslabs/mcp/security/advisories?page=2
- https://github.com/awslabs/mcp/security/advisories/GHSA-4wq9-grf3-qg2p
- https://github.com/awslabs/mcp/security/advisories/GHSA-4prq-p2x5-w9fh
- https://github.com/awslabs/mcp/security/advisories/GHSA-29w2-fq35-v728
- https://github.com/awslabs/mcp/security/advisories/GHSA-2cpp-j2fc-qhp7
Facts were verified on 2026-11-23 against the server’s own repository and documentation and public vulnerability records. Servers change often: check the maker’s latest release notes before approving a new version. This page is general security guidance, not a guarantee about any product.