Skip to main content
Glama
rapid7-insightconnect-mcp

rapid7-insightconnect-mcp

by sonadztux

Rapid7 InsightConnect MCP

CI

Use Rapid7 InsightConnect from an MCP-compatible AI assistant to find workflows, inspect jobs and artifacts, export snippets, and optionally run or cancel workflows.

Unofficial community project. This project is independently developed and is not an official Rapid7 product. It is not provided, maintained, endorsed, or supported by Rapid7. References to Rapid7 and InsightConnect are used only to describe compatibility with Rapid7 InsightConnect.

  • Harness-agnostic: your AI client owns MCP registration; this project only provides the MCP server.

  • Local by design: there is no hosted middle service.

  • Read-only by default: execution and cancellation stay disabled until you explicitly enable them.

  • API keys stay out of chat: setup collects the key through a one-time local browser page.

Quick start

You need an MCP-capable client, uv with Python 3.11+, and a Rapid7 API key.

The MCP executable is always:

uvx rapid7-insightconnect-mcp

1. Add it to your AI client

Claude Code

claude mcp add --transport stdio --scope user rapid7-insightconnect -- \
  uvx rapid7-insightconnect-mcp

Codex

codex mcp add rapid7-insightconnect -- \
  uvx rapid7-insightconnect-mcp

For other local MCP clients, register a stdio server with:

Command: uvx
Arguments: rapid7-insightconnect-mcp

The implementation does not detect or modify your AI client's configuration.

2. Connect Rapid7

Open a new AI session and ask:

Connect my Rapid7 InsightConnect account.

The MCP should call its setup tool and open a one-time local page. Choose your Rapid7 region, paste the API key, and leave writes disabled for your first session.

The API key goes directly to the local MCP process, not through the conversation.

3. Test it read-only

Ask:

Use Rapid7 InsightConnect to list at most 5 workflows. Do not run anything.

If you get a Rapid7 response, including an empty list, the connection is working.

Related MCP server: Rundeck MCP Server

If setup does not open

Run the terminal fallback:

uvx rapid7-insightconnect-mcp configure

It securely prompts for the API key, verifies it with one read-only request by default, and saves it locally. A failed verification does not overwrite an existing valid credential.

Then restart the MCP session.

Diagnose problems

Run local checks without contacting Rapid7:

uvx rapid7-insightconnect-mcp doctor

Add one explicit read-only API/authentication check with:

uvx rapid7-insightconnect-mcp doctor --online

Common failures:

Problem

What to do

MCP does not appear

Check your client's MCP list/status and open a fresh session.

Setup page does not open

Run uvx rapid7-insightconnect-mcp configure.

HTTP 401

Check the API key and Rapid7 region.

HTTP 403

Check the API key's Rapid7 permissions.

Saved settings seem ignored

Run doctor; remove partial R7_* environment overrides if you want stored credentials.

Writes are disabled

Reconfigure and explicitly enable them only when needed.

What it can do

Capability

MCP tools

Configure Rapid7

setup

Find and inspect workflows

list_workflows, get_workflow

Run workflows

execute_workflow

Inspect and cancel jobs

list_jobs, get_job, cancel_job

Read global artifacts

list_global_artifacts, get_global_artifact, list_artifact_entries

Export snippets

export_snippet

Workflow execution and job cancellation require both local write enablement and confirm=true on the individual MCP call after user approval.

The server does not automatically retry mutations after an uncertain outcome.

Credentials and safety

Stored credentials live at:

~/.config/rapid7-insightconnect-mcp/credentials.json

They are plain text protected by owner-only filesystem permissions. The loader rejects unsafe ownership, writable ancestry, unexpected file types, and symlinked credential paths.

Other security boundaries include:

  • fixed Rapid7 regional HTTPS hosts;

  • redirects and environment proxy inheritance disabled;

  • bounded request and response bodies;

  • validated API paths;

  • sanitized upstream errors;

  • credential-shaped response fields redacted before they reach the model;

  • a loopback-only, tokenized, expiring setup page;

  • no raw REST passthrough tool.

See SECURITY.md for the full security model and vulnerability reporting.

Advanced configuration

Environment variables are supported for CI and managed deployments:

Variable

Purpose

R7_API_KEY

Rapid7 API key

R7_REGION

us, us2, us3, eu, ca, au, or ap

R7_ALLOW_WRITES

true or false

