name: Amplitude
description: >
Amplitude analytics via MCP (Model Context Protocol). Query product data, create/edit
charts and dashboards, manage cohorts and experiments, search session replays, and analyze
feedback. Use when: (1) querying analytics data (events, funnels, retention, segmentation),
(2) creating or editing charts, (3) building dashboards, (4) managing cohorts or experiments,
(5) searching Amplitude content, (6) any task involving Amplitude analytics.
Requires amplitude-cli (amp command) and AMPLITUDE_ACCESS_TOKEN (OAuth via Nango).
integration_dependencies:
- amplitude
metadata: {"openclaw": {"emoji": "๐", "requires": {"env": ["AMPLITUDE_ACCESS_TOKEN"], "bin": ["amp"]}, "primaryEnv": "AMPLITUDE_ACCESS_TOKEN", "install": [{"id": "node", "kind": "node", "package": "amplitude-cli", "global": true, "bins": ["amp"], "label": "Install Amplitude CLI (npm)"}]}}
Amplitude
Full Amplitude analytics via the amp CLI (amplitude-cli package). All commands go through Amplitude's MCP server using OAuth. Auth is handled automatically โ AMPLITUDE_ACCESS_TOKEN is injected via Nango.
Architecture
amp CLI โ Amplitude MCP server (OAuth)
Single transport, single auth method. No API keys needed.
CLI: amp
amp auth status # verify connection
amp charts search "DAU" # search charts
amp tools list # see all MCP tools
amp --help # full command list
Commands
Auth
amp auth status # show auth status
amp auth login [--region us|eu] # OAuth login (interactive, for humans)
amp auth logout # revoke tokens
Tool Discovery
amp tools list # list all available MCP tools
amp tools describe <tool-name> # show input schema for a tool
Use amp tools describe query_dataset to see the exact schema the server expects. This is the source of truth โ it returns live schemas from the MCP server.
Events
amp events list # list all event types
amp events list -s "purchase" # search events by name
amp events props <event-type> # get properties for an event type
Analytics Queries
amp query segment -e <event> --from <date> --to <date> [options]
amp query funnel -e <e1> <e2> ... --from <date> --to <date>
amp query retention --start-event <e> --return-event <e> --from <date> --to <date>
amp query revenue --from <date> --to <date> [options]
amp query sessions --from <date> --to <date>
amp query chart <chart-id> # get data from a saved chart
Segment options: -m metric (uniques|totals|avg|pctdau), -i interval (1|7|30), -g group-by (user:prop), --filters JSON array
Charts
amp charts search <query> # search charts
amp charts get <chartId> # get chart definition
amp charts query <chartId> # query chart data
amp charts create --definition '<json>' # create chart via create_chart tool
amp charts create --definition '<json>' --name 'Name' # create and save
amp charts discover <query> # discover events and properties
amp charts event-props <event-type> # get properties for an event type
Dashboards
amp dashboards search <query> # search dashboards
amp dashboards get <dashboardId> # get dashboard with all charts
amp dashboards create --name 'name' --definition '<json>' # create dashboard
Users
amp users search <query> # search users
amp users activity <amplitudeId> # user activity stream
Cohorts
amp cohorts list # list all cohorts
amp cohorts get <cohortId> # get cohort definition
amp cohorts create --name 'name' --definition '<json>' # create cohort
Experiments
amp experiments search <query> # search experiments
amp experiments get <experimentId> # get experiment details
amp experiments results <experimentId> # query results with stats
Direct MCP Tool Calls
amp call <tool-name> '<json-args>' # call any MCP tool directly
For tools the CLI doesn't have a dedicated command for (session replays, feedback, notebooks, etc.), use amp call:
amp call get_session_replays '{"filters": {...}}'
amp call get_feedback_insights '{"projectId": "..."}'
amp call get_from_url '{"url": "https://app.amplitude.com/..."}'
Available MCP Tools
The CLI wraps these MCP server tools. Use amp tools list for the live list, or amp tools describe <name> to see a tool's input schema.
Discovery & Navigation
| Tool | Description |
|---|---|
get_context |
Current user, org, and accessible projects |
get_project_context |
Project settings (timezone, currency, session def) |
search |
Search charts, dashboards, notebooks, experiments, events, properties, cohorts |
get_from_url |
Get full object from any Amplitude URL |
Charts
| Tool | Description |
|---|---|
get_charts |
Full chart definitions by ID |
query_chart |
Query a single chart, get data |
query_charts |
Query up to 3 charts concurrently |
create_chart |
Create chart from query definition |
save_chart_edits |
Save edits to permanent charts |
Dashboards & Notebooks
| Tool | Description |
|---|---|
get_dashboard |
Dashboard with all charts |
create_dashboard |
Create dashboard with charts, rich text, layouts |
edit_dashboard |
Edit dashboard layout/metadata |
create_notebook |
Create interactive notebook |
edit_notebook |
Edit notebook layout/metadata |
Analytics
| Tool | Description |
|---|---|
query_dataset |
Primary query tool. Event segmentation, funnels, retention, sessions |
get_event_properties |
Properties for a specific event type |
Cohorts & Experiments
| Tool | Description |
|---|---|
get_cohorts |
Cohort definitions by ID |
create_cohort |
Create cohort from user properties/behaviors |
get_experiments |
Experiment details (state, variants, decisions) |
query_experiment |
Experiment analysis with statistical significance |
create_experiment |
Create A/B tests |
get_deployments |
List deployments (API keys for flags/experiments) |
Users & Sessions
| Tool | Description |
|---|---|
get_users |
User data for a project |
get_session_replays |
Search session replays (last 30 days) |
Feedback
| Tool | Description |
|---|---|
get_feedback_insights |
Processed themes (feature requests, bugs, complaints, praise) |
get_feedback_comments |
Raw feedback with search/pagination |
get_feedback_mentions |
Comments for a specific insight |
get_feedback_sources |
Connected feedback integrations |
Key Patterns
Chart Creation Workflow
amp charts create --definition '<json>' --name "My Chart"โ creates and saves in one step- Or for dashboards: create charts first, then
amp dashboards createwith the saved chart IDs
Dashboards require SAVED chart IDs. Create and name charts before adding them to dashboards.
Multi-Project
If your account has multiple projects, specify which one:
amp --project-id <id> query segment -e _active --from 2024-01-01 --to 2024-03-01
Or set AMPLITUDE_PROJECT_ID in the environment. If not set, the CLI auto-discovers from your token context.
Amplitude Meta Events (for queries)
_activeโ Any active event (DAU, MAU)_allโ Any tracked event_newโ New user events_any_revenue_eventโ Revenue events
Property Types
- Amplitude core:
source: "AMPLITUDE"โplatform,country,device_type,os - Custom:
source: "CUSTOMER"โ prefixedgp:(e.g.,gp:email,gp:plan)
Schema Discovery
If a command returns unexpected errors, verify the expected schema:
amp tools describe query_dataset
This returns the live input schema from the MCP server.
Environment
| Var | Required | Description |
|---|---|---|
AMPLITUDE_ACCESS_TOKEN |
Yes | OAuth token (auto-injected via Nango) |
AMPLITUDE_REGION |
No | us (default) or eu |
AMPLITUDE_PROJECT_ID |
No | Target project ID (auto-discovered if not set) |