---
ref: tool:amplitude/query-chart
name: Query a saved chart
company: company:amplitude
workflows: []
access: [mcp, cli, api]
tags: [capability:track-product-usage, category:product-analytics, has:api, has:cli, has:mcp]
docs: https://amplitude.com/docs/apis/developer/analytics/query-chart
updated: 2026-09-26
---

# 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.

```json
{ "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.

```sh
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.
