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 分

    请在仓库或注册中心条目中声明许可证。