rapid7-mcp-server
v0.1.1MCP server wrapping the Rapid7 InsightOps REST API (EU region) for log search and analysis
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
rapid7_list_logs
List all available logs to discover log key UUIDs. Args: name_filter: Optional case-insensitive substring filter on log name.
| Parameter | Type | Description |
|---|---|---|
name_filter |
rapid7_list_log_sets
List all log sets. Args: name_filter: Optional case-insensitive substring filter on log set name.
| Parameter | Type | Description |
|---|---|---|
name_filter |
rapid7_query_log
Search a single log using a LEQL query. Args: log_key: UUID of the log to search. query: LEQL query string (e.g., "where(traceId=abc123)"). time_range: Relative time range (e.g., "last 1 hour", "last 24 hours", "yesterday"). Mutually exclusive with from_timestamp/to_timestamp. from_timestamp: Start of time range, UNIX timestamp in milliseconds. to_timestamp: End of time range, UNIX timestamp in milliseconds. per_page: Results per page (default 50, max 500). most_recent_first: Newest-first ordering (default true). max_pages: M…
| Parameter | Type | Description |
|---|---|---|
log_key * | string | |
from_timestamp | ||
max_pages | integer | |
most_recent_first | boolean | |
per_page | integer | |
query | ||
time_range | ||
to_timestamp |
rapid7_query_multiple_logs
Search across multiple logs simultaneously. Args: log_keys: List of log key UUIDs to search across. query: LEQL query string. time_range: Relative time range (e.g., "last 1 hour"). Mutually exclusive with from_timestamp/to_timestamp. from_timestamp: Start of time range, UNIX timestamp in milliseconds. to_timestamp: End of time range, UNIX timestamp in milliseconds. per_page: Results per page (default 50, max 500). most_recent_first: Newest-first ordering (default true). max_pages: Maximum pages to fetch (default 5).
| Parameter | Type | Description |
|---|---|---|
log_keys * | array | |
from_timestamp | ||
max_pages | integer | |
most_recent_first | boolean | |
per_page | integer | |
query | ||
time_range | ||
to_timestamp |
rapid7_query_log_set
Search all logs within a log set. Args: logset_name: Name of the log set. Mutually exclusive with logset_id. logset_id: ID of the log set. Mutually exclusive with logset_name. query: LEQL query string. time_range: Relative time range. Mutually exclusive with from_timestamp/to_timestamp. from_timestamp: Start of time range, UNIX timestamp in milliseconds. to_timestamp: End of time range, UNIX timestamp in milliseconds. per_page: Results per page (default 50, max 500). most_recent_first: Newest-first ordering (default true).…
| Parameter | Type | Description |
|---|---|---|
from_timestamp | ||
logset_id | ||
logset_name | ||
max_pages | integer | |
most_recent_first | boolean | |
per_page | integer | |
query | ||
time_range | ||
to_timestamp |
rapid7_get_context
Get surrounding log lines before/after a specific log entry. Args: sequence_number: The sequence number of the target log entry. timestamp: Timestamp of the target entry, UNIX milliseconds. log_key: UUID of the log containing the entry. context_type: Direction to fetch — BEFORE, AFTER, or SURROUND. per_page: Number of surrounding entries (default 50, max 500).
| Parameter | Type | Description |
|---|---|---|
context_type * | string | |
log_key * | string | |
sequence_number * | string | |
timestamp * | integer | |
per_page | integer |
rapid7_download_logs
Download raw log data as plain text (one entry per line). Args: log_keys: List of log key UUIDs (max 10). query: LEQL query to filter entries. time_range: Relative time range. Mutually exclusive with from_timestamp/to_timestamp. from_timestamp: Start of time range, UNIX timestamp in milliseconds. to_timestamp: End of time range, UNIX timestamp in milliseconds. limit: Maximum entries to return (default 1000).
| Parameter | Type | Description |
|---|---|---|
log_keys * | array | |
from_timestamp | ||
limit | integer | |
query | ||
time_range | ||
to_timestamp |
rapid7_search_trace
Search for a traceId across multiple logs. This is the most commonly used tool for production debugging. Args: trace_id: The traceId value to search for. log_keys: List of log key UUIDs to search across. time_range: Relative time range (default "last 24 hours"). Mutually exclusive with from_timestamp/to_timestamp. from_timestamp: Start of time range, UNIX timestamp in milliseconds. to_timestamp: End of time range, UNIX timestamp in milliseconds. max_pages: Maximum pages to fetch (default 5).
| Parameter | Type | Description |
|---|---|---|
log_keys * | array | |
trace_id * | string | |
from_timestamp | ||
max_pages | integer | |
time_range | ||
to_timestamp |