Loading...
brew install last9-mcp{
"mcpServers": {
"last9": {
"command": "/opt/homebrew/bin/last9-mcp",
"env": {
"LAST9_REFRESH_TOKEN": "<last9_refresh_token>",
"OTEL_EXPORTER_OTLP_ENDPOINT": "<otel_endpoint_url>",
"OTEL_EXPORTER_OTLP_HEADERS": "<otel_headers>"
}
}
}
}get_exceptionsRetrieves server-side exceptions within a specified time range.
Read-only operation, retrieves existing data.
get_service_summaryProvides a summary of a service's performance metrics (throughput, error rate, response time) over a given time range.
Read-only operation, retrieves aggregated data.
get_service_environmentsLists available environments for services.
Read-only operation, retrieves environment names.
get_service_performance_detailsRetrieves detailed performance metrics for a specific service.
Read-only operation, retrieves performance data.
get_service_operations_summaryProvides a summary of operations within a service, such as HTTP endpoints and database queries.
Read-only operation, retrieves operation summaries.
get_service_dependency_graphRetrieves a dependency graph showing incoming and outgoing dependencies for a service.
Read-only operation, retrieves dependency information.
prometheus_range_queryExecutes a PromQL range query to retrieve metrics data over a specified time range.
Read-only operation, retrieves metrics data.
prometheus_instant_queryExecutes a PromQL instant query to retrieve metrics data at a specific point in time.
Read-only operation, retrieves metrics data.
prometheus_label_valuesReturns label values for a given label and PromQL filter query.
Read-only operation, retrieves label values.
prometheus_labelsReturns labels for a given PromQL match query.
Read-only operation, retrieves labels.
get_logsRetrieves logs filtered by service name and/or severity level.
Read-only operation, retrieves log data.
get_drop_rulesRetrieves drop rules for logs, which determine what logs are filtered out.
Read-only operation, retrieves existing drop rules.
add_drop_ruleAdds a new drop rule to filter out specific logs.
Allows modification of log filtering, potentially hiding critical information.
get_service_logsRetrieves raw log entries for a specific service over a time range.
Read-only operation, retrieves log data.
get_log_attributesRetrieves available log attributes (labels) for a specified time window.
Read-only operation, retrieves log attributes.
get_tracesRetrieves traces using JSON pipeline queries for advanced filtering.
Read-only, retrieves trace data.
get_service_tracesRetrieves traces by trace ID or service name with time range filtering.
Read-only, retrieves trace data.
get_trace_attributesRetrieves available trace attributes (series) for a specified time window.
Read-only, retrieves trace attributes.
get_change_eventsRetrieves change events from the last9_change_events Prometheus metric.
Read-only, retrieves change event data.
get_alert_configRetrieves alert configurations (alert rules) from Last9.
Read-only, retrieves alert configurations.
get_alertsRetrieves currently active alerts from the Last9 monitoring system.
Read-only, retrieves active alert data.
The Last9 MCP server is generally safe for read-only operations. The `add_drop_rule` tool introduces some risk, requiring careful configuration and monitoring. Prometheus queries should be crafted with caution to avoid performance impacts.