# Convai Analytics [Health: Active]

**Category:** 📊 Monitoring  
**Repository:** https://github.com/Conv-AI/convai-analytics  
**GitHub Stars:** 0  
**npm Downloads (last month):** 244  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/convai-analytics

## Description
Analyze Convai sessions, latency, reliability, usage, and provider telemetry via API key.

## Tools
Capabilities this server exposes over MCP:

- **get_summary** — Answer account-level questions like how many sessions, interactions, unique end users, errors, and headline latency percentiles happened in a time range.
- **get_metrics_catalog** — List the public metrics this account can query so an agent can choose the right latency, reliability, usage, provider, or model metric.
- **list_sessions** — Find recent, longest, or slowest sessions for the caller's account before drilling into a session timeline or interaction trace.
- **get_session_timeline** — Show the timeline of metrics and interaction ids inside one session, useful for explaining why a session felt slow.
- **get_interaction_trace** — Show the per-request component spans for one interaction id, including processor/provider/model durations where available.
- **get_first_response_summary** — Character-first, mode-specific first-response SLA P50/P95/P99. Defaults include turn 1; use turnScope=warm for turn_id > 1.
- **get_first_response_timeseries** — Bucketed first-response SLA P50/P95/P99 for one character and optional observed mode.
- **get_first_response_breakdown** — Group first-response SLA P50/P95/P99 for one character by mode, settings_hash, stage, provider, model, status, or turn_scope.
- **get_first_response_markers** — Return settings-hash change markers for one character's first-response latency graph.
- **get_first_response_settings** — Fetch one sanitized latency-relevant settings snapshot by settings hash.
- **get_interaction_first_response** — Return the additive first-response waterfall for one interaction id.
- **get_p95_latency_over_time** — Answer whether p95 end-to-end voice latency is getting better or worse over time.
- **get_latency_percentile_series** — Fetch one raw P50/P95/P99 end-to-end latency timeseries for custom analysis or charting.
- **get_latency_percentile_chart** — Generate a Vega-Lite line chart for aggregate P50/P95/P99 latency distribution over time for production readiness sign-off.
- **get_latency_threshold_chart** — Generate a Vega-Lite chart showing p95 latency against a production-readiness threshold.
- **get_latency_heatmap_chart** — Generate a Vega-Lite heatmap of p95 latency by day and UTC hour to spot systemic slow windows.
- **get_component_latency_breakdown** — Answer which processor/component is contributing most to p95 end-to-end latency.
- **generate_component_latency_chart** — Generate a Vega-Lite bar chart showing p95 latency by processor/component.
- **find_component_latency_bottlenecks** — Rank the top latency offenders by component so an agent can explain likely bottlenecks.
- **generate_interaction_waterfall** — Generate a Vega-Lite waterfall chart for one interaction id's per-component latency breakdown.
- **explain_slow_session** — Find a traceable slow interaction in a session or slow-session list and return the session timeline, trace, top span, and waterfall chart.
- **get_error_trend** — Answer whether errors are rising or falling over time.
- **generate_error_trend_chart** — Generate a Vega-Lite line chart showing errors over time.
- **get_error_breakdown** — Break down errors by processor/component to identify reliability hotspots.
- **generate_error_breakdown_chart** — Generate a Vega-Lite bar chart of errors by processor/component.
- **get_dropped_error_persist_trend** — Track dropped error-persistence events over time as a reliability signal.
- **generate_dropped_error_persist_chart** — Generate a Vega-Lite trend chart for dropped error-persistence events.
- **generate_reliability_summary_chart** — Generate a Vega-Lite chart of interactions, sessions, errors, and error rate for a time range.
- **generate_reliability_trends_chart** — Generate a Vega-Lite trend chart that combines errors and dropped persistence events.
- **get_usage_trends** — Fetch sessions, interactions, and unique end users over time for usage trend analysis.
- **generate_usage_trends_chart** — Generate a Vega-Lite chart for sessions, interactions, and unique end users over time.
- **get_character_usage_leaderboard** — Rank characters by session volume for the selected time range.
- **generate_character_usage_chart** — Generate a Vega-Lite leaderboard chart of sessions by character.
- **generate_session_duration_scatter** — Generate a Vega-Lite scatter plot of session duration versus interactions, colored by p95 latency.
- **estimate_active_session_concurrency** — Estimate active session and LiveKit room pressure from session start/end/duration telemetry.
- **generate_active_session_concurrency_chart** — Generate a Vega-Lite area chart estimating active sessions over time.
- **generate_peak_concurrency_chart** — Generate a Vega-Lite chart showing estimated active sessions with a peak concurrency annotation.
- **get_tts_provider_attribution** — Show which TTS voice providers contributed samples in the selected time range.
- **generate_tts_provider_chart** — Generate a Vega-Lite chart of TTS provider attribution.
- **get_llm_model_latency** — Rank LLM models by p95 latency to spot model-driven latency issues.
- **generate_llm_model_latency_chart** — Generate a Vega-Lite chart ranking LLM models by p95 latency.
- **compare_providers** — Compare provider or model latency for LLM, TTS, ASR, or NeuroSync components.
- **detect_regressions** — Plan-gated. Detect whether latency regressed in the current window compared with a baseline window.
- **advanced_query** — Plan-gated. Run an advanced analytics query through the public API for questions not covered by curated tools.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "convai-analytics": {
    "command": "npx",
    "args": ["-y","@convai/analytics-mcp@latest"],
    "env": {
      "CONVAI_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `CONVAI_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Convai Analytics MCP server does

The Convai Analytics MCP server gives MCP-capable agents a read-only interface to Convai application telemetry. It connects to Convai’s hosted Analytics API at `https://analytics-api.convai.com/v1/analytics` and uses an API key to scope queries to the associated account.

Use it to investigate session activity, interaction counts, unique end users, latency percentiles, errors, concurrency, provider and model behavior, and character-level usage. The server is intended for analytics and investigation; it does not change characters, sessions, configuration, or telemetry.

The repository also contains TypeScript and Python SDKs, a command-line client, prompt recipes, chart recipes, and runnable examples. Those alternatives are useful when an application needs programmatic access without an MCP host.

## How it works

The published package, `@convai/analytics-mcp`, runs as a local stdio MCP server. An MCP client starts it with `npx`, passes the API key through the process environment, and sends typed tool calls. The server forwards those calls through the public TypeScript SDK to Convai’s Analytics API.

The API performs server-side account resolution, plan validation, and quota enforcement. Returned data is agent-friendly JSON. Chart-oriented tools return Vega-Lite JSON specifications; the MCP client decides whether to render, save, or summarize those results. The server itself does not write chart files.

The available endpoint surface includes summaries, time series, breakdowns, session listing and retrieval, interaction retrieval, metric catalog access, regression detection, and general queries. Convenience analytics for latency, providers, errors, and usage are built on these primitives.

## Setup and configuration

A Convai API key is required. Keep it on the server side and do not place it in browser code, mobile applications, public notebooks, screenshots, logs, or committed configuration.

```bash
export CONVAI_API_KEY="ck_live_your_key_here"
npx -y @convai/analytics-mcp@latest
```

The SDK and MCP package use production as the default API base. `CONVAI_ANALYTICS_BASE_URL` can be supplied when an alternate base URL is needed. After adding or changing MCP configuration, restart the host or begin a new session so it reloads the command and environment.

The repository requires Node.js 18 or newer for the TypeScript SDK, CLI, examples, and chart recipes. Python 3.10 or newer plus `uv` applies to the Python SDK path. Claude Desktop configuration uses the `npx` command and passes `CONVAI_API_KEY` under `env`.

## Tools and capabilities

The Convai Analytics MCP server supports questions such as:

- Counting interactions and unique end users over a selected period.
- Comparing usage by character.
- Examining aggregate P50, P95, and P99 latency over time.
- Finding components, providers, models, or characters associated with latency or errors.
- Listing slow sessions and retrieving interaction details.
- Producing latency, usage, reliability, and concurrency chart specifications.

Prompt recipes document call sequences for common questions, while chart recipes provide runnable Vega-Lite or Plotly workflows for developers using the repository directly.

## Limitations and notes

This is a read-only analytics interface, not a mutation API or a client-side browser SDK. All reads pass through Convai’s hosted service; the package does not connect directly to a data store and does not accept account overrides, service credentials, or database URLs.

The project describes the MCP package as version 0.2. Availability and results remain subject to the Convai account’s plan and quota limits. The MCP server returns artifacts to the connected client but does not decide how charts are rendered or persisted.

_Full upstream README: https://allmcps.com/mcp/convai-analytics/readme_

