Analyze Convai sessions, latency, reliability, usage, and provider telemetry via API key.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Agentic analytics for Convai applications.
This repository lets MCP-capable agents, coding agents, and developers answer questions about Convai session telemetry using only a Convai API key. The recommended path is the published local MCP server, @convai/analytics-mcp, which plugs into Claude Desktop, Cursor, Codex-compatible MCP clients, and other stdio MCP hosts so agents can call typed analytics tools instead of writing custom scripts.
For developers who want direct programmatic access, the repo also includes TypeScript, Python, and CLI clients that use the same public Analytics API.
Ask questions like:
How many interactions did my characters have in the last 7 days?
How many unique end users used each character this month?
Show aggregate P50/P95/P99 latency over time for production readiness sign-off.
Explain why this interaction was slow and generate a waterfall chart.
Which processor, provider, model, or character is driving latency or errors?
The SDK calls Convai's hosted analytics API at https://analytics-api.convai.com/v1/analytics. The API resolves your API key server-side, scopes every query to your account, enforces plan and quota limits, and returns agent-friendly JSON that can be summarized, charted, or used in scripts.
Status: v0.2. The full v1 endpoint surface is wired:
summary,timeseries,breakdown,sessions.list,sessions.get,interactions.get,metrics/catalog,regression-detection, andquery. Convenience facades (latency,providers,errors,usage) work end to end on top of those primitives.
packages/mcp that exposes the main analytics questions as typed agent tools.packages/typescript.packages/python.cli.recipes/prompts that tell an AI agent exactly which calls to make for common analytics questions.recipes/charts that generate Vega-Lite specs or Plotly timelines for latency, usage, reliability, and concurrency analysis.uv for the Python SDK examples.Get your key from the same Convai account you use for the rest of the Convai API, then export it in your shell:
The SDK reads CONVAI_API_KEY automatically. You normally do not need to set a base URL; production is the default.
For agent workflows, start here:
The server is also listed in the Official MCP Registry as io.github.Conv-AI/convai-analytics-mcp. If your MCP client supports registry discovery, use that registry entry; otherwise configure the npx command above. Once connected, ask normal analytics questions:
After adding or changing MCP config, restart Claude Desktop, Claude Code, Cursor, Codex, or your MCP host so it reloads the server command and CONVAI_API_KEY.
See packages/mcp/README.md for client setup snippets.
Run the smallest working example:
Expected result: a short account summary with sessions, end users, interactions, errors, and latency percentiles for your own account.
If your agent does not support MCP, open this repo in Codex, Claude Code, Cursor, or a similar coding agent. Give the agent this instruction:
Then ask normal product questions:
The agent should use recipes/prompts for the call sequence and recipes/charts for chart generation.
The fastest path for MCP-capable agents is @convai/analytics-mcp. It is a published local stdio MCP server that wraps only the public TypeScript SDK. It reads CONVAI_API_KEY, optionally reads CONVAI_ANALYTICS_BASE_URL, and never accepts account overrides, service credentials, database URLs, or other internal access paths.
Run it directly:
Official MCP Registry name: io.github.Conv-AI/convai-analytics-mcp
Claude Desktop example:
After saving this config, quit and reopen Claude Desktop so it starts the new MCP server. Claude Code, Cursor, Codex-compatible clients, and other stdio MCP hosts can use the same command/env shape; restart the client or start a new session after adding or changing MCP config. Once connected, ask questions like:
The MCP server returns structured JSON for data tools and Vega-Lite JSON specs for chart tools. It does not write files; your MCP client can decide whether to render, save, or summarize the returned artifacts.
Local development:
See packages/mcp/README.md for the full tool list, prompt list, resources, and live smoke command. See docs/publishing.md and docs/mcp-distribution.md for release, registry, and marketplace publishing notes.
When using the repository directly:
When using the package from your own Node project:
Find sessions to inspect:
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/convai-analytics)<a href="https://allmcps.com/mcp/convai-analytics"><img src="https://allmcps.com/api/badge/convai-analytics?style=directory" alt="Convai Analytics on AllMCPs" /></a>