Convalytics

io.github.Dan-ClearyPublished by GitHub account Dan-Clearyv1.0.0Updated Oct 25, 2026

Read-only analytics for Convex apps, queryable via MCP from Claude, Cursor, and other clients.

VerifiedStreamable HTTPWeb executableData & AnalyticsBusiness & Commerce

Overview

AI-generated overview

Remote MCP server for Convalytics that lets an assistant query web analytics, product events and conversion funnels for Convex apps.

What you can do
List team projects and check monthly usage, quota, retention and plan. Query web traffic: top pages, top referrers, pageview counts, plus custom event counts and recent events. Pull a single visitor's activity snapshot or a project's weekly digest with period-over-period comparison. Create, read, update and delete conversion funnels, and compute per-step conversion and timing over a time window.
When to use it
Use it when you want to ask about a Convex app's web traffic, product events or individual user behavior in conversation, or to set up and compute conversion funnels. Suited to teams already tracking data with Convalytics who want an assistant to query the results directly.
Requirements
A remote endpoint connection plus a Convalytics API token in the Authorization header (sent as Bearer followed by a cnv_ string), created on the Convalytics site. Network access is required.
Before you install
Requires an API token with access to the team's data; keep it private. Creating, updating and deleting funnels changes project configuration, and deletion is a soft delete that cannot be undone from MCP. User activity and recent events redact email, name and properties by default; turning redaction off returns personal data.

Installation

