Aby Amplitude
Query a saved chart
Returns the computed results of a saved event segmentation, sessions, funnel or retention chart for a time range.
Description
Without a time range the query uses the chart's saved range, or the last 30 days. Other chart types return `422` with `unsupported_chart_type`. On the CLI and the API the token needs the `analytics:read` scope.
query-chart.md
Query a saved chart
Returns the computed results of a saved event segmentation, sessions, funnel or retention chart for a time range.
Without a time range the query uses the chart's saved range, or the last 30
days. Other chart types return 422 with unsupported_chart_type. On the CLI
and the API the token needs the analytics:read scope.
Set up
Use the first option your agent supports.
MCP (official, remote)
Add this server to your agent's MCP settings, then sign in when asked.
{ "mcpServers": { "amplitude": { "url": "https://mcp.amplitude.com/mcp" } } }
Call the MCP tool get_amplitude_charts.
Server URL: https://mcp.amplitude.com/mcp
CLI (official)
Install the command, then confirm it runs.
npm install -g @amplitude/developer-cli
amp --version
Run amp charts query.
API (official)
- Base URL: https://developer-api.amplitude.com
- Endpoint:
POST /v1/projects/{project_id}/charts/{chart_id}/query - Auth: OAuth; sign in when the agent asks
- Docs: https://amplitude.com/docs/apis/developer
Before doing anything else, make one read-only call to confirm access.
Rules
- Ask the user before anything that sends messages, costs money, or changes data.
- Never print API keys.
Built from these files in the repository
The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.