OWASP Pentest Guide Knowledge Base
This is a read-only knowledge retrieval server for OWASP security testing guides (WSTG, MASTG, ISTG, AITG), enabling AI agents and IDEs to query test cases with full provenance on every result. It does not execute scanning/exploitation tools or mutate data.
guide_search: Search across guides by query using exact, full-text, semantic, or hybrid modes — filterable by guide, version, platform, and category.guide_get_test: Fetch a single test case by versioned ID (e.g.WSTG-v42-ATHN-01), canonical ID, alias, or slug, optionally including relationships and full content.guide_list_tests: List test cases in a specific guide/version with optional category filter and cursor-based pagination.guide_browse_category: List all test cases within a specific guide, version, and category combination.guide_get_related_tests: Traverse curated relationships from a test case, with configurable depth and optional inclusion of LLM-inferred edges.guide_compare_versions: Diff a test case's title, objectives, sections, and source metadata across two compiled guide versions.guide_find_by_feature: Find test cases matching feature keywords (e.g.oauth,webview) with OR semantics.guide_recommend_candidates: Generate unverified candidate tests for a target system profile (components + features) — not a completed pentest plan.guide_get_source_excerpt: Fetch raw text for a specific section (summary, how_to_test, remediation, etc.) of a test case with full provenance.guide_validate_reference: Verify a test ID/version exists and optionally confirm a cached content hash still matches, ensuring citation integrity.guide_explain_relationship: Inspect a relationship edge between two tests, including type, rationale, confidence, review status, and provenance.
Every result includes full provenance (repository, commit, path, content hash, license) traceable to the exact upstream source, and all versioned IDs are explicit — ambiguous latest identifiers are rejected.
Provides read-only access to OWASP testing guides (WSTG, MASTG, ISTG, AITG), enabling precise lookup, natural-language search, and browsing of test procedures with full provenance.
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., "@OWASP Pentest Guide Knowledge Basefind WSTG tests for SQL injection"
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.
pentest-guide-kb
A read-only, versioned knowledge base for OWASP testing guides, served over the Model Context Protocol (MCP) so AI agents and IDEs can query them precisely instead of relying on training-data memory.
This project is not an official OWASP project and is not endorsed by OWASP. It compiles and re-serves content from independent OWASP testing guides under their own licenses -- see Licensing. No content from this project's retrieval or recommendation logic is official OWASP guidance; always cite the guide name, version, and source commit a result traces back to.
What it does
Precise lookup of a specific OWASP test by id (versioned or canonical).
Natural-language search across test procedures (full-text + semantic).
Browsing a guide by version, category, platform, or feature keyword.
Cross-guide relationship traversal, with provenance on every edge.
Version comparison for a test across two compiled guide releases.
Candidate-test generation for a target profile -- explicitly labeled unverified candidates, never a completed test plan.
Every result carries full provenance (repository, commit, path, content hash, license), so a citation always traces back to the exact upstream source.
It is a knowledge retrieval service, not an offensive security execution
platform. It does not — and will not — execute scanning/exploitation tools,
expose a shell, reach a caller-specified target, act as an autonomous pentest
agent, or mutate data over MCP (source sync and ingestion are offline CLI-only
steps). See SECURITY.md for the full threat model.
Related MCP server: ONLI MCP Service
Architecture
Official OWASP Git Repositories (wstg, mastg, owasp-istg, www-project-ai-testing-guide)
|
v
Source Mirror and Version Lock sources/sources.lock.yaml, sources/.cache/
|
v
Deterministic Guide Compilers src/pentest_guide_kb/ingestion/*
|
v
Canonical Registry (PostgreSQL) src/pentest_guide_kb/storage/*
|
+-- metadata + JSONB (test_cases, test_case_sections, ...)
+-- full-text search (tsvector + GIN)
+-- pgvector semantic search (embeddings)
+-- Generated Markdown Wiki src/pentest_guide_kb/wiki/*
+-- Optional Neo4j projection src/pentest_guide_kb/graph/* (--profile graph)
|
v
Read-only MCP Server src/pentest_guide_kb/mcp/*
|
v
AI Agents and IDE ClientsThe PostgreSQL registry is the single source of truth. The Wiki, the
vector index, and the Neo4j graph are derived views compiled from it --
none independently store content that could drift out of sync. See
docs/architecture.md and
docs/data-model.md.
Supported guides
Guide | Short name | Upstream repository | Pinned |
OWASP Web Security Testing Guide | WSTG |
| tag |
OWASP Mobile App Security Testing Guide | MASTG |
| tag |
OWASP IoT Security Testing Guide | ISTG |
| tag |
OWASP AI Testing Guide | AITG |
|
|
Exact pins live in sources/sources.lock.yaml (see
docs/versioning.md). latest is never a valid version
anywhere -- it's rejected by a validator.
Quickstart
Requires Python 3.12+, uv, and Docker.
uv sync --all-extras
cp .env.example .env # local-dev defaults, no real secrets
docker compose up -d postgres # PostgreSQL + pgvector
uv run alembic upgrade head # apply the schema
uv run pentest-guide source sync --guide wstg # fetch a pinned source
uv run pentest-guide ingest --all # compile into the registry
uv run pentest-guide index embeddings # build the semantic index
uv run pentest-guide query search "credentials over http" --mode hybrid
uv run pentest-guide mcp serve # stdio; --transport streamable-http for HTTPPrefer a container? Pull the prebuilt multi-arch image instead of building:
docker pull ghcr.io/sunick2009/mcp-owasp-pentesting-guide:latest -- full
run/serve and MCP-client wiring in docs/deployment.md.
Documentation
Topic | Doc |
Deploy & connect a client (Compose, GHCR image, MCP config) | |
Local dev loop (setup, sync, ingest, tests, adding a guide) | |
MCP API — 11 tools, 10 resource templates, 5 prompts | |
Architecture & the single-source-of-truth model | |
Data model & schema | |
Ingestion — per-guide parsers & determinism | |
Retrieval — classify → exact → FTS/vector → RRF → rerank | |
Versioning — canonical vs versioned ids, pinning | |
Licensing & attribution chain | |
Source pinning workflow | |
Security threat model | |
What's implemented vs. known limitations | |
Glossary |
Licensing
This project's own code: Apache-2.0 (
LICENSE).Each upstream guide's content: CC BY-SA 4.0, per
sources/licenses/-- carried through on every compiledTestCase.source.license.
This repository does not bulk-copy OWASP guide text: source sync + local
compilation + provenance reference is the model; committed fixtures under
tests/fixtures/ are short, attributed excerpts. See NOTICE and
docs/licensing.md for the full attribution chain.
Key file paths
What | Where |
Domain models |
|
Guide parsers |
|
Storage / repositories |
|
Retrieval pipeline |
|
MCP server |
|
CLI |
|
Wiki generator + Error Book |
|
Neo4j projection (optional) |
|
Source lock |
|
Curated relationships |
|
Agent Skill |
|
Tests |
|
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA minimal Model Context Protocol server that provides access to OWASP security cheat sheets through a simple HTTP API, enabling users to list, retrieve, and search security best practices.Last updated5GPL 3.0
- Flicense-qualityCmaintenanceMinimal MCP server exposing the Onli Knowledge Base, enabling retrieval of factual information about the Onli ecosystem via API requests.Last updated
- AlicenseAqualityBmaintenanceProvides a single-writer MCP server for a governance-grade knowledge base of markdown documents with version control and query capabilities.Last updated12918Apache 2.0
- AlicenseBqualityAmaintenanceRead-only MCP server for public Guild Wars 1 sources (wiki, builds, YouTube, Reddit) and optional local install inventory.Last updated141MIT
Related MCP Connectors
Read-only MCP server for the WebAssembly spec: instructions, types, sections, search, proposals.
MCP server for AgentDocs (agentdocs.eu): read, search, write, comment on & share Markdown docs.
MCP server for accessing curated awesome list documentation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/sunick2009/mcp-owasp-pentesting-guide'
If you have feedback or need assistance with the MCP directory API, please join our Discord server