# hacktricks-mcp [Health: Active]

**Category:** 🔒 Security  
**Repository:** https://github.com/zebbern/hacktricks-mcp  
**GitHub Stars:** 4  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/hacktricks-mcp

## Description
Offline full-text search over the HackTricks security wiki, synced every 3 days.

## Tools
Capabilities this server exposes over MCP:

- **hacktricks_search** — Full-text search over the HackTricks offensive-security wiki (pentesting techniques, privilege escalation, web vulns, AD attacks, cloud, forensics). Returns ranked pages with snippets. Use specific technical terms (e.g. 'kerberoast', 'SUID', 'JWT algorithm confusion') for best results. Follow up with hacktricks_get_page on a result's path to read the content.
- **hacktricks_get_page** — Retrieve content of a HackTricks page found via hacktricks_search. By default returns the page outline plus content (truncated if very long). Use section= to read one section by heading name, or codeOnly=true to get just the commands/payloads. This is the token-efficient way to consume long pages.
- **hacktricks_get_toc** — Get the HackTricks wiki structure: categories and page tree. Call without arguments for the top-level overview, or pass a category to see its pages. Useful to understand where a topic lives before searching.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "hacktricks-mcp": {
    "command": "npx",
    "args": ["-y","@zebbern/hacktricks-mcp@latest"]
  }
}
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/hacktricks-mcp/readme_