R7_SETUP_TIMEOUT

Local setup-page timeout in seconds; default 300

XDG_CONFIG_HOME

Alternate absolute config directory

Configuration fails closed: if any credential-related R7_* variable is present, environment configuration is selected and both R7_API_KEY and R7_REGION are required. Incomplete environment configuration does not fall back to stored credentials.

.env files are not loaded.

Platform notes

The hardened credential store currently targets POSIX systems: Linux, macOS, and WSL on Windows.

Desktop apps may not inherit your shell PATH. If they cannot find uvx, use the absolute path from:

command -v uvx

On Windows, run the MCP inside WSL rather than as a native Windows process.

Development

End users should prefer uvx. Contributors can install from source:

git clone https://github.com/sonadztux/rapid7-insightconnect-mcp.git
cd rapid7-insightconnect-mcp
uv sync --frozen

Run the same checks as CI:

uv run ruff format --check .
uv run ruff check .
uv run mypy
uv run pytest -q
uv run pip-audit
uv build

See CONTRIBUTING.md for contribution guidance and RELEASING.md for the PyPI release process.

License

Licensed under the MIT License.

Available Tools

11 tools
cancel_jobA
Destructive

Request job cancellation. Does not undo actions already performed.

Inputs: job_id (required), confirm. Returns: object

execute_workflowC
Destructive

Execute an active API-triggered workflow without input; may change external systems.

Inputs: workflow_id (required), confirm. Returns: object

export_snippetA
Read-onlyIdempotent

Export a known snippet definition; published version by default.

Inputs: snippet_id (required), unpublished_version. Returns: object

get_global_artifactB
Read-onlyIdempotent

Read global artifact metadata.

Inputs: artifact_id (required). Returns: object

get_jobA
Read-onlyIdempotent

Read a job's status and available execution details.

Inputs: job_id (required). Returns: object

get_workflowA
Read-onlyIdempotent

Read workflow definition and trigger details before execution.

Inputs: workflow_id (required). Returns: object

list_artifact_entriesB
Read-onlyIdempotent

Read artifact entities; upstream spec does not document pagination parameters.

Inputs: artifact_id (required). Returns: object

list_global_artifactsB
Read-onlyIdempotent

Discover global artifacts, optionally filtered by name, sorted by name.

Inputs: name, limit, offset, sort_order. Returns: object

list_jobsA
Read-onlyIdempotent

Read jobs newest first; optionally filter by workflow or documented terminal status.

Inputs: limit, offset, status, workflow_id. Returns: object

list_workflowsA
Read-onlyIdempotent

Discover workflows, one bounded page at a time; filter by state or name.

Inputs: name, limit, state, offset. Returns: object

setupA
Idempotent

Configure Rapid7 credentials via a secure local page. Never ask for the key in chat.

Inputs: no named parameters. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool targets a distinct resource/action combination: workflows (list/get/execute), jobs (list/get/cancel), artifacts (list/get/list entries), and snippets (export). No two tools have overlapping purposes, and the descriptions clearly delineate their roles.

    Naming Consistency5/5

    All tools follow a consistent verb_noun snake_case pattern (e.g., list_workflows, get_job, execute_workflow, export_snippet). The single exception, setup, is still a verb and fits the pattern. No mixed conventions or irregular naming.

    Tool Count5/5

    With 11 tools, the set is well-scoped for the Rapid7 InsightConnect domain. It covers the essential resources (workflows, jobs, artifacts, snippets) without excess, and each tool has a clear purpose. This is within the ideal range for a domain-specific MCP server.

    Completeness4/5

    The surface covers core read and execution workflows for the domain. Minor gaps exist, such as no way to list snippets (only export a known one) and lack of create/update/delete operations for workflows/artifacts, but these may be intentional given the server's focus on discovery and execution. The noted lack of pagination parameters for list_artifact_entries is a small limitation.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to manage Rundeck automation platform, including project and job management, execution, and system monitoring through the MCP protocol.
      1
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to inspect, query, diagnose, and operate an Octopus instance through MCP tools for projects, deployments, releases, runbooks, tasks, tenants, Kubernetes, machines, certificates, accounts, and interruptions, with read-only or write-enabled modes.
      547 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to inspect, query, and diagnose problems within an Octopus instance, and optionally create releases, deploy releases, run runbooks, and adjust feature toggles through MCP tools.
      547 npm
      MIT