Logo vun MCPwner

MCPwner

Communautéit
nedlir

Model Context Protocol server for autonomous vulnerability discovery

Editeurnedlir
RepositoryMCPwner
SproochPython
Forks
8
Stären
55
Disponibel Tools
0
Transporttypstdio
Kategorien
LizenzApache-2.0
Linken
  • Tools mat KI-Workflows verbannen

    MCPwner stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    55 Stären an 8 Forks aus dem verlinkte Repository.

Docker MCP Python License

Compatible with:

Kiro Cursor Claude VS Code Windsurf


Table of Contents

Overview

MCPwner is an MCP server that gives your LLM agent a full offensive-security toolkit. It exposes 55+ containerized tools through a single MCP interface - SAST, SCA, secrets, IaC, reconnaissance, DAST, coverage-guided fuzzing, CodeQL (builtin and custom queries), a headless browser, an OOB callback server, a PoC-script sandbox with deterministic oracles, and a persistent findings ledger.

The architecture is designed for agent-driven vulnerability research: a single agent session - model-agnostic (Claude, Cursor, Kiro, Gemini, or any MCP-capable coding agent) - works through the research phases (recon, code audit, PoC validation, adversarial review), recording every step in the shared findings ledger. Each finding progresses from hypothesis through empirical proof to verified report - "no exploit, no report."

Note: This project is under active development. Learn more about MCPs here.

Workflow

MCPwner is the tool server; your LLM agent is the brain. A typical deep-research engagement:

PhaseWhat happensMCPwner tools used
WorkspaceClone target, detect stackcreate_workspace, detect_languages
DiscoverBroad scan for known patternsrun_sast_scan, run_sca_scan, run_secrets_scan, run_reconnaissance_chain, execute_query
TriageKill false positives, prove reachabilityindex_code_facts, query_code_facts, execute_query (custom CodeQL)
ResearchHunt novel bugs via diffs and variant analysisdiff_discovery, run_fuzzing_scan, custom CodeQL
ProveEmpirical validation with deterministic oraclesrun_poc_scan (sandbox), run_dast_scan, run_utilities_scan (chromium)
ReportOnly oracle-verified findings shipupsert_finding, generate_report

The ledger uses deep-merge upserts, so a later phase's review verdict never clobbers the earlier poc data (and vice-versa) - and it stays consistent if the agent's context is reset mid-engagement.

Integrated Tools

Reconnaissance

Static Application Security Testing (SAST)

Source Fuzzing

Secrets Scanning

Software Composition Analysis (SCA)

Infrastructure & IaC Security

Dynamic Application Security Testing (DAST)

Utilities

PoC Validation

PoC-Script Sandbox
Deterministic oracle runner

The PoC sandbox runs agent-authored Python/bash exploit scripts inside the target network and returns a deterministic oracle verdict (pass/fail based on exit code or explicit markers). This is how MCPwner proves logic bugs, IDOR/BOLA, race conditions, and access-control bypasses that off-the-shelf DAST cannot express.

Plugins

MCPwner supports an optional plugin system for domain-specific tooling. Plugins add Docker services, custom scanning rules, and report templates without modifying the core. MCPwner works with or without any plugins installed.

Available Plugins

PluginDescriptionServices Added
wp-scanWordPress security scanning — WP testing range with Xdebug, WPScan enumeration, PHPGGC deserialization chains, CMSeeK CMS detection, WP-aware semgrep/joern ruleswp-range, wp-db, wpscan-scanner, phpggc-service, cmseek-service

Enabling a Plugin

  1. Add the plugin name to .env:

    bash
    PLUGINS=wp-scan
    COMPOSE_PROFILES=sast,dast,...,wp-scan
  2. Use the compose wrapper to start services (auto-includes plugin compose files):

    bash
    ./scripts/compose.sh up -d --build

    Or use manual -f stacking:

    bash
    docker compose -f docker-compose.yaml -f plugins/wp-scan/docker-compose.yaml --profile wp-scan up -d

Plugin tools (e.g., wpscan, phpggc) register automatically via manifest.yaml and appear as MCP tools when their containers are healthy.

Writing a Plugin

A plugin is a directory under plugins/ with:

  • docker-compose.yaml — services (build contexts relative to project root for -f stacking)
  • manifest.yaml — tool registration (name, category, config path, default URL)
  • docker/ — Dockerfiles and service code
  • rules/ — custom SAST rules (optional)
  • templates/ — report templates (optional)
  • install.sh / uninstall.sh — setup scripts for external installations

Plugins can also live in a separate repository and be linked into plugins/ via symlink or install.sh.

Installation

Prerequisites

