Articles

"PentestGPT and HexStrike AI alternatives: framework, MCP server or agent?"

PentestGPT is a guided framework, HexStrike AI is an MCP tool server, and a coding agent with a shell is a third design. When each architecture fits, how to wire HexStrike-style tools into any MCP client, and what to look for in an alternative.

· 7 min read

An old-master oil painting of an open carpenter's toolbox of worn iron tools, one chisel lifted out with its tip glowing red-hot.

PentestGPT and HexStrike AI get mentioned in the same breath, but they're different kinds of software, and that difference is the most useful thing to understand before you look for an alternative. One is a framework that structures how a model runs a pentest. The other is a tool server that hands a model a large toolbox and leaves the structure to whoever drives it. A third design — a general coding agent with shell access — has quietly become the most common way people do this work.

If you want a product-by-product rundown with prices, that's in the best AI pentesting tools compared. This article is about the architecture choice: what each design is good at, when it fits, and what to look for if you're replacing one. Facts about PentestGPT and HexStrike are as of 2026-11 (checked 2026-11-22), from their repositories.

The ground rule is the same for every design below: only test systems you own or have written permission to test, inside the agreed scope. None of these tools knows your scope unless you tell it.

The three architectures

Three ways to put a model to work on a pentestA guided framework like PentestGPT owns the loop and decides the phases, calling the model and the tools. An MCP tool server like HexStrike AI only exposes tools; the MCP client and its model decide what to call. A general coding agent with a shell runs tools directly and is steered by your instructions and skills.Guided frameworkPentestGPTThe frameworkowns the loopMCP tool serverHexStrike AIThe client's modelowns the loopCoding agentwith a shellYour instructionssteer the loop
Three ways to put a model to work on a pentest

A guided framework: PentestGPT

PentestGPT describes itself as an "Automated Penetration Testing Agentic Framework Powered by Large Language Models." It came out of research published at USENIX Security 2024, is MIT-licensed and free. Its v1.0 "Agentic Upgrade" runs its autonomous pipeline on Claude Code or Codex backends; a legacy mode supports a long list of providers, including local models through Ollama.

The point of a framework is that it owns the methodology. It keeps track of where you are in an engagement, what's been tried, and what to do next, so the model doesn't wander. That's valuable when you're learning, or when you want consistent, repeatable runs.

The cost is rigidity. A framework's loop is someone else's idea of how a pentest goes. When your target doesn't fit — an odd protocol, a custom binary, a client-side app — you end up working around it.

An MCP tool server: HexStrike AI

HexStrike AI is an MCP server that lets agents — the README names Claude, GPT, Copilot, Cursor, Roo Code and others — drive "150+ security tools." It's at v6.0.0, MIT-licensed, free, with v7.0 announced. It's a tool layer, not a model.

The point of a tool server is that it owns nothing but the tools. It wraps scanners, fuzzers and enumeration utilities in a uniform interface, and the MCP client's model decides what to call and when. That's flexible: any MCP-capable agent gets a big toolbox in one step.

The cost is that all the judgment sits in the client and its model. HexStrike doesn't know your scope, your rate limits or your rules of engagement, and a model with 150 tools to hand will use them eagerly. And its behaviour depends entirely on the model behind the client: with a mainstream model you get that model's refusals; with a small local model you get its quality limits.

A general coding agent with shell tools

The third design skips the wrapper. A coding agent — Claude Code, Codex, OpenCode, caveira and others — has a shell, can read and write files, and runs the actual tools (nmap, ffuf, sqlmap, curl) directly, reading their real output. Methodology comes from your project instructions and skills rather than a fixed pipeline; tools come from what's installed.

This is the most flexible of the three, and the one that best handles non-standard work — writing a one-off script for a custom protocol, reading a decompiled binary, then going back to the web app. Its weakness is the mirror of the framework's strength: without structure, the agent's methodology is only as good as what you write down for it.

When each one fits

