AWS Security Analyzer
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
Related MCP Connectors
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
MCP server: static security scanner for MCP servers, agent skills & plugins. 17 attack patterns.
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.
Related MCP Servers
- AlicenseBqualityBmaintenanceMCP server for automated AWS security scanning โ 19 modules, risk scoring, zero write operations.3943 npmMIT
- FlicenseNot gradedqualityDmaintenanceMCP 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
- AlicenseAqualityDmaintenanceMCP server for auditing infrastructure-as-code attack paths, finding multi-hop chains from public internet to sensitive resources.2MIT