Skip to main content
Glama

rapid7-mcp · Gemini SOC AI Assistant

Python License Streamlit

An intelligent NLP AI Chat Assistant and unified MCP server for Rapid7 (InsightIDR and InsightVM). Designed with a modern Google Gemini-style UI/UX, it retains monthly security operations data and allows analysts, CISOs, and stakeholders to query any metric, incident, user risk, or SLA trend using natural language with automatic interactive chart and graph generation.


✨ Features

  • Google Gemini Chat UI/UX: Clean, elegant dark aesthetic with Gemini sparkle branding, responsive prompt chips, metric KPI cards, and smooth markdown formatting.

  • Dynamic Charts & Graphs: Every quantitative query dynamically renders interactive visualizations:

    • 📊 Horizontal Bar Charts: Top risky users ranked by UBA risk score.

    • ⏱️ SLA Comparison Charts: Achieved closure rates vs 90% SLA targets per priority level.

    • 🔍 CVSS Distribution Breakdown: Severity distribution across exploitable vulnerabilities.

    • 📈 Multi-Month Investigation Trajectory: 4-month historical volume and priority trends.

    • 🎯 Attack Trends: Frequency rankings of top triggered detection rules.

  • Retained Monthly SOC Telemetry: High-fidelity retention of monthly SOC reports (including October 2026 for NAPSA / StarLabs SOC):

    • Top Risky Users: Chikwa Luputa, Chusi Mwanza, Priscilla Samakesa, James Phiri, Yvonne Admin, etc.

    • SLA & MTTR: Target vs actual closure rates, Mean Time to Resolution (2h 50m 47s), and pending closures.

    • Incident Attribution: Phishing / malicious link clicks (Office 365), administrator impersonation, and impossible travel.

    • Event Source Health: Real-time health, connection timeouts, and prescribed fixes for Active Directory WMI, SQL Server, and Cisco syslog.

    • Vulnerability Management: Total exploitable count (476,361), CVSSv3 breakdown, and top CVEs.

  • Seamless Rapid7 Connection:

    • 1-click toggle between Retained Monthly Archive (instant zero-credential exploration) and Live Rapid7 Insight Platform API.

    • Built-in connection tester verifying API keys and platform regions in seconds.

    • Dual reasoning mode: Built-in local semantic NLP (offline & instant) or external LLMs (Google Gemini API, OpenAI, DeepSeek).


Related MCP server: rapid7-mcp-server

🚀 Quick Start

1. Launch the Gemini SOC Chat UI

streamlit run app.py

Open your browser at http://localhost:8501.

2. Example Natural Language Questions to Ask

  • "Who were the top 5 risked users last month?"

  • "Did we meet our SLAs for High and Medium priority incidents in October?"

  • "Show exploitable vulnerabilities by CVSS score"

  • "Which event sources currently have issues?"

  • "Compare investigations over the last 4 months"

  • "Which users clicked on malicious Office 365 links?"

  • "What were the top 10 detection rules triggered?"


🛡️ Architecture

User (SOC Analyst / Manager / CISO)
       │ Plain Natural Language Query
       ▼
┌────────────────────────────────────────────────────────┐
│         Gemini SOC Chat Interface (app.py)             │
│  - Gemini Dark Surface & Sparkle Theme                 │
│  - Interactive Altair / Native Streamlit Charts        │
│  - Instant 1-Click Connection & Period Selector        │
└──────────────────────────┬─────────────────────────────┘
                           │
             ┌─────────────┴─────────────┐
             ▼                           ▼
┌──────────────────────────┐  ┌──────────────────────────┐
│ Built-in SOC NLP Engine  │  │ LLM Agent (Gemini/OpenAI)│
│ (Offline, Zero-Config)   │  │ via Rapid7 MCP Tools     │
└────────────┬─────────────┘  └──────────┬───────────────┘
             │                           │
             └─────────────┬─────────────┘
                           ▼
┌────────────────────────────────────────────────────────┐
│             Rapid7 MCP Telemetry & Storage             │
│  • Retained Monthly Data Store (October 2026 NAPSA)   │
│  • Live Rapid7 InsightIDR REST APIs                    │
│  • Live Rapid7 InsightVM REST APIs                     │
└────────────────────────────────────────────────────────┘

⚙️ Configuration & Connection

Configure via the Streamlit sidebar or .env:

# Rapid7 Live API (Optional — Retained mode works out-of-the-box)
IDR_REGION=us
IDR_API_KEY=your_insight_platform_api_key

# LLM API (Optional — Built-in engine works offline)
GEMINI_API_KEY=your_gemini_api_key
# or
OPENAI_API_KEY=your_openai_api_key

📄 License

MIT License.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      Enables MCP clients to interact with SentinelOne's cybersecurity platform for security analysis, threat investigation, and asset management through natural language queries. Provides read-only access to alerts, vulnerabilities, misconfigurations, and inventory data.
      33
      104
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables querying Rapid7 InsightIDR logs using natural language through AI assistants, with support for time filtering, logset selection, and LEQL queries.
      6
      -
    • A
      license
      A
      quality
      D
      maintenance
      Enables security analysts to investigate Microsoft Entra ID security logs through natural language, exposing read-only tools for user context, sign-ins, risky users, risk detections, directory audits, and conditional access policies.
      6
      MIT