HackTricks MCP Server
NPM · HACKTRICKS-MCP-SERVER · SCANNED SEP 20
Search and query HackTricks pentesting documentation with quick lookup and section extraction
Available components
How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →
Supply Chain Security92
- No malware found by supply-chain analysis.Pass
- No known CVEs affecting this package version or its production dependencies.Pass
- Runs a script at install time (postinstall) that we could not recognise. It may be perfectly ordinary, but we do not read the published tarball, so we cannot say what it does. View diagnostics → Partial
- 31 of 95 dependencies flagged as unhealthy. View diagnostics → Partial
Provenance & Transparency18
- Repository check failed: the declared repository URL redirects; it must resolve directly. See how to fix → View diagnostics → Fail
- Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
- Clear OSI-approved license (MIT).Pass
- Actively maintained (last published 266 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability79
- AI-judged instruction clarity (excellent).Pass
- Context-footprint check failed: tool/resource definitions use about 943 tokens (~134/item across 7 items; 7 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management90
- Stability observed for 27 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage100
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 100% of tool parameters carry a description.Pass
Tool Safety100
- No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
- We read all 7 captured tool definition(s), and no name or description among them implies an irreversible operation.Pass
- An AI judge read all 7 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
- Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
How do I install the HackTricks MCP Server server?
HackTricks MCP Server runs locally as an npm package, launched with npx -y hacktricks-mcp-server. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.
npm · hacktricks-mcp-server
claude mcp add xplo8e-hacktricks-mcp-server -- npx -y hacktricks-mcp-server
{
"mcpServers": {
"xplo8e-hacktricks-mcp-server": {
"command": "npx",
"args": [
"-y",
"hacktricks-mcp-server"
]
}
}
} {
"servers": {
"xplo8e-hacktricks-mcp-server": {
"command": "npx",
"args": [
"-y",
"hacktricks-mcp-server"
]
}
}
} codex mcp add xplo8e-hacktricks-mcp-server -- npx -y hacktricks-mcp-server
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"xplo8e-hacktricks-mcp-server": {
"type": "local",
"command": [
"npx",
"-y",
"hacktricks-mcp-server"
],
"enabled": true
}
}
} openclaw mcp add xplo8e-hacktricks-mcp-server --command npx --arg -y --arg hacktricks-mcp-server
mcp_servers:
xplo8e-hacktricks-mcp-server:
command: "npx"
args: ["-y", "hacktricks-mcp-server"] {
"McpServers": {
"xplo8e-hacktricks-mcp-server": {
"Transport": "stdio",
"Command": "npx",
"Arguments": [
"-y",
"hacktricks-mcp-server"
]
}
}
} assistant mcp add xplo8e-hacktricks-mcp-server -t stdio -c npx -a -y hacktricks-mcp-server
{
"mcpServers": {
"xplo8e-hacktricks-mcp-server": {
"command": "npx",
"args": [
"-y",
"hacktricks-mcp-server"
]
}
}
} Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 19 Sept 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 83 to 87. That category is still filling its 30-day observation window: 25 days of observed history at the previous scan, 26 at this one. The score rises as the window fills, whether or not the server changes.
- 17 Sept 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 77 to 80. That category is still filling its 30-day observation window: 23 days of observed history at the previous scan, 24 at this one. The score rises as the window fills, whether or not the server changes.
- 16 Sept 26 −3
- Stability: pass → 0.77 functional
- 15 Sept 26 0
- Stability: 0.97 → pass security
- 14 Sept 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 93 to 97. That category is still filling its 30-day observation window: 28 days of observed history at the previous scan, 29 at this one. The score rises as the window fills, whether or not the server changes.
- 11 Sept 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 83 to 87. That category is still filling its 30-day observation window: 25 days of observed history at the previous scan, 26 at this one. The score rises as the window fills, whether or not the server changes.
- 9 Sept 26 −2
- Stability: pass → 0.80 functional
- 8 Sept 26 0
- Stability: 0.97 → pass security
- Security disclosure: unverified → fail ▼ functional
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 20 Sept 2026 · Analysed npm/hacktricks-mcp-server@1.3.4
Provenance No attestation
The registry publishes no build provenance for this version, so there is nothing to verify.
| Result | No attestation |
|---|---|
| Ecosystem | npm |
Background: How many MCP packages publish verified provenance →
Install scripts 1 script
| Hook | Tier | Command |
|---|---|---|
| postinstall | unreviewed | node scripts/postinstall.js |
Background: Why install scripts are a supply-chain risk →
Dependencies 95 packages
| Packages resolved | 95 |
|---|---|
| Stale | 31 |
| Tree resolution | Complete |
Background: SBOMs and build attestations, explained →
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →
get_hacktricks_cheatsheet ~84
Extract ALL CODE BLOCKS from a page (commands, payloads, scripts, one-liners). Skips explanatory text. Perfect for: 'give me the exploit command', 'show me the payload', 'what's the syntax'. Returns code with language tags (bash, python, etc.).
| Name | Type | Req | Description |
|---|---|---|---|
| path | string | yes | Path from search results |
No output schema declared.
No examples provided.
get_hacktricks_outline ~91
Get TABLE OF CONTENTS (all section headers) of a page. Returns ~20-50 lines showing page structure. Use this FIRST after search to: (1) verify page is relevant, (2) find exact section names for get_hacktricks_section. Cost: ~100 tokens vs 3000+ for full page.
| Name | Type | Req | Description |
|---|---|---|---|
| path | string | yes | Path from search results |
No output schema declared.
No examples provided.
get_hacktricks_page ~101
Get FULL page content. ⚠️ EXPENSIVE: Pages average 3000-15000 tokens. PREFER: get_hacktricks_section for specific topics, get_hacktricks_cheatsheet for just commands. Only use this when you need the complete page or multiple sections.
| Name | Type | Req | Description |
|---|---|---|---|
| path | string | yes | Path from search results (e.g., 'src/linux-hardening/privilege-escalation/README.md') |
No output schema declared.
No examples provided.
get_hacktricks_section ~147
Extract ONE SECTION from a page. MOST EFFICIENT way to read content. Typical sections: 'Exploitation', 'Enumeration', 'Prevention', 'Example', 'Payload', 'PoC', 'Bypass'. Use get_hacktricks_outline first to see exact section names. Returns ~200-500 tokens vs 3000+ for full page.
| Name | Type | Req | Description |
|---|---|---|---|
| path | string | yes | Path from search results |
| section | string | yes | Section name (partial match, case-insensitive). From outline or common: 'exploitation', 'enumeration', 'bypass', 'payload', 'example', 'poc', 'prevention', 'detection' |
No output schema declared.
No examples provided.
hacktricks_quick_lookup ~185
⚡ ONE-SHOT exploitation lookup. Searches, finds best page, and returns exploitation sections + code blocks. Use for: 'how do I exploit X', 'give me X payload', 'X attack technique'. Handles aliases (sqli→SQL injection, xss→Cross-site scripting, rce, lfi, ssrf, etc.). Returns: page title, exploitation sections, and top 5 code blocks.
| Name | Type | Req | Description |
|---|---|---|---|
| category | string | – | Optional category filter. Speeds up search. Common: 'pentesting-web', 'linux-hardening', 'windows-hardening', 'network-services-pentesting' |
| topic | string | yes | Attack/technique to look up. Examples: 'SUID', 'sqli', 'xss', 'ssrf', 'jwt', 'docker escape', 'kerberoasting'. Aliases auto-expand. |
No output schema declared.
No examples provided.
list_hacktricks_categories ~104
Browse HackTricks structure. Without params: list all categories. With category: show all pages in that category. Use when: (1) unsure which category to search, (2) want to explore what's available, (3) need exact file paths.
| Name | Type | Req | Description |
|---|---|---|---|
| category | string | – | Category to explore. Popular: 'pentesting-web', 'linux-hardening', 'windows-hardening', 'network-services-pentesting', 'mobile-pentesting' |
No output schema declared.
No examples provided.
search_hacktricks ~231
Search HackTricks for pentesting techniques, exploits, and security info. Returns results GROUPED BY FILE with: page title, match count, relevant sections, and top matches. WORKFLOW: search → get_hacktricks_outline (see structure) → get_hacktricks_section (read specific part). ALWAYS use category filter when possible - saves time and tokens.
| Name | Type | Req | Description |
|---|---|---|---|
| category | string | – | STRONGLY RECOMMENDED. Common categories: 'pentesting-web' (XSS,SQLi,SSRF), 'linux-hardening' (privesc,capabilities), 'network-services-pentesting' (SMB,FTP,SSH), 'windows-hardening', 'mobile-pentesti… |
| limit | number | – | Max files to return (default: 20). Lower = faster. Set to 5 for quick lookups. |
| query | string | yes | Search term. Be specific (e.g., 'SUID privilege escalation' not just 'privilege'). Supports regex. |
No output schema declared.
No examples provided.
What is the HackTricks MCP Server server?
HackTricks MCP Server is listed in the public MCP registry as io.github.Xplo8E/hacktricks-mcp-server. Search and query HackTricks pentesting documentation with quick lookup and section extraction. This page covers its npm package (hacktricks-mcp-server).
Is the HackTricks MCP Server server safe to use?
HackTricks MCP Server scores 76 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 20 September 2026. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.
What tools does the HackTricks MCP Server server expose?
HackTricks MCP Server exposes 7 tools: search_hacktricks, get_hacktricks_page, get_hacktricks_outline, get_hacktricks_section, get_hacktricks_cheatsheet, and 2 more. Their descriptions and schemas cost roughly 943 tokens of context every time the server is loaded.
Is the HackTricks MCP Server server still maintained?
HackTricks MCP Server is still listed as active in the MCP registry. We last reached this channel on 20 September 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.
What licence is the HackTricks MCP Server server under?
HackTricks MCP Server declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.