Agent Analytics

io.github.dannyshmueli由 GitHub 帳號 dannyshmueli 發布v1.0.0更新於 Oct 24, 2026

Analytics your AI agent can actually use. Track, experiment, and optimize via MCP.

已驗證Streamable HTTP可網頁執行效率與工作流資料與分析

概覽

AI 產生的概覽

遠端分析 MCP 伺服器,讓助理讀取 Agent Analytics 專案、執行查詢、漏斗、留存與實驗,並管理專案脈絡。

可以做什麼
列出與建立專案,讀取或設定精簡的專案脈絡(例如目標、事件詞彙表),建立時回傳追蹤程式碼。探索事件與屬性、列出工作階段,並執行帶自訂指標、篩選、分組與日期範圍的自訂查詢。取得概覽、KPI、細分、頁面與路徑統計、工作階段時長直方圖、熱圖、漏斗與同期群留存。用洞察做期間對比,查看即時流量,彙總所有專案或機器人流量。建立、檢視、更新與刪除 A/B 實驗,並查看方案、用量與支出上限。
適用情境
適合讓助理回答產品分析問題、追查流失或留存、檢視實驗結果,或在對話中直接建立新專案。
執行需求
遠端 streamable HTTP 端點;不需本機執行環境,也未宣告環境變數。多數工具需要已登入且具專案權限的 Agent Analytics 帳號;未登入時只能使用合成的唯讀示範專案。部分工具需要 account:read 權限。
安裝前請注意
工具可建立專案、寫入專案脈絡,以及建立、更新或刪除實驗,會改動實際分析資料。帳號用量與帳單估算為唯讀,不能扣款。客戶電子郵件查詢被描述為重視隱私;分析資料會傳送到遠端服務。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Agent Analytics,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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

交給代理程式安裝

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

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

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

其他 MCP 客戶端

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

{
  "mcpServers": {
    "agent-analytics": {
      "type": "http",
      "url": "https://mcp.agentanalytics.sh/mcp"
    }
  }
}

README

該儲存庫沒有 README。

工具

28

account_usage

Read current account plan, usage, billing estimate and spend cap, Pro pricing, and a human payment handoff when needed. Requires account:read. Read-only: cannot charge or manage billing. Call again after checkout to verify hosted entitlement, then retry the original task.

無需輸入參數。

analytics_panel

Analytics explorer

Use this when you want to explore an authorized project's analytics beside the conversation. Opens a compact project/view picker; accepts empty input. Analysis queries retain their existing plan and access checks. Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.

無需輸入參數。

list_projects

List all your Agent Analytics projects Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.

無需輸入參數。

create_project

Create a new Agent Analytics project. Returns the tracking snippet and API example. Idempotent — returns existing project if name already taken.

輸入參數name必填allowed_origins

get_project_context

Get compact self-improving project context: goals, activation events, event-name glossary, and major date annotations used to interpret analytics results. Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.

輸入參數project必填

set_project_context

Set or replace compact project context. The encoded API request body is capped at 512KB. Read existing context first, merge still-valid entries, inspect event names with properties or properties_received, and save only durable product truth tied to goals, activation events, event-name glossary entries, or date annotations for major product changes. Use annotations for meaningful landing page, pricing, onboarding, feature, release, or experiment changes; do not store git commit logs, noisy edits, PII, secrets, or long release notes.

輸入參數goalsproject必填glossaryannotationsactivation_events

properties

Discover event names and property keys from recent events Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.

輸入參數daysproject必填

properties_received

Property keys by event name, sampled from recent events Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.

輸入參數sincesampleproject必填

sessions

List individual session records Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.

輸入參數limitsinceproject必填

list_experiments

List A/B experiments for a project Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.

輸入參數project必填

create_experiment

Create an A/B experiment

輸入參數name必填project必填weightsvariants必填goal_event必填

get_experiment

Get experiment details with results Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.

輸入參數id必填

update_experiment

Update experiment status (pause, resume, complete)

輸入參數id必填status必填winner

delete_experiment

