AWS Security Analyzer
Click on "Install 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for automated AWS security scanning — 19 modules, risk scoring, zero write operations.359MIT
- Flicense-qualityBmaintenanceMCP server for auditing AI agent permissions and access by scanning for the trifecta of credentials, injection, and reach without heavy infrastructure.
- Alicense-qualityDmaintenanceA 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
Related MCP Connectors
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Scans MCP servers for tool poisoning, prompt injection and supply chain risks.
Scan any public GitHub MCP-server repo for security issues. 37 MCP-specific L1 rules, 8 languages.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ekrmcakir/aws-security-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server