Table of Contents
Open Table of Contents
What It Is
aws/agent-toolkit-for-aws is the official, AWS-supported bundle of MCP server config, agent skills, plugins and rules files for coding agents. Per its README: Apache-2.0, status GA, works with Claude Code, Codex, Cursor, Devin, Kiro and fx. It is the successor to the AWS Labs MCP servers and skills.
Three parts matter:
| Part | What it does |
|---|---|
| AWS MCP Server | Managed remote MCP endpoint. Per the AWS News Blog GA post: call_aws runs any AWS API with your existing IAM credentials, plus search_documentation / read_documentation. No extra charge; you pay for resources created. GA in US East (N. Virginia) and Europe (Frankfurt); can call APIs in any Region. |
| Skills | SKILL.md packages loaded on demand. aws-core ships skills such as aws-cdk, aws-cloudformation, aws-iam, aws-observability, aws-investigation, aws-networking, aws-billing-and-cost-management, aws-well-architected-review, aws-deployment. |
| Rules files | rules/aws-agent-rules.md: prefer MCP server, load skill before acting, IaC over raw CLI, never read Secrets Manager values directly. |
Enterprise angle: IAM context keys tell agent calls from human calls, and every request gets CloudWatch metrics and CloudTrail logging (README, “How the Agent Toolkit relates to … AWS Labs”).
How to Install
Prerequisites
- An AWS account with credentials configured locally (needed for API calls; not needed for doc search or skill discovery).
uvinstalled (the proxy runs viauvx).- A supported agent.
uv --version
aws sts get-caller-identity # confirm credentials resolve to the role you expect
Use a least-privilege role, not admin, for first run. See scenarios below.
Option A: AWS CLI
aws configure agent-toolkit
Guide: AWS CLI integration.
Option B: Claude Code (plugin)
/plugin install aws-core@claude-plugins-official
# if "Plugin not found":
/plugin marketplace update claude-plugins-official
Optional plugins from the same README: aws-agents (Bedrock/AgentCore), aws-data-analytics (S3 Tables, Glue, Athena), aws-agents-for-devsecops, aws-continuum, aws-startup-advisor (last three via /plugin marketplace add aws/agent-toolkit-for-aws).
Option C: Codex / Devin / Cursor
# Codex
codex plugin marketplace add aws/agent-toolkit-for-aws # then /plugins -> install aws-core
# Devin (needs `devin auth login`; add --local for this machine only)
devin plugins install aws/agent-toolkit-for-aws#plugins/aws-core
Cursor: Settings → Plugins → Team Marketplaces → Add Marketplace → Import from Repo → aws/agent-toolkit-for-aws, then install aws-core.
Option D: Kiro / fx / any MCP agent (MCP server + skills)
Two independent parts. MCP server in .kiro/settings/mcp.json:
{
"mcpServers": {
"aws": {
"command": "uvx",
"args": [
"mcp-proxy-for-aws-cli@latest",
"https://aws-mcp.us-east-1.api.aws/mcp",
"--metadata",
"AWS_REGION=us-west-2"
]
}
}
}
Skills:
npx skills add aws/agent-toolkit-for-aws/skills # Kiro / generic
npx skills add aws/agent-toolkit-for-aws/skills -a fx # fx
Pin it for enterprise. README uses
@latestfor Kiro/fx. Theaws-coreplugin’s.mcp.jsoninstead pinsmcp-proxy-for-awsto a git commit SHA. In regulated environments, copy that pinning pattern and review before bumping.
First successful run
Start agent in a sandbox account and ask:
Search AWS skills related to databases.
List my S3 buckets and tell me which have no default encryption.
Success = agent calls aws___search_documentation / call_aws, and the call shows in CloudTrail. Then drop rules/aws-agent-rules.md into project instructions (CLAUDE.md, AGENTS.md, etc.) so the agent loads skills before acting.
How to Use
Core loop after install:
- Ask for outcome, not commands: “Add a private S3 bucket with KMS and a lifecycle rule.”
- Agent finds skill (
aws___search_documentationtopicagent_skills), loads it (aws___retrieve_skill), follows its procedure. - Agent produces CDK/CloudFormation, per rules (“prefer infrastructure-as-code over direct CLI”).
- You review the diff, run
cdk diff, deploy through your pipeline. - Audit via CloudTrail + CloudWatch metrics.
Governance knobs, from the AWS MCP Server IAM docs and the AWS Security Blog:
- Server has no IAM actions of its own. It SigV4-authenticates, adds
aws:ViaAWSMCPService(bool) andaws:CalledViaAWSMCP(service principal), forwards to downstream service, which authorizes with your normal policies. - Use those keys in IAM policies and SCPs to treat agent calls differently from human calls.
- Combine with VPC endpoints for layered control.
Real-World Infra Scenarios
Scenarios below are patterns built from documented toolkit features. Policies are illustrative; test in a sandbox before applying.
1. Agent-authored infrastructure via CDK, not CLI
Problem (from the GA blog): agents default to AWS CLI over CDK/CloudFormation and write overbroad IAM.
Setup: aws-core plugin (skills aws-cdk, aws-cloudformation, aws-iam) + rules file.
Prompt:
Add an SQS queue with DLQ and a Lambda consumer to the orders stack.
Use CDK, least-privilege IAM, and show me cdk diff. Do not deploy.
Result: PR with a CDK change, reviewed and deployed by existing CI. Agent never holds deploy rights.
2. Read-only production investigation
Use aws-investigation and aws-observability skills. Give the agent a read-only role and deny writes from the MCP path:
{
"Version": "2012-10-17",
"Statement": [{
"Sid": "DenyWritesViaAgents",
"Effect": "Deny",
"NotAction": [
"*:Get*", "*:List*", "*:Describe*",
"logs:StartQuery", "logs:GetQueryResults", "logs:FilterLogEvents"
],
"Resource": "*",
"Condition": { "Bool": { "aws:ViaAWSMCPService": "true" } }
}]
}
This is the README’s own example: read-only through the MCP server even if the user’s role could write. Rules file also forces evidence discipline: read a failing record whole, name the field and value, label unverified causes.
3. Org-wide SCP guardrail for agent traffic
At the Organizations level, block destructive APIs when the request comes via an MCP server, in production OUs only:
{
"Version": "2012-10-17",
"Statement": [{
"Sid": "NoDestructiveViaMCPInProd",
"Effect": "Deny",
"Action": [
"ec2:TerminateInstances", "rds:DeleteDBInstance",
"s3:DeleteBucket", "dynamodb:DeleteTable",
"iam:DeleteRole", "iam:PutRolePolicy"
],
"Resource": "*",
"Condition": { "Bool": { "aws:ViaAWSMCPService": "true" } }
}]
}
Humans keep break-glass via console/CLI; agents get none.
4. Cost and Well-Architected review
Skills aws-billing-and-cost-management and aws-well-architected-review. Prompt: “List the top five cost drivers last month by service, flag idle resources, map findings to Well-Architected pillars.” Needs only ce:Get*, cloudwatch:Get*, *:Describe*. Output is a report, no writes.
5. Data platform bootstrap
aws-data-analytics plugin: S3 Tables, Glue, Athena. Agent scaffolds a table and ETL job in a dev account; promotion to prod goes through your pipeline. Secrets: rules require the aws-secrets-manager skill and {{resolve:secretsmanager:...}} dynamic references, never get-secret-value.
Audit query (all scenarios)
Find agent-initiated calls in CloudTrail Lake / Athena:
SELECT eventtime, useridentity.arn, eventsource, eventname
FROM cloudtrail_logs
WHERE eventtime > current_timestamp - interval '1' day
AND additionaleventdata LIKE '%aws-mcp%'
ORDER BY eventtime DESC;
Field layout varies by CloudTrail setup; confirm against a sample event before alerting on it.
Enterprise Real Implementation Example
Honest note: I searched for a publicly named third-party enterprise that documents a production rollout of the Agent Toolkit for AWS and found none. Do not trust any blog that cites invented customers or ROI numbers. What is real and sourced is the production deployment pattern AWS itself documents for enterprises adopting AWS-managed MCP servers:
| Element | Source |
|---|---|
| Managed MCP endpoint, SigV4, existing IAM credentials, no MCP-specific IAM actions | AWS MCP Server IAM docs |
aws:ViaAWSMCPService / aws:CalledViaAWSMCP in IAM and SCP policies, plus VPC endpoints for defense in depth and audit trails | AWS Security Blog: Understanding IAM for Managed AWS MCP Servers |
| CloudWatch metrics + CloudTrail audit per request | Toolkit README |
| Centralized MCP hub with private VPC endpoints, CDK-deployed, governed by a dedicated team | AWS ML Blog: Scale MCP servers for enterprise workloads (reference architecture, not a toolkit customer) |
Rollout blueprint that follows these sources:
- Sandbox account,
aws-coreplugin, read-only role (scenarios 2, 4). - Add SCP deny for destructive actions where
aws:ViaAWSMCPServiceis true (scenario 3). - CloudTrail + CloudWatch alarms on agent-tagged calls.
- Pin proxy version by commit SHA; review upgrades.
- Widen to dev-account IaC authoring (scenarios 1, 5); prod stays pipeline-only.
Claims on the AWS announcement pages (agents “build more effectively”) are vendor statements; measure on your own repos before promising gains.
Caveats
- MCP server GA Regions: us-east-1 and eu-central-1 only (per GA post at May 2026; check docs for updates).
- Skills evolve; the repo says new/updated skills ship on a regular cadence. Pin or re-test.
- Agent output is untrusted until reviewed: run
cdk diff, policy validation, and your normal CI.