---
name: iblai-connect-rapid7
description: "Read and write Rapid7 InsightVM data through the InsightVM Cloud Integrations API (v4) and expose it to an ibl.ai agent as an MCP tool. Use when the user asks an agent to work with Rapid7 InsightVM data, or to set up a Rapid7 InsightVM MCP connection on ibl.ai."
metadata:
  kind: guide
---

# Rapid7 InsightVM connector for AI agents

> A starting point maintained on ibl.ai at https://ibl.ai/developer/connectors/rapid7 — not part of the iblai/base repository. Checked against Rapid7, Inc.'s documentation on October 20, 2026; test it against your own Rapid7 InsightVM setup before you rely on it.

Rapid7 InsightVM assesses assets for vulnerabilities on the Rapid7 Insight Platform. It holds assets with their assessment and risk details, vulnerabilities, sites, scans and scan engines.

## Auth & conventions

- **API:** InsightVM Cloud Integrations API (v4) (REST). JSON REST API on the Insight Platform: POST /v4/integration/assets and /vulnerabilities to search, sites, and scans (list, start, stop) plus scan engines. Pages hold up to 500 items; use a cursor past 10,000 results.
- **Base URL:** https://{region}.api.insight.rapid7.com/vm/v4/
- **Access:** Issued by your administrator. An API key is generated on the Insight Platform's key management page for the customer's organization; the region code (us, us2, us3, eu, ca, au, ap, aps2, me1) must match the account.
- **Auth:** Insight Platform API key (X-Api-Key header). Every request sends the key in the X-Api-Key header to the regional endpoint.
- **Limits:** Collection pages hold at most 500 items; page and size reach 10,000 results, beyond which the cursor parameter is required.
- Keep Rapid7 InsightVM credentials in environment variables or the ibl.ai credential store. Never print a token in chat and never commit one to a file.
- Destructive or outward-facing calls are marked **Confirm with the user first** — do.

## Reads

- **Assets** — POST /v4/integration/assets returns inventory, assessment and summary details; GET /assets/{id} for one.
- **Vulnerabilities** — POST /v4/integration/vulnerabilities searches vulnerabilities.
- **Sites** — POST /v4/integration/sites lists sites.
- **Scans and engines** — GET /v4/integration/scan and /scan/engine for scan status and engines.

## Writes

- **Start a scan** — POST /v4/integration/scan starts a scan.
- **Stop a scan** — POST /v4/integration/scan/{id}/stop stops a running scan. **Confirm with the user first.**

## Expose it to an ibl.ai agent (MCP)

Rapid7, Inc. publishes an official MCP server, Rapid7 Bulk Export MCP Server (https://github.com/rapid7/rapid7-bulk-export-mcp). Register it below as-is, or host your own server that wraps the calls in this skill.

First install the ibl.ai platform skills and connect your organization (writes `IBLAI_ORG`, `IBLAI_USERNAME` and `IBLAI_API_KEY` to `.env`):

```bash
npx skills add iblai/base --all
# then, in your coding agent:
/iblai-api-login
```

Every call below sends `Authorization: Api-Token $IBLAI_API_KEY`.

1. **Register the server** — `POST https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mcp-servers/` with `name`, `url`, `transport` (`sse` | `websocket` | `streamable_http`) and `auth_type` (`none` | `token` | `oauth2`). Capture the returned `id`.
   - For an API key or service credential use `auth_type=token` with `auth_scope=platform` for one key across the organization, or scope it to a single agent for one key per agent.
2. **Create the connection** — `POST https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mcp-server-connections/` with `server`, `scope` (`platform` | `mentor` | `user`), `auth_type`, and either `credentials` + `authorization_scheme` or a `connected_service` id for OAuth. Credentials are masked on read; never send a masked value back.
3. **Enable it on the agent** — `GET https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mentors/{agent_id}/settings/`, add `mcp-tool` to `tool_slugs` and the server id to `mcp_servers`, then `PATCH` the full lists back. They are replaced, not merged.

Full reference: https://ibl.ai/developer/platform/mcp/mcp-connections and the `/iblai-api-agent-mcp` skill.

## Example prompts

- "List assets with critical vulnerabilities that have known exploits"
- "Which scans failed or were stopped in the last 7 days?"
- "Summarize vulnerability counts by site for the monthly report"
- "Enrich host 10.0.4.12 with its open vulnerabilities and last scan date"

## Guardrails

- Vulnerability and asset data list exactly where an organization can be attacked. Keep API keys least-privilege, keep exports inside the organization and log every agent query.
- Request the narrowest Rapid7 InsightVM scopes or role the task needs, and prefer a read-only credential for agents that only answer questions.
- Return the fields the user asked for, not whole records; do not paste personal data into chat that the user did not request.
- Before any write, show the user exactly what will change and wait for a yes.
- Respect the documented limits above: page through results and back off on rate-limit responses instead of retrying in a loop.

## References

- InsightVM v4 API documentation: https://help.rapid7.com/insightvm/en-us/api/integrations.html
- Rapid7 Bulk Export MCP Server (GitHub): https://github.com/rapid7/rapid7-bulk-export-mcp
- Rapid7 Bulk Export MCP Server: https://github.com/rapid7/rapid7-bulk-export-mcp
- This connector on ibl.ai: https://ibl.ai/developer/connectors/rapid7
- ibl.ai MCP server connections: https://ibl.ai/developer/platform/mcp/mcp-connections
