hacktricks-mcp
MCP server by zebbern Community
Gives AI agents offline full-text search and section-level retrieval over the HackTricks security wiki. It uses a pre-built SQLite FTS5 index that is re-synced with upstream every 3 days.
Install hacktricks-mcp
Built from the published package, never by AI.
claude mcp add hacktricks-mcp -- npx -y @zebbern/hacktricks-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"hacktricks-mcp": {
"args": [
"-y",
"@zebbern/hacktricks-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"hacktricks-mcp": {
"args": [
"-y",
"@zebbern/hacktricks-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"hacktricks-mcp": {
"args": [
"-y",
"@zebbern/hacktricks-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add hacktricks-mcp -- npx -y @zebbern/hacktricks-mcp{
"mcpServers": {
"hacktricks-mcp": {
"args": [
"-y",
"@zebbern/hacktricks-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add hacktricks-mcp npx -y @zebbern/hacktricks-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the hacktricks-mcp block.
About
hacktricks-mcp is an MCP server that gives AI agents offline full-text search and section-level retrieval over the HackTricks offensive-security wiki. It ships a pre-built SQLite FTS5 search index of over 1,000 pages inside the package, so queries need no install-time clone, no ripgrep and no network access.
A GitHub Action re-syncs the index with upstream every 3 days and commits it back to the repo. The server requires Node.js 22.13 or newer and uses the built-in node:sqlite module. It provides search, page retrieval and a category table of contents. It is aimed at security practitioners who want their AI assistant to consult HackTricks, and the source asks users to use it only on systems they are authorized to test.
Written from the project's README and checked against it.
Tools it gives your assistant
hacktricks_searchRanked full-text search with snippets, category filter and abbreviation handling.hacktricks_get_pageReads a page, a single section, or just its code blocks.hacktricks_get_tocReturns the wiki category tree so agents can see where topics live.
What you need
- Node.js 22.13 or newer
Try asking
- Search HackTricks for kerberoast and give me the attack commands
- Show me the SSRF section of the pentesting-web pages
- How do I escalate privileges from the lxd group?
Good to know
- All tools are strictly read-only.
- The index is synced every 3 days, so it may lag behind upstream.
- HackTricks content is offensive-security material meant for authorized testing only.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to hacktricks-mcp
All alternatives →Agentmesh MCP Proxy is a security proxy for MCP servers, described by its publisher as a firewall for the Model Context Protocol. It is aimed at teams that run AI agents which call tools and other agents.
Hardens client-side artifacts such as binaries, Electron apps, JS bundles, Python and WebAssembly against AI reverse-engineering agents. Built for developers who ship proprietary logic to user-controlled devices.
Bla Agents is an MCP server and CLI that adds seeded, format-specific decoys to shipped binaries, JavaScript, WebAssembly and other artifacts. It is for developers who ship proprietary logic to user-controlled devices and want to make AI reverse-engineering slower.
A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner
Agent Governance Toolkit adds policy enforcement, identity, sandboxing and audit logging to autonomous AI agents. It is aimed at teams shipping agents to production. The source does not confirm the Claude Desktop MCP server named in the listing.
Convex MCP Gateway is a Convex component that exposes selected Convex functions as MCP tools. It checks each call with your own authorize callback and writes an audit log. It is for developers who run Convex apps and want AI assistants to call parts of them.
Compare with Agentmesh MCP Proxy, Bla or Bla Agents
hacktricks-mcp: common questions
Does hacktricks-mcp need internet access when I run a query?
No. The source says the server ships a pre-built index and makes no network access at query time.
Can hacktricks-mcp change anything in the wiki or my system?
No. The source states that all tools are strictly read-only and that the server executes nothing from the wiki.
How current is the HackTricks content in the index?
A GitHub Action re-syncs the index with the upstream HackTricks repository every 3 days and commits it back to the project.
How do I install hacktricks-mcp?
In Claude Code run claude mcp add hacktricks-mcp -- npx -y @zebbern/hacktricks-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is hacktricks-mcp the official server?
hacktricks-mcp is a community project by zebbern, not verified by a company domain.
Is hacktricks-mcp free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is hacktricks-mcp safe to use?
It scores 81 of 100. Grades: maintenance A, licence F, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to hacktricks-mcp?
Similar MCP servers: Agentmesh MCP Proxy, Bla, Bla Agents, MCP Auth.
Does hacktricks-mcp work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
