Iam policy autopilot
MCP server by awslabs Verified · gh:awslabs
Generates baseline AWS IAM identity-based policies by analyzing application code locally. It runs as a command-line tool and an MCP server for AI coding assistants, aimed at builders on AWS.
Install Iam policy autopilot
Built from the published package, never by AI.
claude mcp add iam-policy-autopilot -- uvx iam-policy-autopilotRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"iam-policy-autopilot": {
"args": [
"iam-policy-autopilot"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install Iam policy autopilot in Claude Desktop
{
"mcpServers": {
"iam-policy-autopilot": {
"args": [
"iam-policy-autopilot"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"iam-policy-autopilot": {
"args": [
"iam-policy-autopilot"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add iam-policy-autopilot -- uvx iam-policy-autopilot{
"mcpServers": {
"iam-policy-autopilot": {
"args": [
"iam-policy-autopilot"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install Iam policy autopilot in Antigravity CLI
gemini mcp add iam-policy-autopilot uvx iam-policy-autopilotGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the iam-policy-autopilot block.
About
IAM Policy Autopilot is an open source Model Context Protocol (MCP) server and command-line tool. It helps AI coding assistants create baseline IAM policies for application roles that can be refined as the application evolves. It analyzes application code locally and generates identity-based policies, which the source says can reduce access troubleshooting time.
The tool uses deterministic static code analysis of AWS SDK calls. It supports Python, Go, TypeScript, JavaScript and Java, and can also generate policies from a Terraform plan file in JSON format. The source says it is for builders on AWS using AI coding assistants, including developers, product managers, technical experimenters and business leaders. The source recommends reviewing generated policies before deployment.
Written from the project's README and checked against it.
What you need
- AWS credentials configured for AWS CLI
- An MCP client such as Kiro, Kiro CLI or Claude Desktop
- uv or pip to install the tool
- Python
Try asking
- Generate a baseline IAM policy for the AWS calls in this Python app
- Create an IAM policy for this Go service's SDK calls, limited to S3 and IAM
- Build a baseline IAM policy from this Terraform plan JSON file
Good to know
- Produces identity-based policies only, not resource-based policies, SCPs, RCPs or permission boundaries.
- Runtime-determined resources, such as a bucket name set at runtime, are not predicted.
- Native .tf configuration files are not yet supported as direct input; Terraform plan JSON is supported.
- Service hints can still leave permissions from other services when they are needed for the operations.
Security check
C- Downloads a script from the internet and runs itIn
README.md:curl -sSL https://github.com/awslabs/iam-policy-autopilot/raw/refs/heads/main/install.sh | sudo sh - Asks for administrator rights (sudo)In
README.md:sudo
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Baseline IAM policies for application roles
- Reducing AccessDenied troubleshooting time
- Generating policies from Terraform plan JSON
Alternatives to Iam policy autopilot
All alternatives →Agentmesh MCP Proxy is a security proxy for MCP servers, described by its publisher as a firewall for the Model Context Protocol. It is aimed at teams that run AI agents which call tools and other agents.
Hardens client-side artifacts such as binaries, Electron apps, JS bundles, Python and WebAssembly against AI reverse-engineering agents. Built for developers who ship proprietary logic to user-controlled devices.
Bla Agents is an MCP server and CLI that adds seeded, format-specific decoys to shipped binaries, JavaScript, WebAssembly and other artifacts. It is for developers who ship proprietary logic to user-controlled devices and want to make AI reverse-engineering slower.
A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner
Agent Governance Toolkit adds policy enforcement, identity, sandboxing and audit logging to autonomous AI agents. It is aimed at teams shipping agents to production. The source does not confirm the Claude Desktop MCP server named in the listing.
Convex MCP Gateway is a Convex component that exposes selected Convex functions as MCP tools. It checks each call with your own authorize callback and writes an audit log. It is for developers who run Convex apps and want AI assistants to call parts of them.
Compare with Agentmesh MCP Proxy, Bla or Bla Agents
Iam policy autopilot: common questions
Does IAM Policy Autopilot create resource-based policies?
No. The source says it produces IAM identity-based policies and does not support resource-based policies such as S3 bucket policies or KMS key policies.
Which languages does IAM Policy Autopilot support?
The source lists Python, Go, TypeScript, JavaScript and Java, using the AWS SDKs for each language. It can also generate policies from a Terraform plan file in JSON format.
Why might a generated policy include permissions my app does not use?
The source says method names can match AWS SDK calls from multiple services, such as listAccounts() matching both AWS Organizations and Amazon Chime. Using the --service-hints option can narrow the services analyzed.
How do I install Iam policy autopilot?
In Claude Code run claude mcp add iam-policy-autopilot -- uvx iam-policy-autopilot. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Iam policy autopilot the official server?
Iam policy autopilot is published by gh:awslabs from its verified domain in the official MCP Registry.
Is Iam policy autopilot free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is Iam policy autopilot safe to use?
It scores 85 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to Iam policy autopilot?
Similar MCP servers: Agentmesh MCP Proxy, Bla, Bla Agents, MCP Auth.
Does Iam policy autopilot work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
