Search and query HackTricks pentesting documentation with quick lookup and section extraction
HackTricks MCP server exists for a simple reason — assistants are far more useful when they can act on HackTricks directly instead of describing what you should do. Search and query HackTricks pentesting documentation with quick lookup and section extraction.
MCP (Model Context Protocol) server for searching and querying HackTricks pentesting documentation directly from Claude.
Installation goes through your MCP client rather than a global install: point it at hacktricks-mcp-server on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.
Once HackTricks is connected, these are the calls the assistant has available:
Installation — The postinstall script automatically clones the HackTricks repository (~2 minutes on first install)hacktricks_quick_lookup — ⚡ One-shot exploitation lookup. Searches, finds best page, and returns exploitation sections + code blocks in one callsearch_hacktricks — Search through HackTricks documentation. Returns results GROUPED BY FILE with match count, page title, and relevant section headersget_hacktricks_outline — Get the table of contents of a page (all section headers). Use this BEFORE reading full pages to understand structureget_hacktricks_section — Extract a specific section from a page by header name. Much more efficient than reading the full pageget_hacktricks_cheatsheet — Extract only code blocks from a page. Perfect when you just need commands, payloads, or examplesget_hacktricks_page — The get_hacktricks_page tool exposed by this serverlist_hacktricks_categories — The list_hacktricks_categories tool exposed by this serverrg) - usually pre-installed on macOS/Linux - Bun (for package management)Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. HackTricks's toolset — Installation, hacktricks_quick_lookup, search_hacktricks and 5 more — is a fair guide to whether it matches your workflow. It is maintained by Xplo8E; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| Installation | The postinstall script automatically clones the HackTricks repository (~2 minutes on first install). |
| hacktricks_quick_lookup | ⚡ **One-shot exploitation lookup**. Searches, finds best page, and returns exploitation sections + code blocks in one call. |
| search_hacktricks | Search through HackTricks documentation. **Returns results GROUPED BY FILE** with match count, page title, and relevant section headers. |
| get_hacktricks_outline | Get the **table of contents** of a page (all section headers). Use this BEFORE reading full pages to understand structure. |
| get_hacktricks_section | Extract a **specific section** from a page by header name. Much more efficient than reading the full page. |
| get_hacktricks_cheatsheet | Extract **only code blocks** from a page. Perfect when you just need commands, payloads, or examples. |
| get_hacktricks_page | The get_hacktricks_page tool exposed by this server. |
| list_hacktricks_categories | The list_hacktricks_categories tool exposed by this server. |
**Configuration for source install:**
```json
{
"mcpServers": {
"hacktricks": {
"command": "node",
"args": ["/absolute/path/to/hacktricks-mcp-server/dist/index.js"]
}
}
}Configuration as documented by the project. Restart the client after saving.
rg) - usually pre-installed on macOS/Linux - Bun (for package management)Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.