
groovybugify/aws-security-mcp 是从 https://github.com/groovybugify/aws-security-mcp. 导入的 MCP 服务器候选服务器。
概览
groovybugify/aws-security-mcp 是从 https://github.com/groovybugify/aws-security-mcp. 导入的 MCP 服务器候选服务器。
概述(AI 翻译)
一个模型上下文协议(MCP)服务器,使AI助手能够通过自然语言查询进行全面的AWS安全分析。
概述
AWS Security MCP 连接了像 Claude 这样的 AI 助手与 AWS 安全服务,通过对话式查询实现实时基础设施分析。系统自动发现并分析多个 AWS 账户的资源,提供安全洞察,无需深厚的 AWS CLI 知识。
主要能力
- 跨账户发现:自动检测和访问AWS组织账户
- 自然语言接口:使用通俗英语查询AWS资源
- 安全分析:来自GuardDuty、SecurityHub和Access Analyzer的综合发现
- 基础设施映射:网络拓扑、威胁建模、安全审查和爆炸半径分析
- 日志分析:基于Athena的CloudTrail、VPC流日志和安全事件分析
先修条件
- Python:3.11及以上
- 包管理器:uv
- AWS 账户:具有相应 IAM 权限
- MCP 客户端:Claude 桌面、Cline 或兼容客户端
AWS 需求
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
AWS Security MCP
A Model Context Protocol (MCP) server that enables AI assistants to perform comprehensive AWS security analysis through natural language queries.
Overview
AWS Security MCP bridges AI assistants like Claude with AWS security services, enabling real-time infrastructure analysis through conversational queries. The system automatically discovers and analyzes resources across multiple AWS accounts, providing security insights without requiring deep AWS CLI knowledge.
Key Capabilities
- Cross-Account Discovery: Automatic detection and access to AWS Organization accounts
- Natural Language Interface: Query AWS resources using plain English
- Security Analysis: Integrated findings from GuardDuty, SecurityHub, and Access Analyzer
- Infrastructure Mapping: Network topology, threat modelling, security review and blast radius analysis
- Log Analytics: Athena-powered analysis of CloudTrail, VPC Flow Logs, and security events
Prerequisites
- Python: 3.11 or higher
- Package Manager: uv
- AWS Account: With appropriate IAM permissions
- MCP Client: Claude Desktop, Cline, or compatible client
AWS Requirements
MCP Server’s AWS credentials must have the following permissions:
Core MCP Permissions
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "CrossAccountAccess",
"Effect": "Allow",
"Action": [
"sts:AssumeRole"
],
"Resource": "arn:aws:iam::*:role/aws-security-mcp-cross-account-access"
},
{
"Sid": "OrganizationDiscovery",
"Effect": "Allow",
"Action": [
"organizations:ListAccounts"
],
"Resource": "*"
}
]
}
Athena Integration Permissions
For advanced log analysis capabilities, additional permissions are required:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AthenaQueryExecution",
"Effect": "Allow",
"Action": [
"athena:BatchGetQueryExecution",
"athena:GetQueryExecution",
"athena:GetQueryResults",
"athena:GetWorkGroup",
"athena:GetTableMetadata",
"athena:ListQueryExecutions",
"athena:StartQueryExecution",
"athena:GetQueryResultsStream",
"athena:GetDataCatalog",
"athena:ListDataCatalogs",
"athena:ListDatabases",
"athena:ListTableMetadata"
],
"Resource": "*"
},
{
"Sid": "GlueCatalogAccess",
"Effect": "Allow",
"Action": [
"glue:GetDatabase",
"glue:GetDatabases",
"glue:GetTable",
"glue:GetTables",
"glue:GetPartition",
"glue:GetPartitions",
"glue:BatchGetPartition"
],
安装
docker run -p 8000:8000 \配置
# Install mcp-proxy
uv tool install mcp-proxy
# Check location of mcp-proxy
which mcp-proxy
# Add to Claude Desktop config
{
"mcpServers": {
"aws-security": {
"command": "/path/to/mcp-proxy",
"args": ["http://localhost:8000/sse"]
}
}
}