Super RAG MCP Server
Integrates with Hermes agent to perform automated reconnaissance, exploitation chaining, and report generation using a local knowledge base.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Super RAG MCP ServerHow do I exploit Apache 2.4.49?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ก๏ธ Super RAG
An offline, agentic AI for penetration testing โ your private cybersecurity brain.
Ask pentest questions, run reconnaissance, and exploit-chain over 61,000+ chunks of curated security knowledge โ entirely on your own machine. No cloud. No telemetry. No data leaves your box.
๐ก Why Super RAG?
Enterprise security copilots (Microsoft Security Copilot, CrowdStrike Charlotte) live in the cloud, cost a fortune, and are built for defenders. Super RAG flips that:
๐ Fully offline โ runs against a local LLM in LM Studio. Perfect for air-gapped labs, sensitive engagements, and regions with restricted cloud access.
โ๏ธ Built for offensive reasoning โ not just "summarize this alert," but "I see Apache 2.4.49 โ what's my next move?" and it chains recon โ vuln-ID โ exploitation.
๐ Grounded in real knowledge โ indexes 1,110 hand-curated notes plus HackTricks, PayloadsAllTheThings, the OWASP cheat sheets, and hundreds of CTF write-ups. Every answer is cited back to its source file.
๐งฉ Plugs into your agents โ exposed as an MCP server, so Hermes, OpenClaw, Claude Desktop, or any MCP client gains a
cybersec_searchtool instantly.
โ ๏ธ For authorized use only. This is a tool for pentesters, CTF players, and security researchers operating with explicit written permission. See Responsible Use.
Related MCP server: Security Context MCP Server
โจ Features
๐ 13-strategy hybrid retrieval | Dense vectors + full-text BM25, fused with RRF, then multi-hop, corrective, context-aware and re-ranking passes โ tuned per pentest phase. |
๐ค Agentic pentest loop |
|
๐ฏ Evasion awareness | Built-in honeypot, WAF (8 vendors), and firewall detection โ so the agent doesn't waste moves on a tarpit. |
๐ก๏ธ Hallucination guard | A command registry validates every tool invocation against known-good flags before anything runs. |
๐ Report generation | One command turns findings into a professional pentest report or a HackerOne-style bug-bounty submission, with CVSS and evidence. |
๐ MCP integration | One shared server, many agents โ |
๐ Fine-tune ready | Extracts real HTB/VulnHub write-up reasoning into JSONL (never fabricated scenarios). |
๐๏ธ Architecture
flowchart LR
subgraph Knowledge["๐ Knowledge (61,552 chunks)"]
V["1,110 curated notes"]
D["HackTricks ยท PayloadsAllTheThings ยท OWASP"]
W["CTF / HTB write-ups"]
end
subgraph Engine["๐ง Super RAG"]
I["ingest.py<br/>chunk + embed (parallel)"]
Q[("Qdrant<br/>hybrid index")]
R["rag_engine.py<br/>13 RAG strategies"]
end
subgraph Local["๐ป LM Studio (localhost:1234)"]
E["nomic-embed-text"]
L["gpt-oss-20b"]
end
A["agent.py<br/>pentest loop"]
M["rag_mcp.py<br/>MCP server :8765"]
V & D & W --> I --> Q
I -.embeddings.-> E
Q --> R --> L
R --> A
R --> M
M --> Hermes & OpenClaw & Claude["Claude Desktop"]Three tiers, depth over scale: embedded Qdrant (no Docker) for hybrid search โ 13 combined RAG strategies for context assembly โ a local LLM for generation.
๐ฌ The 13 RAG strategies (combined on every query)
Most projects use #1 and wonder why retrieval is mediocre. Super RAG layers 13, each earning its place in a pentest workflow:
# | Strategy | What it buys you |
4 | Hybrid (vector + BM25, RRF-fused) | Semantic recall and exact-string recall for |
17 | Multi-Hop | Port 389 โ LDAP enum โ user list โ AS-REP roast โ hash โ crack, each hop informed by the last |
9 | Agentic | The agent decides when and what to retrieve mid-engagement |
6 | Memory-Augmented | Remembers what was tried hours ago, so it never re-runs a dead path |
3 | Corrective | Detects weak retrieval and re-queries with reformulated terms |
8 | Context-Aware | Filters to the target environment (Windows/AD vs web vs cloud) |
18 | Reasoning re-rank | Keyword-overlap boost so the most useful chunk floats up, not just the most similar |
13 | Adaptive | Broad scope during recon, narrow and precise during exploitation |
21 | Hierarchical | General โ specific drill-down, mirroring the ATT&CK structure |
5 | Speculative | Pre-fetches likely follow-ups in the background to cut latency |
11 | Self-RAG | Builds on its own prior answers across a session |
24 | Few-Shot | Pulls a real write-up where someone exploited the same service/version |
14 | Citation-Aware | Every fact carries its source path โ essential for bug-bounty reports |
๐ Model benchmark (16 local models, real pentest scenario)
We benchmarked every model in LM Studio on a 2-turn pentest tool-use scenario (recon โ exploit chain), measuring speed, accuracy, and valid tool-loops โ ejecting each model between runs for clean numbers.
Rank | Model | tok/s | Tool-loops | Verdict |
๐ฅ | openai/gpt-oss-20b | 165 | 2/2 โ | Only model fast, accurate and emitting clean tool calls. 12 GB. |
๐ฅ | qwen3.6-35b reasoning-distilled | 139 | 2/2 โ | Correct chains, needs fence-stripping |
โ | gemma-4-26b / glm-4.7-flash | 156 / 125 | 0/2 โ | Fast & accurate, but think without emitting usable tool calls |
Key finding: raw "accuracy" is misleading for agents โ several high-scoring models produced empty output because they reasoned internally without ever emitting an actionable tool call. The metric that matters is valid tool-loops, and
gpt-oss-20bwins it. Reproduce withpython model_benchmark.py.
๐ Quick start
Prerequisites
LM Studio on
localhost:1234withnomic-embed-text-v1.5(embeddings) + a chat model loadedPython 3.10+ (tested on 3.14.5)
An RTX-class GPU recommended (built on an RTX 5090; the embedder + a 12 GB chat model fit in 24 GB VRAM)
# 1. Install (no torch, no Docker, no HuggingFace needed)
pip install -r requirements.txt
# 2. Point config.py โ VAULT_DIR at your knowledge folder, then index it
python main.py ingest # one-time; resumable; ~minutes with parallel embedding
# 3. Ask anything
python main.py query "how do I exploit Apache 2.4.49 path traversal"
python main.py query "AS-REP roasting โ what tool and command?"
# 4. Run the agentic pentest loop (hybrid: auto-recon, manual exploit approval)
python main.py pentest 10.10.10.5 --scope 10.10.10.0/24
# 5. Generate a report from the session findings
python main.py report
# 6. Health check
python main.py status๐ค Use it from your AI agents (MCP)
Super RAG runs as one shared MCP server (rag_mcp.py, HTTP @ 127.0.0.1:8765/mcp) so multiple agents can query it concurrently:
python rag_mcp.py # or let Startup\SuperRAG-MCP.cmd auto-start itTools exposed: cybersec_search(query, phase) ยท cybersec_answer(question) ยท cybersec_status()
Register it in any MCP client:
// Claude Desktop / OpenClaw style
"mcp": { "servers": { "cybersec-rag": {
"url": "http://127.0.0.1:8765/mcp", "transport": "streamable-http"
}}}# Hermes style (config.yaml)
mcp_servers:
cybersec-rag: { url: http://127.0.0.1:8765/mcp, enabled: true }See INTEGRATION.md for the full Hermes + OpenClaw walkthrough.
๐ฌ It works โ real agent output
Scenario: black-box target, nmap reveals
Apache httpd 2.4.49.
STEP 1 recon โ nmap -sS -A 10.10.10.5 โ correct first move (2.9s)
STEP 2 enumerate โ gobuster on :80 (Apache live) โ methodical (3.3s)
STEP 3 exploit โ curl --path-as-is "โฆ/cgi-bin/.%2e/โฆ/bin/bash" -d 'reverse shell'
โ textbook CVE-2021-41773 mod_cgi RCE (4.9s)
sources: htb-cpts/initial-access-exploitation.md, oswe/file-inclusion-upload.md, HackTricksThe model followed correct methodology, grounded each step in the vault, and produced a working exploit chain โ fully offline.
๐ Project layout
super-rag/
โโโ main.py # CLI: ingest ยท query ยท pentest ยท report ยท extract ยท status
โโโ config.py # paths, model IDs, chunking, timeouts, tool registry
โโโ ingest.py # vault โ chunks โ parallel embed โ Qdrant (~14ร faster pipeline)
โโโ rag_engine.py # the 13 RAG strategies + RRF fusion
โโโ agent.py # ReAct+Reflect pentest loop, scope + approval gates
โโโ detector.py # honeypot / WAF / firewall detection
โโโ memory.py # attack-surface graph, findings, stuck-loop tracking
โโโ report.py # pentest report + bug-bounty submission generators
โโโ llm.py # one streaming chat helper (works for every model)
โโโ rag_mcp.py # MCP server for agent integration
โโโ model_benchmark.py # the 16-model benchmark harness
โโโ extract_training.py # real write-ups โ fine-tuning JSONL
โโโ tools/ # registry + nmap/gobuster/ffuf parsers๐งฐ Tech stack
Python 3.14 ยท Qdrant (embedded) ยท LM Studio (OpenAI-compatible local API) ยท nomic-embed-text-v1.5 ยท gpt-oss-20b ยท MCP / FastMCP โ zero cloud dependencies.
๐ Responsible use
Authorized targets only. Super RAG does not enforce authorization โ that is your legal responsibility. Use it on systems you own or have explicit written permission to test (engagements, CTFs, labs).
Hybrid mode gates exploitation behind a manual
[y/N]approval. Don't bypass it.Indexed external repos are reference-only and untrusted โ never execute code pulled from them.
This project is for defensive learning, authorized testing, and CTF/education. Don't be a criminal.
๐ฃ๏ธ Roadmap
Qdrant server mode (Docker) for fully-concurrent multi-agent access
GRPO fine-tune of a 7โ14B specialist on extracted real write-ups
Web UI (the CLI works today)
Auto-scoping from engagement rules-of-engagement files
๐ค Contributing
Issues and PRs welcome โ new tool parsers, RAG strategies, and detector signatures especially. Keep it defensive, keep it cited.
๐ License
MIT โ see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/test-center-ai/super-rag'
If you have feedback or need assistance with the MCP directory API, please join our Discord server