Rapid7 InsightVM MCP Server
MCP server for interacting with Rapid7 InsightVM on-premise instances.
Configuration
Authentication: InsightVM API v3 uses HTTP Basic Authentication (username/password). It's recommended to create a dedicated API user account in InsightVM with appropriate permissions rather than using a personal account.
Option 1: config.json
cp config.json.example config.json
# Edit config.json with your API user credentials
Option 2: Environment Variables
export INSIGHTVM_HOST="insightvm.example.com:3780"
export INSIGHTVM_USERNAME="api-user" # Dedicated API user account
export INSIGHTVM_PASSWORD="api-password"
export INSIGHTVM_VERIFY_SSL="true"
Installation
Option 1: Using uv (Recommended)
uv is a fast Python package manager. Install it first:
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
No additional installation needed - uvx will handle dependencies automatically.
Option 2: Using pip
pip install bibliocommons-mcp-insightvm
# or for development
pip install -e ".[dev]"
AI Client Setup
VS Code (with MCP Extension)
- Install an MCP-compatible extension in VS Code
- Open VS Code Settings (JSON):
Cmd+Shift+P→ "Preferences: Open User Settings (JSON)" - Add the server configuration:
{
"mcp.servers": {
"rapid7-insightvm": {
"command": "uvx",
"args": ["--from", "/absolute/path/to/rapid7-insightvm", "bibliocommons-mcp-insightvm"]
}
}
}
Alternative: Using python directly
{
"mcp.servers": {
"rapid7-insightvm": {
"command": "python",
"args": ["-m", "bibliocommons_mcp_insightvm"]
}
}
}
Claude Desktop
-
Open Claude Desktop configuration:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
-
Add the server configuration:
{
"mcpServers": {
"rapid7-insightvm": {
"command": "uvx",
"args": ["--from", "/absolute/path/to/rapid7-insightvm", "bibliocommons-mcp-insightvm"]
}
}
}
Alternative: Using python directly
{
"mcpServers": {
"rapid7-insightvm": {
"command": "python",
"args": ["-m", "bibliocommons_mcp_insightvm"]
}
}
}
Kiro IDE
- Open Kiro IDE settings
- Navigate to MCP Servers configuration
- Add the server:
{
"mcpServers": {
"rapid7-insightvm": {
"command": "uvx",
"args": ["--from", "/absolute/path/to/rapid7-insightvm", "bibliocommons-mcp-insightvm"]
}
}
}
Alternative: Using python directly
{
"mcpServers": {
"rapid7-insightvm": {
"command": "python",
"args": ["-m", "bibliocommons_mcp_insightvm"]
}
}
}
Kiro CLI
-
Create or edit the MCP configuration file:
- User level:
~/.kiro/settings/mcp.json - Project level:
<project-root>/.kiro/settings/mcp.json
- User level:
-
Add the server configuration:
{
"mcpServers": {
"rapid7-insightvm": {
"command": "uvx",
"args": ["--from", "/absolute/path/to/rapid7-insightvm", "bibliocommons-mcp-insightvm"]
}
}
}
Alternative: Using python directly
{
"mcpServers": {
"rapid7-insightvm": {
"command": "python",
"args": ["-m", "bibliocommons_mcp_insightvm"]
}
}
}
Configuration Notes
- Replace
/absolute/path/to/rapid7-insightvm/with the actual path to your server directory - Using
uvx(default): Automatically manages dependencies in isolated environments (likenpxfor Node.js) - Using
python(alternative): Requirespip install bibliocommons-mcp-insightvmfirst - After adding the configuration, restart your AI client for changes to take effect
For other AI clients (Amazon Q, GitHub Copilot, Cline, Zed, Cursor), see docs/ai-clients.md.
Docker
# Pull from Docker Hub (private)
docker pull bibliocommons/mcp-insightvm:latest
# Run in stdio mode
docker run -i --rm \
-v /path/to/config.json:/config.json:ro \
bibliocommons/mcp-insightvm:latest \
--config /config.json
# Run in HTTP mode
docker run -d --rm \
-v /path/to/config.json:/config.json:ro \
-p 8000:8000 \
bibliocommons/mcp-insightvm:latest \
--config /config.json --transport http --port 8000
# Run in expanded mode
docker run -i --rm \
-v /path/to/config.json:/config.json:ro \
bibliocommons/mcp-insightvm:latest \
--config /config.json --expanded
Web UI with Swagger
A REST API with interactive Swagger documentation is available:
python -m bibliocommons_mcp_insightvm.webui
Access the Swagger UI at: [http://localhost:8000/docs]
The Web UI provides:
- Interactive API documentation
- Try-it-out functionality for all endpoints
- OpenAPI/Swagger specification
- REST API access to all MCP tools
Standalone MCP Server
python -m bibliocommons_mcp_insightvm
CLI Flags
| Flag | Env Var | Description |
|---|---|---|
--config PATH |
INSIGHTVM_CONFIG |
Path to config.json |
--read-only |
INSIGHTVM_READ_ONLY |
Exclude destructive tools (start_scan, create/delete exceptions) |
--expanded |
INSIGHTVM_EXPANDED |
Register all tools individually instead of gateway mode |
--transport stdio|http |
INSIGHTVM_TRANSPORT |
Transport mode (default: stdio) |
--port PORT |
INSIGHTVM_PORT |
HTTP port (default: 8000) |
--version |
— | Show version and exit |
Gateway Mode (Default)
By default, the server exposes 2 tools instead of 30+ individual tools:
| Tool | Purpose |
|---|---|
insightvm_api |
Execute any InsightVM action by name with a params dict |
insightvm_help |
Search available actions, parameters, and descriptions |
The AI assistant calls insightvm_help to discover available actions, then calls insightvm_api(action="get_assets", params={"page": 0, "size": 10}) to execute them.
To register all individual tools (previous behavior), use --expanded:
python -m bibliocommons_mcp_insightvm --expanded
Available Tools
Assets
get_assets- List all assetsget_asset- Get asset by IDsearch_assets- Search assets with criteriaget_asset_vulnerabilities- Get vulnerabilities for an assetget_asset_vulnerability_solution- Get solution for asset vulnerability
Vulnerabilities
get_vulnerabilities- List vulnerabilitiesget_vulnerability- Get vulnerability by IDget_vulnerability_solutions- Get solutions for a vulnerability
Sites & Scans
get_sites- List all sitesget_site- Get site by IDget_scans- List scans for a siteget_scan- Get scan by IDstart_scan- Start a scan for a site
Scan Templates
get_scan_templates- List all scan templatesget_scan_template- Get scan template by ID
Scan Engines
get_scan_engines- List all scan enginesget_scan_engine- Get scan engine by ID
Reports
get_reports- List all reportsget_report- Get report by IDgenerate_report- Generate a reportget_report_instance- Get report instance details
Solutions
get_solution- Get solution by ID
Vulnerability Exceptions
get_vulnerability_exceptions- List vulnerability exceptionsget_vulnerability_exception- Get vulnerability exception by IDcreate_vulnerability_exception- Create vulnerability exceptiondelete_vulnerability_exception- Delete vulnerability exception
Asset Groups
get_asset_groups- List asset groupsget_asset_group- Get asset group by ID
Users
get_users- List all usersget_user- Get user by ID
Tags
get_tags- List all tagsget_tag- Get tag by ID
Shared Credentials
get_shared_credentials- List shared credentialsget_shared_credential- Get shared credential by ID
Metadata
Release files for bibliocommons-mcp-insightvm 1.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bibliocommons_mcp_insightvm-1.3.2.tar.gz | 65.9 kB | Without provenance | Details for bibliocommons_mcp_insightvm-1.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bibliocommons_mcp_insightvm-1.3.2-py3-none-any.whl | Python 3 | none | any | Details for bibliocommons_mcp_insightvm-1.3.2-py3-none-any.whl |
Total release size: 124.1 kB
Release files / bibliocommons_mcp_insightvm-1.3.2.tar.gz
| Download URL | bibliocommons_mcp_insightvm-1.3.2.tar.gz |
|---|---|
| Size | 65.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88a33f27633055d8cab82c5b3ede4e6f68c3e326578107295fa302e991b7ccd3
|
|
BLAKE2b-256 checksum How to use checksums |
6ff8f625ebf54edb6a65bef5cf34eadc2658bb6bd281fff0835a11b5f2b39232
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / bibliocommons_mcp_insightvm-1.3.2-py3-none-any.whl
| Download URL | bibliocommons_mcp_insightvm-1.3.2-py3-none-any.whl |
|---|---|
| Size | 58.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d6d531fae60008f15f49cfd6c3943f9c991121f8ffd7c0c817aad7cddae2db4
|
|
BLAKE2b-256 checksum How to use checksums |
127351c3f88b2148f6fd2264db2b362d9260e04961db03b30678337bc1f425c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for bibliocommons-mcp-insightvm 1.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.