Convalytics

io.github.Dan-Cleary由 GitHub 帳號 Dan-Cleary 發布v1.0.0更新於 Oct 25, 2026

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

已驗證Streamable HTTP可網頁執行資料與分析商業與電商

概覽

AI 產生的概覽

Convalytics 的遠端 MCP 伺服器,讓助理查詢 Convex 應用程式的網站分析、產品事件與轉換漏斗。

可以做什麼
列出團隊專案,並查詢本月用量、配額、保留天數與方案。查詢網頁流量:熱門頁面、來源主機、瀏覽次數,以及自訂事件次數與最近事件。取得單一訪客的活動快照,或專案的週報摘要與期間比較。建立、讀取、更新、刪除轉換漏斗,並依時間區間計算各步驟轉換率與轉換時間。
適用情境
當你需要用對話方式查看 Convex 應用程式的網站流量、產品事件或用戶行為,或想建立、調整與計算轉換漏斗時使用。適合已用 Convalytics 追蹤資料、想讓 AI 助理直接查詢分析結果的團隊。
執行需求
需連線至遠端端點,並在 Authorization 標頭提供 Convalytics API 權杖(格式為 Bearer 加上 cnv_ 開頭的字串),權杖可在 Convalytics 網站建立。需要網路連線。
安裝前請注意
需要具備團隊資料存取權的 API 權杖,請妥善保管。建立、更新與刪除漏斗會變更專案設定;刪除為軟刪除,無法從 MCP 復原。使用者活動與最近事件預設遮蔽電子郵件、姓名與屬性,關閉遮蔽會回傳個人資料。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Convalytics,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.Dan-Cleary%2Fconvalytics/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "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

來源:README.md,提交 d41d860

工具

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.

無需輸入參數。

get_usage

Get usage and plan

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

無需輸入參數。

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.

輸入參數userlimitsinceuntilproject必填

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.

輸入參數limitsinceuntilproject必填

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.

輸入參數usersinceuntilproject必填

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.

輸入參數nameusersinceuntilproject必填

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.

輸入參數nameuserlimitredactproject必填

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.

輸入參數user必填sinceuntilproject必填

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.

輸入參數dayscompareproject必填

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.

輸入參數project必填

get_funnel

Get funnel

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

輸入參數funnelId必填

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.

輸入參數name必填steps必填project必填descriptionconversionWindowMs

update_funnel

Update funnel

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

輸入參數namestepsfunnelId必填descriptionconversionWindowMs

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.

輸入參數funnelId必填

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.

輸入參數sinceuntilfunnelId必填

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分