Hacktricks MCP logo

Hacktricks MCP

Searches HackTricks offline and retrieves security guidance, page sections, code blocks, and cloud-permission escalation details.

Install Hacktricks MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "hacktricks-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@zebbern/hacktricks-mcp@latest"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio hacktricks-mcp -- npx -y @zebbern/hacktricks-mcp@latest

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

hacktricks-mcp connects MCP clients to offline, full-text indexes of the HackTricks and HackTricks Cloud security wikis. It provides ranked search, page and section retrieval, table-of-contents browsing, and cloud-permission analysis through read-only tools. The bundled SQLite FTS5 index works without network access and is refreshed from upstream every three days, with optional background updates while the server runs. Reach for it when an agent needs focused reference material on penetration testing, privilege escalation, cloud security, forensics, or related topics.

Use cases

  • Search for penetration-testing techniques and privilege-escalation guidance
  • Retrieve one section or only code blocks from a long HackTricks page
  • Browse HackTricks categories before selecting a page
  • Check cloud permissions for possible escalation paths
  • Research AWS, GCP, Azure, or Kubernetes security topics offline

Key features

  • Offline SQLite FTS5 full-text search
  • Ranked results with snippets and category filtering
  • Section-level, full-page, and code-only retrieval
  • HackTricks and HackTricks Cloud table-of-contents browsing
  • Cloud-permission risk and escalation analysis
  • Automatic three-day index synchronization

Tools3

What Hacktricks MCP lets your agent do. Expand a tool for its parameters.

Verified live~565 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 52d

What it can do

From the 3 tools this server returned when we ran it; 3 declare their own safety hints.

Handles credentials · 1Read-only tools · 3
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age46 days
Maintainers1

Observed 2026-11-17 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12h ago via OSV.dev · @zebbern/hacktricks-mcp@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
Last commit4d agoMost recent push to the default branch.
Tools exposed3Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Hacktricks MCP works

What hacktricks-mcp does

hacktricks-mcp exposes the HackTricks offensive-security wiki and HackTricks Cloud as read-only MCP resources. Its index covers subjects including network services, web vulnerabilities, Linux and Windows techniques, macOS hardening, Active Directory, mobile security, reverse engineering, forensics, Wi-Fi, AWS, GCP, Azure, Kubernetes, and CI/CD.

The package includes a prebuilt SQLite FTS5 database containing roughly 2,950 pages. Queries run against that local index, so the server does not need to clone either source repository or contact the network for normal searches. It also includes a tool for evaluating cloud permissions against HackTricks Cloud’s rated permission lists and escalation catalog.

How it works

hacktricks_search accepts a plain-language question or focused technical terms and returns ranked pages with snippets. It supports common security abbreviations and can filter results by category. Search results provide the page path needed for follow-up retrieval.

hacktricks_get_page reads a page identified by its path. It can return the outline and page content, a named section, or only code blocks and payloads. Section and code-only retrieval help keep long reference pages focused. hacktricks_get_toc exposes the wiki hierarchy, either as a top-level map or as the pages beneath a matching category.

hacktricks_cloud_permissions checks AWS, GCP, Azure, and Kubernetes permissions against the cloud catalog. It reports the permission’s danger rating, escalation techniques it may enable, and the relevant explanatory section.

An automated process synchronizes the bundled index with upstream every three days and publishes the updated package. A running process can check for a newer index in the background and switch to it; if the update fails, it continues using the bundled database. Setting offline mode disables those network checks.

Setup and configuration

The server requires Node.js 22.13 or newer and uses Node’s built-in node:sqlite, avoiding native dependencies. A standard stdio configuration can launch it with npx -y @zebbern/hacktricks-mcp@latest. Claude Code and Codex CLI have dedicated registration commands, while other MCP clients can add the same command and package in their MCP server configuration.

Optional environment variables control runtime behavior:

  • HACKTRICKS_OFFLINE=1 prevents network access and background index checks.
  • HACKTRICKS_INDEX_URL changes the base URL used to download newer indexes.
  • HACKTRICKS_CACHE_DIR selects the directory for downloaded indexes.
  • HACKTRICKS_DB serves a database at a specified path and disables the background check.

The repository also packages an agent skill and researcher subagent for supported plugin workflows. Codex plugin setups require copying the researcher definition separately.

Limitations and notes

All tools are read-only. The server searches and displays material from HackTricks; it does not execute commands, payloads, or other content found in the wiki. Queries are parameterized and user input is escaped before database query construction.

The indexed material is offensive-security reference content. Use it only when authorized to test the relevant systems. Content is attributed to HackTricks, Carlos Polop, and contributors, while the server code and derived index data are distributed under MIT terms.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Hacktricks MCP

hacktricks-mcp is an MCP server that connects AI agents to offline indexes of the HackTricks and HackTricks Cloud security wikis. Its main tools search the books, retrieve pages or sections, browse the table of contents, and evaluate cloud permissions against documented escalation techniques.

Install it by registering `npx -y @zebbern/hacktricks-mcp@latest` as an MCP server command. Claude Code and Codex CLI provide dedicated `mcp add` commands, while other clients can use the equivalent stdio configuration.

Yes, normal searches and page retrieval work from the bundled SQLite index without network access. Set `HACKTRICKS_OFFLINE=1` to prevent background checks for newer indexes; the server continues using its local database.

Use `hacktricks_get_page` with the page path returned by `hacktricks_search`. Supply `section` to request a heading-specific section, or set `codeOnly=true` to return only commands and payloads.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewHacktricks MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/hacktricks-mcp?style=directory)](https://allmcps.com/mcp/hacktricks-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/hacktricks-mcp"><img src="https://allmcps.com/api/badge/hacktricks-mcp?style=directory" alt="Hacktricks MCP on AllMCPs" /></a>