Model Context Protocol (MCP)
Early Access
Try our newest feature! Only available through reach out. Contact us to join the early access program and get priority support.
Unizo offers an MCP server that integrates observability platforms with any LLM provider supporting the MCP protocol. This enables your AI agent to analyze logs, metrics, and traces, investigate issues, and automate monitoring workflows across Datadog, New Relic, Splunk, and other observability tools via a single MCP server.
Supported Tools & Use Cases
The following tools are available in the Observability MCP Server:
Tool Name | Description |
---|---|
search_logs | Search and analyze log data across multiple sources with advanced filtering |
query_metrics | Retrieve and analyze time-series metrics for performance and security monitoring |
trace_requests | Follow distributed traces to understand request flow and identify bottlenecks |
list_alerts | Browse and manage active and historical alerts |
analyze_anomalies | Detect and investigate anomalous patterns in logs and metrics |
create_monitor | Create or update monitoring rules and alerts programmatically |
search_logs
Search and analyze log data across multiple sources with advanced filtering
Parameters:
integration
: Target observability platform integration (required)query
: Search query using platform-specific syntax or natural languagetime_range
: Time period to search (e.g., "last_1h", "2024-01-01 to 2024-01-02")service
: Filter by specific service or applicationseverity
: Filter by log level (error, warning, info, debug)limit
: Maximum number of results to returninclude_context
: Include surrounding log entries for context
query_metrics
Retrieve and analyze time-series metrics for performance and security monitoring
Parameters:
integration
: Target observability platform integration (required)metric
: Metric name or pattern to query (required)aggregation
: Aggregation method (avg, sum, max, min, count)group_by
: Dimensions to group results bytime_range
: Time period for the queryfilters
: Additional filters for the metric queryinclude_forecast
: Include predictive analysis
trace_requests
Follow distributed traces to understand request flow and identify bottlenecks
Parameters:
integration
: Target observability platform integration (required)trace_id
: Specific trace ID to retrieveservice
: Filter traces by serviceoperation
: Filter by specific operation or endpointduration_threshold
: Find traces exceeding durationerror_only
: Only return traces with errorstime_range
: Time period to search for traces
list_alerts
Browse and manage active and historical alerts
Parameters:
integration
: Target observability platform integration (required)status
: Filter by alert status (active, resolved, silenced)severity
: Filter by severity level (critical, high, medium, low)service
: Filter alerts by affected servicetime_range
: Time period for historical alertsinclude_metrics
: Include related metrics with alerts
analyze_anomalies
Detect and investigate anomalous patterns in logs and metrics
Parameters:
integration
: Target observability platform integration (required)data_source
: Type of data to analyze (logs, metrics, traces)baseline_period
: Period to use for normal behavior baselinesensitivity
: Anomaly detection sensitivity (low, medium, high)dimensions
: Specific dimensions to analyzecorrelation
: Enable cross-metric correlation
create_monitor
Create or update monitoring rules and alerts programmatically
Parameters:
integration
: Target observability platform integration (required)name
: Monitor name (required)type
: Monitor type (metric, log, composite)query
: Monitoring query or condition (required)threshold
: Alert threshold valuesnotification_channels
: Where to send alertstags
: Tags for organization and filtering
Installation
Prerequisites
- A Unizo API key
- An active Observability integration (Datadog, New Relic)
- Node.js v20 or higher
MCP Configuration
Here is an example configuration for setting up the Unizo Observability MCP server:
{
"mcpServers": {
"unizo-observability": {
"command": "npx",
"args": [
"mcp-remote",
"http://api.unizo.ai/mcp/observability",
"--allow-http",
"--header",
"apikey:${UNIZO_API_KEY}"
],
"env": {
"UNIZO_API_KEY": "your_api_key"
}
}
}
}
Client Setup
For detailed setup instructions with specific AI clients:
Environment Variables
The following environment variables are required:
UNIZO_API_KEY
: Your Unizo API key Your Unizo API key
Error Handling
All tools return errors in a consistent format:
{
"error": {
"code": "LOG_SOURCE_NOT_FOUND",
"message": "Log source 'nginx-error' not found"
}
}
Common error codes:
INTEGRATION_NOT_FOUND
: Invalid integration IDLOG_SOURCE_NOT_FOUND
: The specified log source was not foundMETRIC_NOT_AVAILABLE
: Metric is missing or invalidTRACE_NOT_FOUND
: Trace ID not found in the systemRATE_LIMIT_EXCEEDED
: API rate limit reachedUNAUTHORIZED
: Invalid API key or insufficient permissions