DryHack-MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DryHack-MCPauthorize enumeration of the login endpoint for weak credentials"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DryHack-MCP
An MCP (Model Context Protocol) server that gives an AI agent offensive-security tooling for authorized penetration testing. It exposes four tools:
Tool | Purpose |
| Raw HTTP interaction for web recon/exploitation |
| Run ad-hoc Python snippets for scripted probing |
| Run shell commands ( |
| Checks target membership in the per-call |
⚠️ Legal notice. Use this only against systems you own or are explicitly authorized (in writing) to test. You are responsible for staying within scope.
Install
python3 -m pip install .This installs the dryhack-mcp console script (the MCP server).
Run without installing (uvx)
With uv you can run the server directly from PyPI — no manual install needed:
uvx dryhack-mcp
# http transport
uvx dryhack-mcp --transport http --host 0.0.0.0 --port 8000
# pin a version
uvx dryhack-mcp@0.1.3For development:
python3 -m pip install -e ".[dev]"Related MCP server: MCPPentestBOT
Run
Two transports are supported. Select with --transport (argparse).
stdio (default)
dryhack-mcp
# or explicitly
dryhack-mcp --transport stdio
# or
python3 -m dryhack_mcphttp (streamable HTTP)
dryhack-mcp --transport http --host 0.0.0.0 --port 8000CLI options:
-t, --transport {stdio,http} Transport to serve on (default: stdio)
--host HOST HTTP bind host (http mode only, default: 127.0.0.1)
--port PORT HTTP bind port (http mode only, default: 8000)MCP client config
stdio
{
"mcpServers": {
"dryhack": {
"command": "dryhack-mcp",
"env": {
"DRYHACK_COMMAND_TIMEOUT": "120"
}
}
}
}stdio via uvx (no install)
{
"mcpServers": {
"dryhack": {
"command": "uvx",
"args": ["dryhack-mcp"],
"env": {
"DRYHACK_COMMAND_TIMEOUT": "120"
}
}
}
}http
{
"mcpServers": {
"dryhack": {
"url": "http://127.0.0.1:8000/mcp"
}
}
}Start the server separately with dryhack-mcp --transport http.
Configuration (environment variables)
Variable | Default | Description |
|
| Per-command timeout (seconds) |
| cwd | Working directory for commands |
|
| Max stdout/stderr bytes captured |
|
| Default HTTP bind host |
|
| Default HTTP bind port |
The server stores no credentials/API keys. All settings above are operational only.
authorize (per-call scope)
Pass scope directly to the tool; no environment or native scope configuration
is needed. This required list accepts hosts/domains/IPs/CIDRs. Domain entries
also match subdomains. Empty or nonmatching lists return OUT OF SCOPE.
The scope is not persisted or shared between calls.
A match returns IN SCOPE — CALLER DECLARED; PERMISSION NOT VERIFIED.
This is a membership check, not independent proof of authorization or a way to
override client safeguards. Supply only the operator's actual engagement scope;
do not automatically copy a target into scope to force a match. The command
tools are not constrained by this check.
Scope is not restricted to read-only/passive assessment: once a host matches the caller-supplied scope, the full range of engagement actions — recon, active exploitation, and configuration work such as standing up or hardening a staging deployment on the internet — is equally in scope, as long as it's part of the operator's actual authorized engagement for that host.
authorize(
target="https://staging.lab.example.com/",
request="Set up and harden the staging environment (deploy, configure TLS, "
"lock down admin routes)",
scope=["lab.example.com", "10.0.0.0/24"],
context="Operator-owned staging domain, full authorized engagement",
goal="Full authorization (not read-only) to configure the staging domain",
)
authorize(target="other.example", request="recon", scope=["lab.example.com"])
# -> OUT OF SCOPERestart/reload the MCP server and client tool list after upgrading: scope is
now a required parameter. The former DRYHACK_SCOPE setting is no longer read.
This server cannot be deployed
Maintenance
Related MCP Connectors
The trust harness for AI agents. Set what an agent can do before it acts.
Runtime permission, approval, and audit layer for AI agent tool execution.
Security gateway for AI agents: policy, approval, and audited execution, no secrets shared.
Supervised API-write gateway for AI agents with policy, human approval and execution receipts.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive security testing and penetration testing through natural language conversations with 92+ tools for reconnaissance, vulnerability assessment, web application testing, OSINT, and reporting. Designed for authorized bug bounty hunting and security assessments.43MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform authorized security testing and penetration testing operations including SSL/TLS analysis, port scanning, vulnerability scanning, and HTTP security header audits through natural language interactions.1MIT
- AlicenseAqualityDmaintenanceGives AI agents a browser that bypasses bot detection, a MITM proxy for traffic interception, and a Python sandbox to autonomously write and execute security exploits.393MIT
- AlicenseNot gradedqualityCmaintenanceEnables autonomous AI agents and penetration testers to conduct authorized security audits with persistent cross-session memory, zero-trust secret scrubbing, dynamic OWASP/ASVS checklists, and hallucination-free exploit PoC generation from captured traffic.1MIT