
Agent Analytics
Gives your AI agent a direct line to analytics tracking and experimentation. You can log events, track user behavior, run A/B tests, and pull performance metrics without building your own analytics infrastructure. Works over streamable HTTP, so you can drop it into any MCP-compatible setup and start instrumenting your agent's interactions immediately. Reach for this when you need to understand how users actually interact with your agent, which prompts perform better, or where conversations drop off. It's the observability layer for AI agents that lets you iterate based on real usage data instead of guessing.
- tools
- 28
- transport
- HTTP
- last updated
- Feb 22, 2026
Install
From registry metadata$ npx add-mcp https://mcp.agentanalytics.sh/mcp --name agent-analytics-mcpRun in your terminal. add-mcp asks which agents to add it to (Claude Code, Codex, Cursor and more). Add -g to install it for every project.
Review the command, arguments and environment values before installing. MCP servers run with your local permissions.
Other ways
Claude Code
$ claude mcp add --transport http agent-analytics-mcp https://mcp.agentanalytics.sh/mcpRun in your terminal. Add --scope user to make it available in every project.
Tools
Verified live · 28 toolsVerified live against the running server on Nov 6, 2026.
account_usageRead 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.
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.
No parameters. Call it with no arguments.
analytics_panelUse 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 r...
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 r...
No parameters. Call it with no arguments.
list_projectsList all your Agent Analytics projects Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
List all your Agent Analytics projects Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
No parameters. Call it with no arguments.
create_projectCreate a new Agent Analytics project. Returns the tracking snippet and API example. Idempotent — returns existing project if name already taken.2 params
Create a new Agent Analytics project. Returns the tracking snippet and API example. Idempotent — returns existing project if name already taken.
allowed_originsstringname*stringget_project_contextGet 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.1 params
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*stringset_project_contextSet 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, ev...5 params
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, ev...
activation_eventsarrayannotationsarrayglossaryarraygoalsarrayproject*stringpropertiesDiscover 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.2 params
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.
daysnumberproject*stringproperties_receivedProperty 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.3 params
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.
project*stringsamplenumbersincestringsessionsList individual session records Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.3 params
List individual session records Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
limitnumberproject*stringsincestringlist_experimentsList A/B experiments for a project Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.1 params
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*stringcreate_experimentCreate an A/B experiment5 params
Create an A/B experiment
goal_event*stringname*stringproject*stringvariants*arrayweightsarrayget_experimentGet experiment details with results Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.1 params
Get experiment details with results Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
id*stringupdate_experimentUpdate experiment status (pause, resume, complete)3 params
Update experiment status (pause, resume, complete)
id*stringstatus*stringactive · paused · completedwinnerstringdelete_experimentDelete an experiment1 params
Delete an experiment
id*stringlive_nowReal-time snapshot: active visitors, sessions, events per minute, top pages, and recent events. Reads from in-memory ring buffer — no D1 query.2 params
Real-time snapshot: active visitors, sessions, events per minute, top pages, and recent events. Reads from in-memory ring buffer — no D1 query.
project*stringwindownumberall_sites_overviewHistorical summary across all projects in your account: total events, active project count, daily trend, and top projects.2 params
Historical summary across all projects in your account: total events, active project count, daily trend, and top projects.
limitnumberperiodstring1d · 7d · 14d · 30d · 90ddefault: 7dbot_traffic_overviewFiltered automated traffic for a single project: automated requests, dropped events, categories, and top actors.3 params
Filtered automated traffic for a single project: automated requests, dropped events, categories, and top actors.
limitnumberperiodstring1d · 7d · 14d · 30d · 90ddefault: 7dproject*stringall_sites_bot_trafficFiltered automated traffic across all active projects in your account.2 params
Filtered automated traffic across all active projects in your account.
limitnumberperiodstring1d · 7d · 14d · 30d · 90ddefault: 7dqueryRun 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 sign...11 params
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 sign...
count_modestringraw · session_then_userdate_fromstringdate_tostringemailstringfiltersarraygroup_byarraylimitnumbermetricsarrayorderstringasc · descdefault: descorder_bystringevent_count · unique_users · session_count · date · eventproject*stringanalytics_funnelFunnel 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 f...7 params
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 f...
breakdownstringbreakdown_limitnumberconversion_window_hoursnumbercount_bystringuser_id · session_iddefault: user_idproject*stringsincestringsteps*arrayanalytics_retentionCohort 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 you...5 params
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 you...
cohortsnumbereventstringperiodstringday · week · monthdefault: weekproject*stringreturning_eventstringanalytics_overviewGet 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.2 params
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.
daysnumberproject*stringanalytics_insightsPeriod-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.2 params
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.
periodstring1d · 7d · 14d · 30d · 90ddefault: 7dproject*stringanalytics_breakdownTop 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.5 params
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.
daysnumbereventstringlimitnumberproject*stringpropertystringanalytics_pagesEntry/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.3 params
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.
limitnumberproject*stringtypestringentry · exit · bothdefault: entryanalytics_pathsBounded 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.7 params
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.
candidate_session_capintegerentry_limitintegergoal_event*stringmax_stepsintegerpath_limitintegerproject*stringsincestring7d · 14d · 30d · 90ddefault: 30danalytics_sessionsSession 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.1 params
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*stringanalytics_heatmapDay-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.1 params
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*stringSponsors
Readme
Details
- Repository
- github.com/agent-analytics/agent-analytics-mcp
- Categories
- AI & LLM Tools, Monitoring & Observability
- Transport
- HTTP
- Registry
- MCP registry, active
- Resources
- 41
- Tools verified
- Nov 6, 2026