System Requirements:

  • Docker Engine 20.10+ and Docker Compose 2.0+
  • 8GB RAM minimum (16GB recommended for running multiple tools)
  • 20GB free disk space (security tool images are large)
  • Supported platforms: Linux, macOS, Windows (with WSL2)

MCP Client:

  • Claude Desktop, Cursor, Kiro, or any MCP-compatible client

Setup

  1. Clone the repository:

    bash
    git clone https://github.com/nedlir/mcpwner.git
    cd mcpwner
  2. Configure the server:

    bash
    cp .env.example .env
    cp config/config.yaml.example config/config.yaml
  3. Start the services:

    bash
    docker compose up -d --build
  4. Verify services are running:

    bash
    docker compose ps

Connect Your IDE

Once Docker containers are running, add MCPwner to your MCP client.

Dynamic Tool Registration: MCPwner uses Docker Compose profiles for opt-in tool categories. The .env file's COMPOSE_PROFILES variable controls which containers start. The MCP server probes running containers at startup and registers only healthy tools - if a container is down, its tools simply don't appear. Linguist (language detection / code-facts index) runs unconditionally; the dynamic-testing utilities (Chromium, WireMock, mitmproxy, fuzzer) are opt-in and come up with the dast and poc profiles.

One-Click Install (requires Docker running):

Kiro Cursor Claude VS Code Windsurf

Manual Configuration:

Add to your MCP configuration file (claude_desktop_config.json, mcp.json, etc.):

json
{
  "mcpServers": {
    "mcpwner": {
      "command": "docker",
      "args": ["exec", "-i", "mcpwner-server", "python", "src/server.py"],
      "env": {}
    }
  }
}

Restart your MCP client to load the new server configuration.

Scanning Local Projects

Mount your projects into the container by adding a volume in docker-compose.yaml:

yaml
services:
  mcpwner:
    volumes:
      - /path/to/your/projects:/mnt/projects:ro

Then use create_workspace with source_type="local" and source="/mnt/projects/my-project".

Documentation

Additional guides live in the project wiki:

  • Quickstart - start the tool fleet with COMPOSE_PROFILES and wire the MCP server into your client.
  • Configuration - .env / COMPOSE_PROFILES, config.yaml, and the tool port map.
  • Troubleshooting - missing tools, unhealthy containers, and image-build failures.
  • Adding a tool - wire a new scanner container into the fleet and the tool registry.

Contributing? See CONTRIBUTING.md for code style, pre-commit hooks, and tests.

Architecture

Design Principles:

  • Container isolation for security tool execution
  • Standardized output (SARIF/JSON) for LLM consumption
  • Dynamic tool registration - only healthy containers appear as tools
  • Persistent findings ledger with deep-merge semantics across research phases
  • Deterministic oracles for PoC validation (exit code, markers, OOB callbacks, XSS execution)

Agent Workflow

MCPwner is tool infrastructure. A single agent session - model-agnostic (Claude, Cursor, Kiro, Gemini, or any MCP-capable coding agent) - drives the whole engagement, running each phase itself (recon → API mapping → environment → code audit → vulnerability research → PoC → review) and recording progress in the findings ledger. There is no separate orchestration service or configuration file: MCPwner exposes tools, the agent supplies the workflow.

For a long, isolated sub-task - canonically, standing up and driving a live target environment in a container - the agent may optionally offload to a helper session if its host supports one, but the flow never depends on it.

Data Persistence

MCPwner persists workspace metadata, CodeQL databases, and findings across container restarts using file-based storage in the shared Docker volume (/workspaces/.metadata/). The findings ledger is always available (no container health gate) - it's how the agent tracks findings across phases and recovers state after a context reset.

Workspace Cleanup:

  • delete_files=True, delete_metadata=False - Free disk space, preserve history
  • delete_files=True, delete_metadata=True - Complete removal
  • delete_files=False, delete_metadata=True - Remove from list, keep files

License

Apache 2.0

Installatioun

TypingMind
Viraussetzungen:

Node.js 18+

{
  "mcpServers": {
    "nedlir-mcpwner": {
      "command": "npx",
      "args": [
        "-y",
        "MCPwner"
      ]
    }
  }
}

MCPwner MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal MCPwner verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

MCPwner als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu MCPwner an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "nedlir-mcpwner": {
      "command": "npx",
      "args": [
        "-y",
        "MCPwner"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu MCPwner. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu MCPwner.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat MCPwner?
MCPwner
Jo. Ech hunn et gelies.
Dat hunn ech mat MCPwner fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server MCPwner benotzt?

MCPwner ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech MCPwner MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir MCPwner mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat MCPwner MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann MCPwner verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech MCPwner MCP mat TypingMind?

MCPwner leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt MCPwner MCP an TypingMind zur Verfügung?

MCPwner stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir MCPwner MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann MCPwner eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