Delete an experiment

輸入參數id必填

live_now

Real-time snapshot: active visitors, sessions, events per minute, top pages, and recent events. Reads from in-memory ring buffer — no D1 query.

輸入參數windowproject必填

all_sites_overview

Historical summary across all projects in your account: total events, active project count, daily trend, and top projects.

輸入參數limitperiod

bot_traffic_overview

Filtered automated traffic for a single project: automated requests, dropped events, categories, and top actors.

輸入參數limitperiodproject必填

all_sites_bot_traffic

Filtered automated traffic across all active projects in your account.

輸入參數limitperiod

query

Run a flexible ad-hoc analytics query with custom metrics, filters, grouping, date ranges, and privacy-first customer email lookup. This is the most powerful endpoint — use it when other tools don't answer the question. Examples of questions this tool answers: - "How many signups from Germany this week?" → filters: [{field:"event",op:"eq",value:"signup"},{field:"country",op:"eq",value:"DE"}] - "Which events contain 'page' in the name?" → filters: [{field:"event",op:"contains",value:"page"}], group_by: ["event"] - "Daily unique users for the last 30 days" → metrics: ["unique_users"], group_by: ["date"], date_from: "30d" - "Events per country" → group_by: ["country"] Filter operators: eq, neq, gt, lt, gte, lte, contains Filterable fields: event, user_id, date, country, session_id, timestamp, and any properties.* field (e.g. properties.path) For customer-specific reads, use the top-level email input instead of hashing locally. Raw email is sent only in the authenticated HTTPS POST body; the server matches via a project-scoped HMAC index and does not store raw email in event rows or profile traits. Built-in fields are a closed list. Event properties such as referrer, utm_source, path, browser, and hostname must be queried as properties.referrer, properties.utm_source, properties.path, properties.browser, and properties.hostname. Invalid filter fields fail loudly and return /properties-style guidance instead of being silently ignored. Group by: event, date, user_id, session_id, country Metrics: event_count, unique_users, session_count, bounce_rate, avg_duration Count modes: raw, session_then_user. The default for event_count is session_then_user for activation-safe counting: session-backed rows count by session, no-session rows fall back to user only when that user has no session-backed row in the same group, and fully anonymous rows fall back to event id. count_mode is ignored when event_count is not requested.

輸入參數emaillimitorderdate_tofiltersmetricsproject必填group_byorder_bydate_fromcount_mode

analytics_funnel

Funnel analysis: track where users drop off across a sequence of events (e.g. page_view → signup → purchase). Returns per-step user counts, conversion rates, and average time between steps. Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.

輸入參數sincesteps必填project必填count_bybreakdownbreakdown_limitconversion_window_hours

analytics_retention

Cohort retention analysis — track what % of users return over time. By default uses session-based retention (any return visit counts). Pass 'event' to switch to event-based retention. Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.

輸入參數eventperiodcohortsproject必填returning_event

analytics_overview

Get time series chart, KPIs (events, users), and country breakdown (events, unique users) for a project over N days Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.

輸入參數daysproject必填

analytics_insights

Period-over-period comparison with trend (events, users, bounce rate, session duration) Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.

輸入參數periodproject必填

analytics_breakdown

Top property values ranked by count (pages, referrers, UTM sources, etc.) Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.

輸入參數dayseventlimitproject必填property

analytics_pages

Entry/exit page stats with bounce rate, avg duration, events per session Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.

輸入參數typelimitproject必填

analytics_paths

Bounded session path analysis from entry pages to goal, drop-off, or truncation. Useful for connecting page behavior to funnels, retention, and experiments. Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.

輸入參數sinceproject必填max_stepsgoal_event必填path_limitentry_limitcandidate_session_cap

analytics_sessions

Session duration histogram with engaged percentage and median bucket Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.

輸入參數project必填

analytics_heatmap

Day-of-week × hour traffic grid with peak detection (times in UTC) Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.

輸入參數project必填

版本歷史

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

評分

已滿足適用檢查項的 75%

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

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

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。