rapid7/rapid7-bulk-export-mcp
Rapid7 Bulk Export MCP - AI-powered analysis for Rapid7 Command Platform data using MCP (Model Context Protocol) & AgentSkills.
3ce18b5861acrapid7-vulnerability-export0.7.1 in pyproject.tomlPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 3 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
Top risks in plain words
- HIGHTool
query_rapid7runs SQL by design: an agent steered by prompt injection can use it that way. - HIGH3 production dependencies have known vulnerabilities (worst: high).
- MEDIUMTool
load_rapid7_parquetreads or writes any file path by design: an agent steered by prompt injection can use it that way. - LOW1 security advisory has been published for this server itself (worst: low). It lists no fixed version.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it only the folder it needs
load_rapid7_parquetcan read or write any file path. Mount a single project folder, read-only where you can. - Connect it with a read-only database user
query_rapid7can run any query it is given. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
load_rapid7_parquet,query_rapid7, switch them off. - Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Update its vulnerable packages
Use
dnspython2.9.2 or later,opentelemetry-api1.45.2 or later. - Read its open advisories before installing
GHSA-pwmm-7g3w-8pvp (low) lists no fixed version. Check whether the version you install is affected.
- Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 9 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
check_rapid7_export_status, download_rapid7_export, load_rapid7_parquet, purge_rapid7_data, start_rapid7_exportdownload_rapid7_export, start_rapid7_exportcheck_rapid7_export_status, download_rapid7_export, list_rapid7_exports, purge_rapid7_data, start_rapid7_exportcheck_rapid7_export_status, download_rapid7_export, load_rapid7_parquet, purge_rapid7_data, start_rapid7_exportcheck_rapid7_export_status, download_rapid7_export, list_rapid7_exports, load_rapid7_parquet, purge_rapid7_data, start_rapid7_exportcheck_rapid7_export_status, download_rapid7_export, load_rapid7_parquet, purge_rapid7_data, start_rapid7_exportWhere its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
endpoint· check_rapid7_export_status, download_rapid7_export, start_rapid7_export
Credential-like environment variables. Give the server a key with the least access it needs.
RAPID7_API_KEY· check_rapid7_export_status, download_rapid7_export, purge_rapid7_data +1
2 request addresses could not be settled from the code (built at run time).
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- web or API responses3 tools · check_rapid7_export_status, download_rapid7_export, start_rapid7_export
Tool annotations
9 of 9 tools declare annotations. readOnlyHint 5, destructiveHint 1, idempotentHint 9, openWorldHint 3.
Tools, prompts and resources (9: 9 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
load_rapid7_parquettool Load vulnerability data from existing Parquet file(s).ProcessesCredentialsEnv varsSensitive pathsReads/writes files
Load vulnerability data from existing Parquet file(s).
Use this if you already have Parquet files downloaded and want to skip
the export process. This is much faster than running a full export.
Args:
parquet_path: Path to a Parquet file or directory containing Parquet files
Returns:
Summary of loaded data including row count and statistics.query_rapid7tool Execute a SQL query against the Rapid7 database.read-only (declared)Runs SQL
Execute a SQL query against the Rapid7 database.
The database contains the following tables loaded from Rapid7 InsightVM
Bulk Export API Parquet files:
**assets** — Asset inventory data:
Key fields: orgId, assetId, agentId, hostName, ip, mac, osFamily,
osProduct, osVersion, osDescription, riskScore, sites, assetGroups, tags,
awsInstanceId, azureResourceId, gcpObjectId
**vulnerabilities** — Combined asset + vulnerability data:
Key fields: orgId, assetId, vulnId, checkId, port, protocol, title,
description, severity, severityRank, cvssScore, cvssV3Score,
cvssV3Severity, hasExploits, epssscore, epsspercentile, riskScoreV2_0,
cves, firstFoundTimestamp, reintroducedTimestamp, dateAdded,
dateModified, datePublished, pciCompliant, pciSeverity
**vulnerability_exceptions** — Vulnerability exceptions (waived/accepted risk):
Key fields: orgId, assetId, vulnId, checkId, key, port, protocol,
nic, proof, firstFoundTimestamp, reintroducedTimestamp, exceptionDetails
**policies** — Policy compliance results (agent and scan based):
Key fields: orgId, assetId, benchmarkNaturalId, profileNaturalId,
benchmarkVersion, ruleNaturalId, ruleTitle, finalStatus, proof,
lastAssessmentTimestamp, benchmarkTitle, profileTitle, publisher,
fixTexts, rationales, source ('agent' or 'scan')
**vulnerability_remediation** — Vulnerability remediation tracking:
Key fields: orgId, assetId, cveId, vulnId, proof, firstFoundTimestamp,
reintroducedTimestamp, lastDetected, lastRemoved, title, description,
cvssV2Score, cvssV3Score, cvssV2Severity, cvssV3Severity,
cvssV2AttackVector, cvssV3AttackVector, riskScoreV2_0, datePublished,
dateAdded, dateModified, epssscore, epsspercentile
Use this tool to query any of the above tables. You can filter, aggregate,
join across tables, or perform any SQL-based analysis supported by DuckDB.
Examples:
- SELECT * FROM vulnerabilities WHERE severity = 'Critical' LIMIT 10
- SELECT severity, COUNT(*) FROM vulnerabilities GROUP BY severity
- SELECT * FROM policies WHERE finalStatus = 'fail' LIMIT 10
- SELECT cveId, COUNT(*) FROM vulnerability_remediation GROUP BY cveId
Args:
sql: SQL query to execute against the database
Returns:
Query results as formatted JSONcheck_rapid7_export_statustool Check the status of a Rapid7 export, including local download/load progress.ProcessesNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Check the status of a Rapid7 export, including local download/load progress.
Fast, non-blocking call. Reports whichever stage the export is in:
- While this server is downloading or loading the export in the
background, reports that local phase and per-file progress — and
skips the Rapid7 API call, since the platform-side export is
already known to be complete.
- Once loaded (COMPLETE) or failed (FAILED) locally, returns the
stored summary/error so no work is repeated.
- Otherwise queries the Rapid7 API once for the platform-side export
status (PENDING/PROCESSING/COMPLETE/FAILED).
Because local phase lives in the durable tracker, it is inspectable after
a server restart (interrupted work is reconciled to a retryable FAILED at
startup rather than resumed). Does NOT poll or wait.
Args:
export_id: The export ID returned by start_rapid7_export, or a
job ID returned by a multi-window remediation load.
Returns:
Current export/load status and next steps.download_rapid7_exporttool Start downloading a completed Rapid7 export and loading it into the database.ProcessesFilesNetworkCredentialsEnv varsSensitive pathsoutside text
Start downloading a completed Rapid7 export and loading it into the database.
Call this after check_rapid7_export_status confirms the export is COMPLETE.
This kicks off the download and load in the background and returns
immediately — large exports (potentially millions of rows) can take
several minutes to load, longer than most MCP clients will wait on a
single tool call. Poll progress with check_rapid7_export_status(export_id).
Args:
export_id: The export ID of a completed export.
export_type: Type of export. One of "vulnerability", "policy",
"remediation", or "asset_software".
Returns:
Confirmation that the background job has started, plus how to
check on it.get_rapid7_schematool Get the schema of all database tables.read-only (declared)
Get the schema of all database tables.
Returns column names and data types for all existing tables:
assets, vulnerabilities, policies, and vulnerability_remediation.
Tables that have not been loaded yet are omitted.
Use this to understand what data is available before writing queries.
Returns:
Table schemas as formatted JSON, keyed by table nameget_rapid7_statstool Get summary statistics for all database tables.read-only (declared)
Get summary statistics for all database tables.
Returns row counts and relevant distributions for all existing tables:
assets, vulnerabilities, policies, and vulnerability_remediation.
Tables that have not been loaded yet are omitted.
Useful for getting an overview of the data across all loaded datasets.
Returns:
Summary statistics as formatted JSON, keyed by table namelist_rapid7_exportstool List recent Rapid7 exports tracked in the system.NetworkEnv varsread-only (declared)
List recent Rapid7 exports tracked in the system.
Shows export metadata including export ID, date, status, type, and row counts.
Useful for understanding what exports are available for reuse.
Args:
limit: Maximum number of exports to return (default: 10)
Returns:
Formatted list of recent exportspurge_rapid7_datatool Permanently delete all local Rapid7 data and tracking databases.ProcessesNetworkCredentialsEnv varsSensitive pathsdestructive (declared)
Permanently delete all local Rapid7 data and tracking databases.
This removes:
- The main vulnerability database (rapid7_bulk_export.db)
- The export tracking database (rapid7_bulk_export_tracking.db)
- Any associated WAL files
Use this when you are done with your analysis session, before handing
off a machine, or to free disk space. After purging, you will need to
run a new export to query data again.
Returns:
Confirmation of purged data.start_rapid7_exporttool Start a new Rapid7 export job (non-blocking).ProcessesFilesNetworkCredentialsEnv varsSensitive pathsoutside text
Start a new Rapid7 export job (non-blocking).
This is a fast, non-blocking call that creates an export job on the
Rapid7 platform and returns the export ID immediately. The export
will process in the background on Rapid7's servers (typically 3-5
minutes).
Use check_rapid7_export_status(export_id) to monitor progress, then
download_rapid7_export(export_id, export_type="...") once it completes.
If an export from today already exists, returns that export's ID
instead of creating a duplicate.
For remediation exports, the Rapid7 API limits each request to 31 days.
If the date range exceeds 31 days, this tool automatically splits it
into multiple 31-day chunks and kicks off an export for each chunk.
Args:
export_type: Type of export to create. One of "vulnerability",
"policy", or "remediation".
start_date: Start date in YYYY-MM-DD format (only for remediation exports).
Defaults to 30 days ago if not specified.
end_date: End date in YYYY-MM-DD format (only for remediation exports).
Defaults to today if not specified.
Returns:
The export ID and next steps.Text the model reads (9)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
load_rapid7_parquet tool
Load vulnerability data from existing Parquet file(s).
Use this if you already have Parquet files downloaded and want to skip
the export process. This is much faster than running a full export.
Args:
parquet_path: Path to a Parquet file or directory containing Parquet files
Returns:
Summary of loaded data including row count and statistics.start_rapid7_export tool
Start a new Rapid7 export job (non-blocking).
This is a fast, non-blocking call that creates an export job on the
Rapid7 platform and returns the export ID immediately. The export
will process in the background on Rapid7's servers (typically 3-5
minutes).
Use check_rapid7_export_status(export_id) to monitor progress, then
download_rapid7_export(export_id, export_type="...") once it completes.
If an export from today already exists, returns that export's ID
instead of creating a duplicate.
For remediation exports, the Rapid7 API limits each request to 31 days.
If the date range exceeds 31 days, this tool automatically splits it
into multiple 31-day chunks and kicks off an export for each chunk.
Args:
export_type: Type of export to create. One of "vulnerability",
"policy", or "remediation".
start_date: Start date in YYYY-MM-DD format (only for remediation exports).
Defaults to 30 days ago if not specified.
end_date: End date in YYYY-MM-DD format (only for remediation exports).
Defaults to today if not specified.
Returns:
The export ID and next steps.check_rapid7_export_status tool
Check the status of a Rapid7 export, including local download/load progress.
Fast, non-blocking call. Reports whichever stage the export is in:
- While this server is downloading or loading the export in the
background, reports that local phase and per-file progress — and
skips the Rapid7 API call, since the platform-side export is
already known to be complete.
- Once loaded (COMPLETE) or failed (FAILED) locally, returns the
stored summary/error so no work is repeated.
- Otherwise queries the Rapid7 API once for the platform-side export
status (PENDING/PROCESSING/COMPLETE/FAILED).
Because local phase lives in the durable tracker, it is inspectable after
a server restart (interrupted work is reconciled to a retryable FAILED at
startup rather than resumed). Does NOT poll or wait.
Args:
export_id: The export ID returned by start_rapid7_export, or a
job ID returned by a multi-window remediation load.
Returns:
Current export/load status and next steps.download_rapid7_export tool
Start downloading a completed Rapid7 export and loading it into the database.
Call this after check_rapid7_export_status confirms the export is COMPLETE.
This kicks off the download and load in the background and returns
immediately — large exports (potentially millions of rows) can take
several minutes to load, longer than most MCP clients will wait on a
single tool call. Poll progress with check_rapid7_export_status(export_id).
Args:
export_id: The export ID of a completed export.
export_type: Type of export. One of "vulnerability", "policy",
"remediation", or "asset_software".
Returns:
Confirmation that the background job has started, plus how to
check on it.query_rapid7 tool
Execute a SQL query against the Rapid7 database.
The database contains the following tables loaded from Rapid7 InsightVM
Bulk Export API Parquet files:
**assets** — Asset inventory data:
Key fields: orgId, assetId, agentId, hostName, ip, mac, osFamily,
osProduct, osVersion, osDescription, riskScore, sites, assetGroups, tags,
awsInstanceId, azureResourceId, gcpObjectId
**vulnerabilities** — Combined asset + vulnerability data:
Key fields: orgId, assetId, vulnId, checkId, port, protocol, title,
description, severity, severityRank, cvssScore, cvssV3Score,
cvssV3Severity, hasExploits, epssscore, epsspercentile, riskScoreV2_0,
cves, firstFoundTimestamp, reintroducedTimestamp, dateAdded,
dateModified, datePublished, pciCompliant, pciSeverity
**vulnerability_exceptions** — Vulnerability exceptions (waived/accepted risk):
Key fields: orgId, assetId, vulnId, checkId, key, port, protocol,
nic, proof, firstFoundTimestamp, reintroducedTimestamp, exceptionDetails
**policies** — Policy compliance results (agent and scan based):
Key fields: orgId, assetId, benchmarkNaturalId, profileNaturalId,
benchmarkVersion, ruleNaturalId, ruleTitle, finalStatus, proof,
lastAssessmentTimestamp, benchmarkTitle, profileTitle, publisher,
fixTexts, rationales, source ('agent' or 'scan')
**vulnerability_remediation** — Vulnerability remediation tracking:
Key fields: orgId, assetId, cveId, vulnId, proof, firstFoundTimestamp,
reintroducedTimestamp, lastDetected, lastRemoved, title, description,
cvssV2Score, cvssV3Score, cvssV2Severity, cvssV3Severity,
cvssV2AttackVector, cvssV3AttackVector, riskScoreV2_0, datePublished,
dateAdded, dateModified, epssscore, epsspercentile
Use this tool to query any of the above tables. You can filter, aggregate,
join across tables, or perform any SQL-based analysis supported by DuckDB.
Examples:
- SELECT * FROM vulnerabilities WHERE severity = 'Critical' LIMIT 10
- SELECT severity, COUNT(*) FROM vulnerabilities GROUP BY severity
- SELECT * FROM policies WHERE finalStatus = 'fail' LIMIT 10
- SELECT cveId, COUNT(*) FROM vulnerability_remediation GROUP BY cveId
Args:
sql: SQL query to execute against the database
Returns:
Query results as formatted JSONget_rapid7_schema tool
Get the schema of all database tables.
Returns column names and data types for all existing tables:
assets, vulnerabilities, policies, and vulnerability_remediation.
Tables that have not been loaded yet are omitted.
Use this to understand what data is available before writing queries.
Returns:
Table schemas as formatted JSON, keyed by table nameget_rapid7_stats tool
Get summary statistics for all database tables.
Returns row counts and relevant distributions for all existing tables:
assets, vulnerabilities, policies, and vulnerability_remediation.
Tables that have not been loaded yet are omitted.
Useful for getting an overview of the data across all loaded datasets.
Returns:
Summary statistics as formatted JSON, keyed by table namepurge_rapid7_data tool
Permanently delete all local Rapid7 data and tracking databases.
This removes:
- The main vulnerability database (rapid7_bulk_export.db)
- The export tracking database (rapid7_bulk_export_tracking.db)
- Any associated WAL files
Use this when you are done with your analysis session, before handing
off a machine, or to free disk space. After purging, you will need to
run a new export to query data again.
Returns:
Confirmation of purged data.list_rapid7_exports tool
List recent Rapid7 exports tracked in the system.
Shows export metadata including export ID, date, status, type, and row counts.
Useful for understanding what exports are available for reuse.
Args:
limit: Maximum number of exports to return (default: 10)
Returns:
Formatted list of recent exportsWhat we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 9 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 9 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file path MEDIUM1 finding in load_rapid7_parquet
- Requests any addressNo tool sends a request to an address the caller supplies — 9 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQL HIGH1 finding in query_rapid7
- Tools that start processes5 of 9 capabilities start processes; 4 more call code the scanner could not follow, where it may happen
- Tools that touch files2 of 9 capabilities touch files; 7 more call code the scanner could not follow, where it may happen
- Tools that call the network5 of 9 capabilities call the network; 4 more call code the scanner could not follow, where it may happen
Where the code is: 9 handlers in 1 file at commit 3ce18b5861ac
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests2 manifests: pyproject.toml, requirements.txt
- Lockfiles checked against OSV2 files resolved and checked against the OSV database; 2 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked; requirements.txt: 7 dependency lines carry no exact version, so the installed version was not checked; pin them or add a lockfile
- Known vulnerabilities in production dependencies HIGH3 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionfastmcp >=3.4.3, mcp >=1.28.1
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentials5 of 9 capabilities read credentials; 4 more call code the scanner could not follow, where it may happen
- Environment variables6 capabilities read environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (3 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
dnspythonPyPI 2.8.0 HIGH 2 advisories 2.9.02.9.2
- HIGHGHSA-vvf4-9x63-8xvv CVE-2026-128089dnspython has excessive memory and CPU use
- HIGHGHSA-45c3-73f7-pv4m CVE-2026-114605dnspython dns.name.from_wire_parser() excessive CPU use
dnspythonPyPI 2.9.0 HIGH 1 advisory 2.9.2
- HIGHGHSA-vvf4-9x63-8xvv CVE-2026-128089dnspython has excessive memory and CPU use
opentelemetry-apiPyPI 1.45.1 MEDIUM 1 advisory 1.45.2
- MEDIUMGHSA-mf5v-w3w3-f6cg CVE-2026-126360OpenTelemetry Python API: Denial of service through quadratic-time traceparent parsing
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
- LOW GHSA-pwmm-7g3w-8pvpCVE-2026-97228Rapid7 Bulk Export MCP versions 0.2.5 through 0.6.1 suffer from a GraphQL query injection issue i...
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | Streamable HTTP, stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | fastmcp >=3.4.4, mcp >=1.28.1, fastmcp >=3.4.3 |
| Servers in the code | 1 (rapid7-bulk-export) |
The project's own security
| Security policy | yes SECURITY.md |
|---|---|
| Private reporting | the policy does not name a private channel |
| Past advisories | 1 · 0 with a fixed version released |
| Last push | 2026-11-14 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 3 catalogs (github_search, glama, mcp_toplist) |
|---|---|
| License | MIT |
| Created | 2026-04-20 |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.