Get the FREE Ultimate OpenClaw Setup Guide →

pwndoc

An MCP Server for Pwndoc (Pentesting Reporting Tool)

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio walidfaour-pwndoc-mcp-server pwndoc-mcp serve \
  --env TIMEOUT="30 (request timeout in seconds)" \
  --env PWNDOC_URL="https://pwndoc.example.com (or your Pwndoc instance URL)" \
  --env VERIFY_SSL="true (default) or false" \
  --env PWNDOC_TOKEN="your-jwt-token (if using pre-authenticated token)" \
  --env PWNDOC_PASSWORD="your-password (if using username/password auth)" \
  --env PWNDOC_USERNAME="your-username (if using username/password auth)"

How to use

PwnDoc MCP Server exposes the PwnDoc API tools to the Model Context Protocol, allowing AI assistants to query audits, manage findings, generate reports, and interact with your pentest documentation through natural language. The server includes authentication support (username/password with automatic token refresh or pre-authenticated tokens), rate limiting, automatic retries, and comprehensive logging. You can run the server via the pwndoc-mcp command and expose it to Claude Desktop or other MCP clients through a configured entry like the pwndoc.mcp entry in Claude's mcp_servers.json, enabling tools such as auditing, finding management, and reporting endpoints to be called by the AI assistant. Tools are implemented to cover the PwnDoc API surface, including endpoints for querying documents, creating or updating findings, generating summaries, and exporting reports.

How to install

Prerequisites:

  • Python 3.8+ (preferably 3.9+)
  • pip (comes with Python)
  • Optional: virtualenv

Installation steps (Python implementation):

  1. Clone or install from PyPI
  • Quick install (stable): python -m pip install pwndoc-mcp-server

  • With CLI extras (if you need CLI enhancements): python -m pip install pwndoc-mcp-server[cli]

  1. Verify installation pwndoc-mcp --version

  2. Run the MCP server locally (default settings will prompt for auth setup) pwndoc-mcp serve

  3. Configure environment variables for authentication (examples): export PWNDOC_URL="https://pwndoc.example.com" export PWNDOC_USERNAME="your-username" export PWNDOC_PASSWORD="your-password"

Or use a pre-authenticated token instead of username/password

export PWNDOC_TOKEN="your-jwt-token" export VERIFY_SSL=true export TIMEOUT=30

  1. Optional: initialize interactive config pwndoc-mcp config init

Installation via Docker (alternative):

  • Pull the official image and run a container, mounting configuration as needed: docker pull ghcr.io/walidfaour/pwndoc-mcp-server docker run -i ghcr.io/walidfaour/pwndoc-mcp-server serve

From source (advanced):

Additional notes

Tips and common considerations:

  • Use environment variables to securely supply credentials instead of hard-coding.
  • If you switch between username/password and token, the server will prioritize username/password (automatic token refresh).
  • For Claude Desktop integration, ensure the proper mcp_servers.json entry is configured on the target OS, and that the command (pwndoc-mcp) and its environment reflect your Pwndoc URL and credentials.
  • Enable SSL verification (VERIFY_SSL=true) in production to prevent token interception; disable only in trusted test environments.
  • If you run into installation issues on Kali or minimal environments, consider using a virtual environment (venv) to isolate dependencies.
  • The MCP server supports 90 MCP tools endpoints; consult the Pwndoc MCP docs for the exact endpoints and data models, and enable verbose logging during initial integration to ease debugging.

Related MCP Servers

Sponsor this space

Reach thousands of developers