oscp-companion
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., "@oscp-companionsearch methodology for SMB enumeration"
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.
OSCP Companion
Structured pentesting methodology knowledge base with a web UI and MCP server for AI agents.
Educational / authorized testing only. Use only on systems you own or have explicit permission to test.
Architecture
Content: Markdown + YAML frontmatter in
content/Build:
scripts/ingest.tscompiles content →public/kb.jsonwith Zod validation and secret scanningEngine: In-memory MiniSearch index with synonym expansion (no vector DB, no RAG)
Web UI: Next.js search + faceted filters + entry detail pages
MCP: 7 read-only tools via HTTP (
/api/mcp) and local stdio
content/*.md → ingest → public/kb.json → MethodologyEngine
├─ Web UI
└─ MCP serverRelated MCP server: MITRE ATT&CK MCP Server
Quick start
npm install
npm run ingest # compile knowledge base
npm run dev # http://localhost:3000
npm test # verify sample queriesMCP tools
Tool | Purpose |
| Keyword search with optional phase/os/type filters |
| Port/service playbook (e.g. |
| AD attack paths for a BloodHound primitive (e.g. |
| Ordered checklist steps for a phase + OS |
| Commands and notes for a pentest tool |
| Look up entries by technique name |
| Discover valid phases, OS, types, services, primitives, etc. |
Local MCP (Cursor / Claude Desktop)
{
"mcpServers": {
"oscp-companion": {
"command": "npx",
"args": ["tsx", "mcp/stdio.ts"],
"cwd": "/path/to/oscp-companion"
}
}
}Run npm run ingest before starting the MCP server so public/kb.json exists.
Remote MCP (after deploy)
Point your MCP client at:
https://your-app.vercel.app/api/mcpAdding content
Add a Markdown file under
content/with YAML frontmatter matching the schema inlib/kb/schema.ts.Use placeholders:
<IP>,<USER>,<PASS>,<DOMAIN>— never commit real creds or lab secrets.Run
npm run ingest. The secret scanner fails the build if AWS keys, NTLM hashes, or HTB-style IPs slip through.
Raw unsanitized notes belong in data/raw/ (gitignored).
Deploy (Vercel free tier)
npm run build # runs ingest + next buildConnect the repo to Vercel. No database or env vars required for the default setup.
Why no RAG?
The corpus is small and keyed by ports, AD primitives, phases, and tool names. Keyword search + facets + synonyms is faster, free, and more precise for queries like “port 445” or “GenericWrite”. The calling LLM provides reasoning; this server provides structured retrieval.
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/Muqaram0/oscp-companion'
If you have feedback or need assistance with the MCP directory API, please join our Discord server