Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Search and query HackTricks pentesting documentation with quick lookup and section extraction
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"hacktricks": {
"command": "npx",
"args": [
"-y",
"hacktricks-mcp-server"
]
}
}
}在终端中运行这条命令
claude mcp add hacktricks -- npx -y hacktricks-mcp-server粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"hacktricks": {
"command": "npx",
"args": [
"-y",
"hacktricks-mcp-server"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"hacktricks": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"hacktricks-mcp-server"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 Xplo8E 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.3.4)于10个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
MCP (Model Context Protocol) server for searching and querying HackTricks pentesting documentation directly from Claude.
npm install -g hacktricks-mcp-server
The postinstall script automatically clones the HackTricks repository (~2 minutes on first install).
Add to your Claude settings (~/.claude/settings.json):
{
"mcpServers": { "hacktricks": { "command": "npx", "args": ["hacktricks-mcp-server"] } } }
Restart Claude Desktop and try: *"Search HackTricks for SQL injection"*
git clone https://github.com/Xplo8E/hacktricks-mcp-server.git
cd hacktricks-mcp-server git submodule update --init --recursive npm install npm run build
Configuration for source install:
{
"mcpServers": { "hacktricks": { "command": "node", "args": ["/absolute/path/to/hacktricks-mcp-server/dist/index.js"] } } }
Once configured in Claude Desktop, you can ask:
The server provides 7 specialized tools for efficient HackTricks searching.
hacktricks_quick_lookup⚡ One-shot exploitation lookup. Searches, finds best page, and returns exploitation sections + code blocks in one call.
Parameters:
topic (string, required): Attack/technique to look up (e.g., 'SUID', 'sqli', 'xss', 'docker escape')category (string, optional): Category filter for faster resultsSupported aliases: sqli, xss, rce, lfi, rfi, ssrf, csrf, xxe, ssti, idor, jwt, suid, privesc
Example:
hacktricks_quick_lookup("SSRF", category="pentesting-web")
Benefits: Reduces 3+ tool calls to 1 for "how do I exploit X" questions.
search_hacktricksSearch through HackTricks documentation. Returns results GROUPED BY FILE with match count, page title, and relevant section headers.
Parameters:
query (string, required): Search term or regex patterncategory (string, optional): Filter to specific category (e.g., 'pentesting-web')limit (number, optional): Max grouped results (default: 20)Example output:
Found matches in 5 files for: "SUID"
────────────────────────────────────────────────────────────
📄 Linux Privilege Escalation Path: src/linux-hardening/privilege-escalation/README.md Matches: 12 Sections: SUID Binaries | Finding SUID | GTFOBins Preview: L45: Find files with SUID bit set... L78: Common SUID exploitation techniques...
────────────────────────────────────────────────────────────
get_hacktricks_outlineGet the table of contents of a page (all section headers). Use this BEFORE reading full pages to understand structure.
Parameters:
path (string): Relative path to markdown fileExample output:
# Linux Privilege Escalation
Benefits: See page structure in ~20 lines vs reading 500+ lines.
get_hacktricks_sectionExtract a specific section from a page by header name. Much more efficient than reading the full page.
Parameters:
path (string): Relative path to markdown filesection (string): Section header to extract (partial match, case-insensitive)Example:
get_hacktricks_section("src/linux-hardening/privilege-escalation/README.md", "SUID")
Benefits: Read just "SUID Binaries" section (~200 tokens) instead of entire page (~3000 tokens).
get_hacktricks_cheatsheetExtract only code blocks from a page. Perfect when you just need commands, payloads, or examples.
Parameters:
path (string): Relative path to markdown fileExample output:
find / -perm -4000 2>/dev/null
./vulnerable_suid -p
Benefits: Skip explanatory text when you just need "give me the command".
get_hacktricks_pageGet full content of a HackTricks page.
Parameters:
path (string): Relative path to markdown fileWarning: Pages can be very long (3000+ tokens). Consider using get_hacktricks_outline + get_hacktricks_section instead.
list_hacktricks_categoriesList categories and their contents.
Parameters:
category (string, optional): Category to expandWithout category: Lists top-level categories With category: Shows full directory tree with file paths
For optimal token usage, Claude should:
Before (inefficient):
search_hacktricks("SUID") → 50 raw lines
get_page(file1) → 3000 tokens get_page(file2) → 2500 tokens Total: ~5500 tokens, 3 calls
After (efficient):
search_hacktricks("SUID", category="linux-hardening") → Grouped results
get_outline(best_match) → 20 lines get_section(best_match, "SUID") → 200 tokens Total: ~400 tokens, 3 calls
rg) - usually pre-installed on macOS/LinuxWatch mode:
bun run dev
Test locally:
bun run start
Contributions are welcome! If you'd like to improve the server:
git checkout -b feature/improvement)Please ensure your PR includes tests for new features and maintains the existing code style.
MIT