@zebbern/hacktricks-mcp 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,28 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 zebbern
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ NOTE: The HackTricks wiki content indexed by this software belongs to its
26
+ authors (HackTricks / Carlos Polop and contributors) and is subject to the
27
+ HackTricks license and values: https://github.com/HackTricks-wiki/hacktricks
28
+ This repository contains only derived search-index data plus the server code.
package/README.md ADDED
@@ -0,0 +1,56 @@
1
+ # hacktricks-mcp
2
+
3
+ MCP server that gives AI agents fast, offline full-text search and section-level retrieval over the [HackTricks](https://github.com/HackTricks-wiki/hacktricks) offensive-security wiki.
4
+
5
+ Unlike grep-based alternatives, this server ships with a **pre-built SQLite FTS5 search index** (1,000+ pages) inside the package. No install-time clone, no ripgrep dependency, no network access at query time. A GitHub Action re-syncs the index with upstream **every 3 days** and commits it back to this repo.
6
+
7
+ ## Quick start
8
+
9
+ Requirements: Node.js 22.13 or newer (uses the built-in `node:sqlite`, zero native dependencies).
10
+
11
+ Add to your MCP client config (Claude Desktop, Cursor, Kimi, etc.):
12
+
13
+ ```json
14
+ {
15
+ "mcpServers": {
16
+ "hacktricks": {
17
+ "command": "npx",
18
+ "args": ["-y", "@zebbern/hacktricks-mcp"]
19
+ }
20
+ }
21
+ }
22
+ ```
23
+
24
+ Then ask things like:
25
+
26
+ - *"Search HackTricks for kerberoast and give me the attack commands"*
27
+ - *"How do I escalate privileges from the lxd group?"*
28
+ - *"Show me the SSRF section of the pentesting-web pages"*
29
+
30
+ ## Tools at a glance
31
+
32
+ | Tool | What it does |
33
+ |---|---|
34
+ | `hacktricks_search` | Ranked full-text search with snippets, category filter and abbreviation handling (`privesc`, `sqli`, `rce`, ...) |
35
+ | `hacktricks_get_page` | Read a page, a single section, or just its code blocks |
36
+ | `hacktricks_get_toc` | The wiki category tree, so agents can see where topics live |
37
+
38
+ All tools are strictly read-only. Full reference: [docs/tools.md](docs/tools.md).
39
+
40
+ ## Documentation
41
+
42
+ - [docs/tools.md](docs/tools.md): complete tool reference with parameters and examples
43
+ - [docs/architecture.md](docs/architecture.md): how the index and the 3-day sync work
44
+ - [docs/development.md](docs/development.md): local setup, tests, releasing
45
+ - [docs/agents.md](docs/agents.md): agent skill, MCP registry and plugin packaging
46
+
47
+ ## Security and legal
48
+
49
+ - The server executes nothing from the wiki; it is a read-only search interface. All queries are parameterized, and user input is escaped before query construction.
50
+ - HackTricks content is offensive-security reference material. Use it only on systems you are authorized to test.
51
+ - Content belongs to HackTricks / Carlos Polop and contributors; this repo contains derived index data plus original server code (MIT).
52
+
53
+ ## Credits
54
+
55
+ - [HackTricks](https://github.com/HackTricks-wiki/hacktricks) by Carlos Polop and contributors
56
+ - [Model Context Protocol SDK](https://github.com/modelcontextprotocol/typescript-sdk)
Binary file
package/data/meta.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "upstreamSha": "8f9098a808777b3c4ab99433deb61d0f925fdf3e",
3
+ "syncedAt": "2026-10-01T16:08:55.145Z",
4
+ "pageCount": 1068,
5
+ "dbBytes": 23695360
6
+ }