AWS Labs IAM MCP Server

raw JSON →
1.0.18 verified Mon Apr 27 auth: no python

An AWS Labs Model Context Protocol (MCP) server for managing AWS IAM resources including users, roles, policies, and permissions. Current version 1.0.18, released periodically on PyPI.

pip install awslabs-iam-mcp-server
error ModuleNotFoundError: No module named 'awslabs_iam_mcp_server'
cause Missing installation or wrong Python environment.
fix
Run: pip install awslabs-iam-mcp-server
error botocore.exceptions.NoCredentialsError: Unable to locate credentials
cause AWS credentials are not configured.
fix
Set up AWS credentials via environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) or AWS profile.
gotcha The server uses your local AWS credentials via profile or environment variables. Ensure proper IAM permissions (iam:*) are configured to avoid access denied errors.
fix Set AWS_PROFILE environment variable or configure default profile.
breaking Breaking change between versions <1.0.0 and >=1.0.0: import path changed from 'awslabs_iam_mcp' to 'awslabs_iam_mcp_server'.
fix Update import statement to 'from awslabs_iam_mcp_server import IAMServer'.
deprecated The parameter 'aws_access_key_id' and 'aws_secret_access_key' are deprecated in favor of using session or profile. They may be removed in future versions.
fix Use boto3 session or profile_name parameter instead.

Initialize and run the IAM MCP server with AWS credentials.

import os
from awslabs_iam_mcp_server import IAMServer

server = IAMServer(
    profile_name=os.environ.get('AWS_PROFILE', 'default'),
    region=os.environ.get('AWS_REGION', 'us-east-1')
)
server.run()