---
ref: tool:amplitude/query-analytics
name: Query product analytics
company: company:amplitude
workflows: [workflow:product-qualified-expansion]
access: [mcp]
tags: [capability:track-product-usage, category:product-analytics, has:mcp]
docs: https://amplitude.com/docs/amplitude-ai/amplitude-mcp
updated: 2026-09-27
---

# Query product analytics

Runs an ad-hoc event segmentation, funnel or retention query and returns the results.

Call `get_amplitude_context` with the project id first, so the query uses the
project's time zone and metric definitions. The tool works in two modes:
discover what can be queried, then execute the query.

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

Server URL: https://mcp.amplitude.com/mcp

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.
