Back to Home
exjskdjsdfks icon

pentest-mcp-server

by exjskdjsdfks

Overview

The Pentest MCP Server enables AI agents to perform autonomous penetration testing operations on remote Linux distributions by managing persistent tmux sessions via SSH.

Installation

Run Command
python -m pentest_mcp_server

Environment Variables

  • TARGET_HOST
  • TARGET_USER
  • TARGET_PASSWORD
  • TARGET_SSH_KEY

Security Notes

The server's core functionality involves executing arbitrary commands on a remote system. It explicitly disables SSH host key checking (`known_hosts=None`), which is a critical security vulnerability for Man-in-the-Middle (MITM) attacks as it will connect to any server without verifying its authenticity. While it includes a blacklist for some dangerous commands (e.g., `rm -rf /`, fork bomb), this is not foolproof. Running this server requires careful deployment in isolated, controlled environments, and only on authorized target systems.

Similar Servers

Stats

Interest Score36
Security Score4
Cost ClassMedium
Avg Tokens1500
Stars5
Forks0
Last Update2026-01-19

Tags

penetration-testingautomationmcpsshtmux