mcp-security-server
MCP 보안 스캐너 서버 v2.0
전문가용 프로덕션 등급 MCP 서버로, 보안 평가를 위한 도구입니다. Model Context Protocol 기반으로 Kali Linux용으로 제작되었습니다.
개요
AI 에이전트에게 표준화된 보안 스캔 기능을 제공하는 전문 Model Context Protocol (MCP) 서버입니다. 엄격한 규정 준수 통제를 통해 승인된 보안 평가를 위해 설계되었습니다.
주요 기능
7단계 필수 흐름 — 모든 도구는 다음을 따릅니다: 매개변수 검증 → 보안 필터링 → 경계 검사 → 비즈니스 로직 → 결과 패키징 → 예외 캡처 → 로깅
제로 명령 주입 — 모든 셸 호출은 매개변수 배열을 사용하며, 문자열 연결을 사용하지 않습니다.
필수 인증 — 모든 스캔 작업에는
legal_authorized=true가 필요합니다.8가지 CVE 검증 — Log4Shell, Spring4Shell, Apache 경로 탐색, HTTP/2 Rapid Reset 등
표준화된 출력 — 통일된 JSON 응답:
code/msg/target/vuln_list/risk_level/cvss_score/suggest전문 로깅 — 작업 ID, 스캔 추적, 감사 기록이 포함된 타임스탬프 로그
Related MCP server: eschaton-mcp
아키텍처
mcp-security-server/
├── server.py # MCP Server Entry Point
├── core/ # Business Logic Layer
│ ├── scanner.py # Scanning Engine (6 tools, 37KB)
│ ├── result.py # Unified Response Builder
│ ├── analyzer.py # CVSS 3.1 Scoring & Vulnerability DB
│ └── reporter.py # Multi-format Report Generator
├── utils/ # Infrastructure Layer
│ ├── executor.py # Safe Command Executor (Parameter Arrays)
│ ├── validator.py # Parameter Validation & Whitelist
│ ├── logger.py # Professional Logging System
│ └── env.py # Kali Environment Detection
└── requirements.txt # Dependencies빠른 시작
1. 종속성 설치
# Python packages
pip3 install mcp pydantic
# System tools (Kali Linux)
sudo apt update && sudo apt install -y nmap curl2. 서버 시작
cd mcp-security-server
python3 server.py3. MCP 클라이언트 구성
MCP 클라이언트 구성(예: Claude Desktop, opencode)에 추가하세요:
{
"mcpServers": {
"mcp-security-scanner": {
"command": "python3",
"args": ["/path/to/mcp-security-server/server.py"]
}
}
}도구
도구 | 설명 | 필수 매개변수 |
| 호스트 활성 감지 (ICMP + TCP SYN) | target, legal_authorized |
| 포트 스캔 (SYN/Connect) | target, legal_authorized |
| 서비스 버전 감지 | target, legal_authorized |
| 웹 취약점 스캔 | target, legal_authorized |
| CVE POC 검증 | target, legal_authorized, cve_id |
| 보안 보고서 생성 | target, legal_authorized, scan_data |
| 환경 및 종속성 검사 | (없음) |
사용 예시
호스트 활성 감지
{
"target": "192.168.1.1",
"legal_authorized": true,
"timeout": 15
}포트 스캔
{
"target": "192.168.1.1",
"legal_authorized": true,
"ports": "80,443,8080,8443",
"scan_type": "syn"
}CVE 검증
{
"target": "192.168.1.1",
"legal_authorized": true,
"cve_id": "CVE-2021-44228",
"port": 8080
}보고서 생성
{
"target": "192.168.1.1",
"legal_authorized": true,
"scan_data": "{\"vuln_list\":[...],\"suggest\":[...]}",
"format_type": "html"
}지원되는 CVE
CVE | 이름 | CVSS | 검증 방법 |
CVE-2021-44228 | Log4Shell | 10.0 | Java 서비스 감지 |
CVE-2022-22965 | Spring4Shell | 9.8 | Spring/Tomcat 감지 |
CVE-2023-22515 | Confluence 권한 상승 | 10.0 | Setup 엔드포인트 확인 |
CVE-2022-26134 | Confluence OGNL | 9.8 | Confluence 감지 |
CVE-2021-41773 | Apache 경로 탐색 | 7.5 | 경로 탐색 테스트 |
CVE-2021-42013 | Apache 경로 탐색 2 | 7.5 | 경로 탐색 테스트 |
CVE-2023-44487 | HTTP/2 Rapid Reset | 7.5 | HTTP/2 지원 확인 |
CVE-2021-3449 | OpenSSL NULL 역참조 | 5.9 | 버전 감지 |
표준화된 출력
{
"code": 0,
"msg": "success",
"target": "192.168.1.1",
"status": "completed",
"scan_data": { ... },
"vuln_list": [
{
"vuln_id": "CVE-2021-44228",
"vuln_name": "Log4Shell",
"cve_id": "CVE-2021-44228",
"cvss_score": 10.0,
"risk_level": "Critical",
"confidence": "Suspected",
"description": "Apache Log4j2 RCE",
"evidence": "Java service detected",
"remediation": "Upgrade Log4j to 2.17.0+"
}
],
"risk_level": "critical",
"cvss_score": 10.0,
"suggest": ["URGENT: Fix critical vulnerability immediately"],
"task_id": "TASK-20260822100000-a1b2c3d4",
"timestamp": "2026-08-22T10:00:00",
"duration": 12.34
}로깅
로그는 자동으로 log/ 디렉토리에 저장됩니다:
로그 파일 | 용도 |
| 일반 작업 |
| 스캔 활동 |
| 오류 및 예외 |
| 보안 감사 추적 |
규정 준수
이 도구는 다음을 위해 설계되었습니다:
서면 승인을 받은 보안 평가
내부 보안 팀의 취약점 검증
보안 연구 및 교육
금지: 무단 스캔, 데이터 도용, 시스템 손상
라이선스
MIT 라이선스 - 승인된 보안 테스트에만 사용
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Governed security assessments, findings and signed reports for your domains, from your AI agent.
Authorized security scans, evidence, fix prompts and retests for AI-built web apps.
AI pentesting: run scans, triage vulnerabilities, review PRs, manage schedules and assets.
Pay-per-call cybersecurity for AI agents: vuln scans, threat intel, compliance, code security.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables AI agents to conduct authorized pentests and bug-bounty workflows with scope enforcement, audit logging, reconnaissance, safe vulnerability checks, payload/wordlist generation, and professional report generation.14MIT
- AlicenseNot gradedqualityBmaintenanceExposes nmap, httpx, ffuf, and sqlmap to AI agents over MCP with mandatory scope enforcement, blocked cloud metadata and private addresses, and shell-free command execution. Enables authorized port scanning, HTTP probing, content discovery, and SQL injection verification with validated arguments and auditable output.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to run authorized, OWASP Top 10-mapped web-security recon scans against a single target, list available check modules, and inspect optional scanner engine availability, returning severity-ranked findings and explicitly noting checks that found nothing.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform authorized security assessments through natural language, including port scanning, CVE lookup and search, IP reputation checks, SSL/TLS and HTTP header analysis, DNS/WHOIS enumeration, Shodan intelligence, and consolidated reports.MIT