Model Context Protocol server for PwnDoc pentest documentation
Common issues and solutions for PwnDoc MCP Server.
Symptoms:
ConnectionRefusedErrorConnection timeoutSolutions:
curl https://your-pwndoc.com/api/users/me
ping your-pwndoc.com
traceroute your-pwndoc.com
# Try both
curl http://your-pwndoc.com/api/users/me
curl https://your-pwndoc.com/api/users/me
Symptoms:
SSL: CERTIFICATE_VERIFY_FAILEDSSL handshake failedSolutions:
export PWNDOC_VERIFY_SSL=false
export SSL_CERT_FILE=/path/to/ca-bundle.crt
# macOS
brew install ca-certificates
# Ubuntu/Debian
sudo apt update && sudo apt install ca-certificates
Symptoms:
401 UnauthorizedInvalid credentialsSolutions:
# Test login directly
curl -X POST https://your-pwndoc.com/api/users/login \
-H "Content-Type: application/json" \
-d '{"username": "your-user", "password": "your-pass"}'
pwndoc-mcp config show # Review settings
# Get new token
pwndoc-mcp config init
Solutions:
pwndoc-mcp config init
unset PWNDOC_TOKEN
export PWNDOC_USERNAME=your-user
export PWNDOC_PASSWORD=your-pass
Symptoms:
Solutions:
# Check JSON is valid
cat ~/Library/Application\ Support/Claude/claude_desktop_config.json | python -m json.tool
which pwndoc-mcp
pwndoc-mcp --version
pwndoc-mcp serve
# macOS
tail -f ~/Library/Logs/Claude/main.log
Solutions:
{
"mcpServers": {
"pwndoc": {
"command": "/usr/local/bin/pwndoc-mcp",
"args": ["serve"]
}
}
}
python -c "import pwndoc_mcp_server"
{
"mcpServers": {
"pwndoc": {
"command": "pwndoc-mcp",
"args": ["serve"],
"env": {
"PWNDOC_LOG_LEVEL": "DEBUG",
"PWNDOC_LOG_FILE": "/tmp/pwndoc-mcp.log"
}
}
}
}
Solutions:
pip install pwndoc-mcp-server[cli]
echo $PATH
pip show pwndoc-mcp-server # Check install location
python -m pwndoc_mcp_server.cli --help
Symptoms:
ModuleNotFoundErrorImportErrorSolutions:
pip uninstall pwndoc-mcp-server
pip install pwndoc-mcp-server[all]
python --version # Must be 3.8+
# Ensure venv is activated
source venv/bin/activate
pip install pwndoc-mcp-server[all]
Solutions:
docker logs <container_id>
docker run -it --rm ghcr.io/walidfaour/pwndoc-mcp-server:latest env | grep PWNDOC
docker run -it --rm ghcr.io/walidfaour/pwndoc-mcp-server:latest \
curl -v https://your-pwndoc.com
Solutions:
docker run -e PWNDOC_URL=http://host.docker.internal:8443 ...
docker run --network host -e PWNDOC_URL=http://localhost:8443 ...
Solutions:
Wait and retry - Rate limits reset after 60 seconds
Reduce request frequency in your workflow
Use batch tools like get_all_findings_with_context
Solutions:
pwndoc-mcp query list_audits # Get valid IDs
Solutions:
export PWNDOC_TIMEOUT=120
Check PwnDoc server load
Enable comprehensive logging:
export PWNDOC_LOG_LEVEL=DEBUG
export PWNDOC_LOG_FILE=/tmp/pwndoc-mcp-debug.log
pwndoc-mcp test --verbose
Then check the log:
tail -f /tmp/pwndoc-mcp-debug.log
If issues persist:
Search existing issues: GitHub Issues