AWS Security Analyzer
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AWS Security AnalyzerCheck for over-privileged IAM roles and S3 buckets with missing public access blocks"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AWS Security Analyzer (MCP Server)
An automated Cloud Security Posture Management (CSPM) tool built on the Model Context Protocol (MCP). This server acts as a local security scanner for AWS environments, designed to detect over-privileged IAM roles and S3 Public Access Block misconfigurations using the Principle of Least Privilege.
🚀 Features
IAM Role Enumeration: Lists IAM roles and ARNs with pagination support.
Policy Analysis: Scans both managed and inline IAM policies for
AdministratorAccessand wildcard (*) action/resource risks.S3 Public Access Block Scanner: Audits S3 buckets for missing or partial Public Access Block (PAB) settings.
Related MCP server: aegis
🛠️ Prerequisites
Python 3.10+
Node.js (optional, for MCP Inspector testing)
AWS credentials configured (
aws configure, environment variables, or an IAM role)
⚙️ Installation
Clone the repository:
git clone https://github.com/ekremcakir/aws-security-mcp.git
cd aws-security-mcpCreate and activate a virtual environment:
python3 -m venv .venvmacOS / Linux:
source .venv/bin/activateWindows:
.venv\Scripts\activateInstall dependencies:
pip install -r requirements.txt🔍 Usage
MCP Inspector (local testing)
npx @modelcontextprotocol/inspector .venv/bin/python server.pyOpen the localhost URL in your browser, go to Tools, and run:
list_iam_rolesanalyze_iam_policyanalyze_s3_security
Cursor / Claude Desktop
Add this to your MCP config (adjust paths to your machine):
{
"mcpServers": {
"aws-security": {
"command": "/absolute/path/to/aws-security-mcp/.venv/bin/python",
"args": ["/absolute/path/to/aws-security-mcp/server.py"]
}
}
}Windows example:
{
"mcpServers": {
"aws-security": {
"command": "C:\\path\\to\\aws-security-mcp\\.venv\\Scripts\\python.exe",
"args": ["C:\\path\\to\\aws-security-mcp\\server.py"]
}
}
}🔐 Required AWS IAM Permissions
The IAM user or role running this server needs at least:
Service | Actions |
IAM |
|
S3 |
|
Example read-only policy snippet:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"iam:ListRoles",
"iam:ListAttachedRolePolicies",
"iam:ListRolePolicies",
"iam:GetRolePolicy",
"iam:GetPolicy",
"iam:GetPolicyVersion",
"s3:ListAllMyBuckets",
"s3:GetPublicAccessBlock"
],
"Resource": "*"
}
]
}⚠️ Limitations
S3 scope: Checks Public Access Block settings only. Does not analyze bucket policies, ACLs, or actual public object exposure.
IAM scope: Does not evaluate permission boundaries, trust policies, or cross-account access patterns.
Pagination:
list_iam_rolesrespectsmax_items; large accounts may need multiple calls with higher limits.Credentials: Uses the default Boto3 credential chain (environment, shared config, instance profile).
🛡️ Architecture & DevSecOps Context
This project demonstrates cloud security automation with standard AWS SDKs (Boto3) and the MCP standard, bridging infrastructure auditing and AI-driven workflow integrations.
📄 License
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Scan any MCP server for tool-poisoning, security, auth & license. Trust score before install.
Scan any public GitHub MCP-server repo for security issues. 37 MCP-specific L1 rules, 8 languages.
Scans remote MCP servers for protocol, security, and TLS issues; exposes scan tools via MCP.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for automated AWS security scanning — 19 modules, risk scoring, zero write operations.3516 npmMIT
- FlicenseNot gradedqualityCmaintenanceMCP server for auditing AI agent permissions and access by scanning for the trifecta of credentials, injection, and reach without heavy infrastructure.-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that enables AI assistants to perform comprehensive AWS security analysis through natural language queries, bridging AI with AWS security services.2Apache 2.0
- AlicenseAqualityCmaintenanceMCP server for auditing infrastructure-as-code attack paths, finding multi-hop chains from public internet to sensitive resources.2MIT