HackTricks MCP Server

Search and query HackTricks pentesting documentation with quick lookup and section extraction

Local serverstdio

What is the HackTricks MCP Server?

Search and query HackTricks pentesting documentation with quick lookup and section extraction

What you get

MCP (Model Context Protocol) server for searching and querying HackTricks pentesting documentation directly from Claude.

  • Quick lookup — - One-shot exploitation info with alias support (sqli, xss, ssrf, etc.)
  • Grouped search results — - Results aggregated by file with match count, title, and relevant sections
  • Page outline — - Quick table of contents to identify relevant sections
  • Section extraction — - Read specific sections instead of full pages (token-efficient)
  • Cheatsheet mode — - Extract only code blocks/commands from pages
  • Category browsing — - Discover available topics and file paths

Configuration and credentials

  • Node.js (v18 or higher) - ripgrep (rg) - usually pre-installed on macOS/Linux - Bun (for package management)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
hacktricks_quick_lookup⚡ **One-shot exploitation lookup**. Searches, finds best page, and returns exploitation sections + code blocks in one call.
search_hacktricksSearch through HackTricks documentation. **Returns results GROUPED BY FILE** with match count, page title, and relevant section headers.
get_hacktricks_outlineGet the **table of contents** of a page (all section headers). Use this BEFORE reading full pages to understand structure.
get_hacktricks_sectionExtract a **specific section** from a page by header name. Much more efficient than reading the full page.
get_hacktricks_cheatsheetExtract **only code blocks** from a page. Perfect when you just need commands, payloads, or examples.
get_hacktricks_page
list_hacktricks_categories

How to install the HackTricks MCP Server

claude mcp add hacktricks -- npx -y hacktricks-mcp-server

Configuration

  • Node.js (v18 or higher) - ripgrep (rg) - usually pre-installed on macOS/Linux - Bun (for package management)

Example prompts to try

  • “Use HackTricks to Installation.”
  • “Use HackTricks to hacktricks quick lookup.”
  • “Use HackTricks to search hacktricks.”

Frequently asked questions

Search and query HackTricks pentesting documentation with quick lookup and section extraction Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.