You want…Best fitWhy
A repeatable, structured run, or to learn the phasesGuided framework (PentestGPT)The methodology is built in
To give an agent you already use a big toolbox fastMCP tool server (HexStrike AI)One server, many tools, any client
To handle odd targets, mix RE and web, write custom codeCoding agent with a shellNothing between the model and the tools
Tight control over what runsCoding agent, or an MCP server with few toolsFewer, explicit tools are easier to approve

These aren't exclusive. The most common setup in practice is the third design plus a few MCP servers: a coding agent that runs shell tools directly and also calls a tool server, a Ghidra bridge or a browser when that's handier.

Wiring HexStrike-style tools into any MCP client

Because MCP is a standard, a tool server isn't tied to one client. The shape is the same everywhere: the client starts the server (or connects to it over HTTP), lists its tools, and offers them to the model. HexStrike's README gives the exact commands for its server and its MCP bridge; follow those rather than a copy from a blog post, since they change between versions.

Most clients take a JSON block in the mcpServers shape Claude Code uses. For a stdio server it looks like this — the command and arguments are placeholders for what the server's README tells you:

{
  "mcpServers": {
    "hexstrike": {
      "command": "python3",
      "args": ["/path/to/hexstrike-ai/<mcp-bridge-script>.py", "<args from the README>"]
    }
  }
}

Where it goes depends on the client: Claude Code reads project .mcp.json or its own settings; Cursor has its own MCP config; caveira reads ~/.caveira/mcp.json with a project's .caveira/mcp.json laid over it, and can copy in servers you've already set up in Claude Code, Claude Desktop or Cursor. Whatever the client, a few habits matter more than the config:

  • Keep approvals on. Every tool call that touches a network should be one you see before it runs. In caveira, every MCP call goes through the same approval as a shell command.
  • Turn off tools you won't use. A model offered a hundred tools picks worse than one offered ten. Most clients let you disable individual servers; trim to what the engagement needs.
  • Put the scope where the model reads it. In-scope hosts, forbidden techniques and rate limits go in the project instructions. The bug-bounty workflow shows how.
  • Run it somewhere disposable. A tool server that can launch scanners should run in a container or VM, not on the laptop with your SSH keys.
How an MCP client uses a tool serverThe client starts the tool server and lists its tools. The model asks to call one. You approve or deny it. If approved, the server runs the real tool and returns its output to the model.yesnoClient starts theserver, lists toolsModel asks tocall a toolYou approve?Server runsthe real toolNothing runsOutput backto the model
How an MCP client uses a tool server

What to look for in an alternative

Whatever replaces PentestGPT or HexStrike for you, check these:

  1. Which model is behind it, and what's its policy? Frameworks and tool servers inherit it. A great tool layer on a model that refuses half your requests is a poor tool.
  2. Can you see and approve each action? An agent that runs scanners without asking is a liability on a real engagement.
  3. Does it read real output? A design where the model sees the tool's actual stdout catches its own mistakes; one where it sees a summary doesn't.
  4. Can it go beyond the toolbox? Real targets need custom scripts. A design that can only call pre-wrapped tools will stall on the first unusual thing.
  5. Where does it run? Local, in a container, or in someone's cloud — and where does your target data go?
  6. Is it open? PentestGPT and HexStrike are both MIT; that's worth something if you want to read or change the code.

Where caveira fits

caveira is the third design: a terminal and desktop coding agent whose backend serves uncensored, abliterated open-weight models. It runs shell tools directly, ships security skills that give it methodology (web-app testing, reverse engineering, binary exploitation and others), and has an optional Docker box with nmap, sqlmap, ffuf, pwntools and a headless browser behind mitmproxy, so the tools run in a container rather than on your host. It speaks MCP, so HexStrike or any other tool server can be added to it — the two are complementary rather than either-or.

Where it isn't the best fit: if you want a fixed, research-backed methodology, PentestGPT gives you that out of the box; if you want everything free and open source, a local model with OpenCode plus HexStrike costs nothing but hardware; and if you need frontier reasoning, Claude Code or Codex with their security-access programs are stronger models. For the model side of that choice, see WhiteRabbitNeo alternatives and local vs hosted.