.agents/skills/analytics/references/amplitude-mcp.md
If the Amplitude MCP is not connected:
/mcp in Claude CodeOnce connected, the mcp__claude_ai_Amplitude__* tools become available.
Call get_context to find the Sentry organization and its projects. Use the appId for the sentry.io project as the projectId in all subsequent Amplitude tool calls.
When a user asks "how many people do X?" or "are people using Y?":
Use search to find matching events by keyword:
mcp__claude_ai_Amplitude__search({
queries: ["seer", "autofix"],
entityTypes: ["EVENT"],
limitPerQuery: 20,
search_goal: "Find events related to the seer feature on issue details"
})
This returns Amplitude event names (the eventName from our event maps, e.g., "Issue Details: Seer Opened").
If search returns nothing, fall back to grepping the codebase:
grep -rn "seer\|autofix" static/app/utils/analytics/ --include="*.tsx"
If the user needs to filter or break down by a property:
mcp__claude_ai_Amplitude__get_properties({
propertyType: "event",
projectId: "<projectId>",
eventType: "Issue Details: Seer Opened"
})
Use query_dataset for ad-hoc queries:
mcp__claude_ai_Amplitude__query_dataset({
projectId: "<projectId>",
definition: {
type: "eventsSegmentation",
app: "<projectId>",
name: "Seer Opens Last 30 Days",
params: {
range: "Last 30 Days",
events: [{
event_type: "Issue Details: Seer Opened",
filters: [],
group_by: []
}],
metric: "uniques",
countGroup: "User",
groupBy: [],
interval: 1,
segments: [{ conditions: [] }]
}
}
})
Use query_chart if the user provides an existing chart ID or URL.
| User question | Metric | Event type pattern |
|---|---|---|
| "How many people view X page?" | uniques | "Page View: ..." |
| "How many clicks on X button?" | totals | "Feature: Button Clicked" |
| "What's the funnel from X to Y?" | funnel | Use type: "funnels" with ordered events |
| "Are people coming back to X?" | retention | Use type: "retention" |
If the user wants an existing dashboard rather than raw data:
mcp__claude_ai_Amplitude__search({
queries: ["seer dashboard", "autofix metrics"],
entityTypes: ["DASHBOARD", "CHART"],
limitPerQuery: 10
})
Fall back to the codebase:
eventName in the event map)./mcp → select "claude.ai Amplitude".