Overview
Features
Observability & APM Tools
Access server-side utilities for get_exceptions, get_service_summary, get_service_environments, get_service_performance_details, get_service_operations_summary, and get_service_dependency_graph to assess health and performance.
Prometheus/PromQL Tools
Execute prometheus_range_query and prometheus_instant_query, and discover label values/labels via prometheus_label_values and prometheus_labels for metric-driven workflows.
Logs Management
Fetch aggregated logs, manage drop rules, retrieve raw service logs, and inspect log attributes with get_logs, get_drop_rules, add_drop_rule, get_service_logs, and get_log_attributes.
Traces Management
Perform advanced trace queries and retrieve traces by trace ID or service, plus trace attribute discovery using get_traces, get_service_traces, and get_trace_attributes.
Change Events
Retrieve last9_change_events within a time window to monitor deployments, config changes, and other system modifications.
Alert Management
Fetch alert configurations and currently active alerts from Last9 monitoring with get_alert_config and get_alerts.
Installation & Configuration
Flexible installation via Homebrew or NPM and environment-variable configuration (Last9 tokens, OTLP endpoint/headers) to tailor the MCP server for your environment.
Development & HTTP Mode
HTTP mode for development/debugging, with curl testing examples and guidance for running and testing the MCP server.
Who Is This For?
- Developers:Leverage production context (logs, metrics, traces) in IDEs to rapidly debug and auto-fix code.
- AI agents:Provide real-time production data to AI agents for context-aware diagnosis and automated fixes.
- Observability engineers:Access comprehensive service metrics and logs to monitor, triage, and validate changes across environments.




