Run an AWS CLI command using the locally configured AWS profile. Pass arguments as an array of strings (no
AI agents invoke aws_cli to trigger actions in Self-hosted MCP server for Claude. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call — builds kicked off, notifications sent, workflows started.
This tool executes arbitrary AWS CLI commands with effects determined entirely by user input. While AWS CLI can read data (low risk), it equally enables destructive operations (delete resources, terminate instances), financial operations (provision expensive resources, modify billing settings), and lateral movement. The ability to 'run' commands with argument-dependent effects makes this Execute category.
From the tool's definition Tool description states 'Run an AWS CLI command' which directly executes external operations. AWS CLI commands can perform any action on AWS infrastructure depending on arguments passed.
Attacks that exploit this kind of access
Run an AWS CLI command using the locally configured AWS profile. Pass arguments as an array of strings (no. It is categorised as a Execute tool in the Self-hosted MCP server for Claude MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
Register the Self-hosted MCP server for Claude MCP server in PolicyLayer and add a rule for aws_cli: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Self-hosted MCP server for Claude. Nothing to install.
aws_cli is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.
Yes. Add a rate_limit block to the aws_cli rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for aws_cli. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
aws_cli is provided by the Self-hosted MCP server for Claude MCP server (leszczynskikarol/mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →