Skip to main content
Glama
sunilv3

Offensive Security MCP Server

by sunilv3

Offensive Security MCP Server

A professional-grade MCP server that provides an AI agent with structured, safe, and authorized penetration testing capabilities.

Features

  • Engagement Management: Track assessments, authorization, and status.

  • Strict Scope Engine: Validate targets against domains, IPs, CIDRs, and wildcards.

  • Policy-Driven Execution: Enforce risk levels (Passive $\rightarrow$ Safe $\rightarrow$ Intrusive $\rightarrow$ Destructive).

  • Controlled Executor: Safe subprocess management with timeouts and scope validation.

  • Tool Integration: Orchestrates industry-standard tools like Nmap, Nuclei, and Subfinder.

  • Finding Correlation: (Phase 5+) Merge results from multiple tools into validated findings.

Related MCP server: BugBounty MCP Server

Installation

Prerequisites

  • Python 3.10+

  • Security tools installed in PATH (Nmap, Nuclei, etc.)

Setup

  1. Clone the repository.

  2. Create a virtual environment:

    python -m venv .venv
    source .venv/bin/activate  # Linux/macOS
    .venv\Scripts\activate     # Windows
  3. Install dependencies:

    pip install .
  4. Copy .env.example to .env and configure your database path.

Connecting to OpenCode

Add the following to your MCP configuration:

{
  "mcpServers": {
    "offsec-mcp": {
      "command": "python",
      "args": ["D:/offsec-mcp/src/server.py"],
      "env": {
        "PYTHONPATH": "D:/offsec-mcp/src"
      }
    }
  }
}

Usage Example

  1. Create Engagement: engagement_create(name="Client-X-Web-Assessment", authorization_confirmed=true)

  2. Set Scope: scope_add(target="example.test", entry_type="domain")

  3. Verify Scope: scope_check(target="sub.example.test")

  4. Check Tools: tool_status()

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    AI-powered cybersecurity automation platform with 150+ security tools and 12+ autonomous AI agents for penetration testing, vulnerability assessment, and bug bounty hunting. Enables comprehensive security testing through intelligent tool selection and automated workflows.
    2
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables comprehensive security testing and penetration testing through natural language conversations with 92+ tools for reconnaissance, vulnerability assessment, web application testing, OSINT, and reporting. Designed for authorized bug bounty hunting and security assessments.
    43
    MIT
  • A
    license
    C
    quality
    D
    maintenance
    An automated penetration testing framework that enables intelligent security assessments through reconnaissance, vulnerability scanning, and controlled exploitation. Features AI-driven workflow management with comprehensive reporting for authorized security testing.
    25
    27
    8
    7
    BSD 3-Clause
  • A
    license
    Not graded
    quality
    D
    maintenance
    Integrates 7 security tools (nmap, nuclei, dirsearch, sqlmap, hydra, Acunetix, Metasploit) via MCP protocol for AI-assisted penetration testing with enterprise-grade safety features.
    1
    MIT