In SourceWeft

  1. Open Convalytics in the dashboard and add it to a workspace.
  2. Connect Authorization token credentials. They are stored privately and never shown on public pages.
  3. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.Dan-Cleary%2Fconvalytics/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "convalytics": {
      "type": "http",
      "url": "https://api.convalytics.dev/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

Convalytics

Web analytics and product event tracking built for Convex apps.

Dashboard: convalytics.dev

What is Convalytics?

Convalytics gives Convex apps two things:

  1. Web analytics — automatic page views, sessions, bounce rate, referrers, and device/browser breakdowns via a lightweight script tag.
  2. Product event tracking — track signups, payments, feature usage, and any custom event directly from Convex mutations and actions. Server-side events can't be blocked by ad blockers.

Everything flows into a single dashboard. Projects auto-provision on first event — no account required to start tracking.

Quick start

bash
npx convalytics init

This auto-provisions a project, installs the Convex component, patches convex/convex.config.ts, creates convex/analytics.ts with the write key inlined, inserts the browser script tag into index.html, and installs a skill file for AI agents. Works with Cursor, Claude Code, and other AI coding agents out of the box.

Packages

PackageDescription
convalytics-devConvex component for server-side event tracking
convalyticsCLI for zero-config project setup

Project structure

convalytics/  convex/          # Convex backend — dashboard API, ingest, billing, auth  src/             # React frontend — dashboard UI  cli/             # CLI (published as convalytics on npm)

The Convex component (convalytics-dev on npm) lives in its own repo: Dan-Cleary/convalytics-convex-component

Tech stack

  • Backend: Convex — database, server functions, scheduled jobs, real-time queries
  • Frontend: React 19, React Router v7, TailwindCSS v4, Vite, Recharts
  • Hosting: Vercel (frontend), Convex Cloud (backend)
  • Billing: Stripe (usage-based tiers)
  • Email: Resend + React Email

Development

bash
npm installnpm run dev

This starts both the Vite frontend and convex dev in parallel.

Links

Source: README.md at commit d41d860

Tools

15

list_projects

List projects

List all Convalytics projects on the team this token belongs to. Useful when the agent needs to confirm the project it's querying against. No arguments.

Takes no parameters.

get_usage

Get usage and plan

Return the current month's custom-event usage, monthly quota, retention days, and plan name for the team.

Takes no parameters.

top_pages

Top pages

Return the top pages for a specific project, ranked by views in a time window. Default window is the last 7 days. Use list_projects first if you don't know the project name. Returns path, views, uniqueVisitors, and percentage of total views for each page. Pass `user` to see pages a specific visitor hit.

Parametersuserlimitsinceuntilprojectrequired

top_referrers

Top referrers

Return the top referring hosts for a specific project, ranked by visit count in a time window. Includes '(direct)' for visits with no referrer. Default window is the last 7 days.

Parameterslimitsinceuntilprojectrequired

pageviews_count

Page views count

Count page views for a specific project in a time window. Page views are the automatic hits captured by the browser script tag (separate from custom events). Use this for web-traffic questions like 'how many pageviews in the last 24 hours'. Default window is the last 7 days. Pass `user` to scope to one visitor.

Parametersusersinceuntilprojectrequired

events_count

Events count

Count CUSTOM PRODUCT events for a specific project in a time window, optionally filtered to one event name and/or one user. Custom events are emitted by explicit analytics.track() calls in app code (signup_completed, payment_succeeded, etc.). This does NOT count page views — use pageviews_count or weekly_digest for those. Returns count, unique visitors, and a `truncated` flag if the scan hit the maximum scan size.

Parametersnameusersinceuntilprojectrequired

recent_events

Recent events

Return the most recent custom events for a specific project, optionally filtered to one event name and/or one user. PII (userEmail, userName, props) is redacted by default; pass redact: false to include them.

Parametersnameuserlimitredactprojectrequired

user_activity

User activity

Composite snapshot of a specific user's activity on a project. Returns an identity block (visitorId, userEmail, userName, firstSeen, lastSeen), total pageviews, total custom events, session count, top pages this user visited, their most-fired event names, and their 20 most recent events with props. Use this for 'how is [email protected] using my app?' style questions — one call, full picture. For ad-hoc drill-down (just a count, just recent events) pass `user` to the individual tools instead. Default window is the last 7 days.

Parametersuserrequiredsinceuntilprojectrequired

weekly_digest

Weekly digest

Composite snapshot of a project's web analytics over a lookback window. Returns unique visitors, pageviews, sessions, bounce rate, average session duration, top 5 pages, top 5 referrers, total custom events, and top 5 event names. Includes period-over-period comparison against the prior equal-length window unless compare: false. Prefer this over chaining top_pages + top_referrers + events_count when the agent just wants to report on the week.

Parametersdayscompareprojectrequired

list_funnels

List funnels

List active funnels defined on a project. A funnel is a saved ordered sequence of steps (events or pageview paths) that Convalytics computes step-by-step conversion for. Soft-deleted funnels are excluded.

Parametersprojectrequired

get_funnel

Get funnel

Return the full definition of one funnel by id: name, description, ordered steps, and conversion window.

ParametersfunnelIdrequired

create_funnel

Create funnel

Create a new funnel on a project. Steps are 2–10 ordered events or pageview paths. conversionWindowMs caps how long a visitor has between consecutive steps (default 7 days); this is the step-to-step limit, without which a funnel is just event co-occurrence. Returns { id } on success.

ParametersnamerequiredstepsrequiredprojectrequireddescriptionconversionWindowMs

update_funnel

Update funnel

Patch an existing funnel. Any subset of name/description/steps/conversionWindowMs. Refuses updates on deleted funnels.

ParametersnamestepsfunnelIdrequireddescriptionconversionWindowMs

delete_funnel

Delete funnel

Soft delete a funnel. The row is retained with status='deleted' and excluded from list/get/compute. Idempotent — calling twice is a no-op. Use if the funnel is obsolete; the record is kept for audit and cannot be undone from MCP.

ParametersfunnelIdrequired

compute_funnel

Compute funnel

Run a funnel over a time window and return per-step visitor count, conversion from previous step, conversion from start, and average time to convert between steps. Returns `truncated` flags if the scan cap was hit.

ParameterssinceuntilfunnelIdrequired

Version history

1
  1. v1.0.0LatestSep 16, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts