Back to Home
Shimmy0530 icon

kali-mcp-server

Verified Safe

by Shimmy0530

Overview

Facilitates automated security testing and vulnerability assessments by exposing Kali Linux tools via the Model Context Protocol to AI assistants and development environments.

Installation

Run Command
docker run -i --rm --cap-add=NET_RAW --cap-add=NET_ADMIN --memory=4g --memory-reservation=1g --cpus=4.0 kali-mcp-server

Environment Variables

  • DEBUG_MCP
  • DETACHED_MODE
  • MCP_SSE_MODE
  • MCP_PORT
  • MCP_HOST

Security Notes

The server's core `run_command` function utilizes `subprocess.run(shell=True)`, which poses a potential command injection risk if input is not meticulously sanitized. Although efforts are made to escape specific parameters within tool wrappers, relying on `shell=True` without comprehensive `shlex.quote` on all user-supplied components is less secure than `shell=False`. The container requires elevated Docker capabilities (`NET_RAW`, `NET_ADMIN`), inherently increasing the attack surface. However, the project mitigates this by providing extensive legal/ethical warnings, implementing Docker-level and per-process resource limits, and explicitly detailing security best practices and isolation recommendations.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassHigh
Avg Tokens125000
Stars0
Forks0
Last Update2025-11-28

Tags

Security TestingPenetration TestingVulnerability AssessmentAI IntegrationDocker