251
All tools

Query product analytics

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

Updated Sep 29, 2026

query-analytics.md

Query product analytics

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

Note: Call get_amplitude_context with the project id first, so the query uses the project's time zone and metric definitions.

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

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

Before anything else, confirm access with the cheapest read-only call, like a list or a search. Never send or change anything to test access.

Rules

  • Ask the user before anything that sends messages, costs money, or changes data, and say how many records it touches. One approval covers a batch the user has seen.
  • Never print API keys.

Ways in

RouteSourceCallRequiredDocs
MCPOfficial · remotequery_amplitude_dataOAuthDocs

Workflows using Query product analytics