Skip to content

Choosing Your Interface

Decide whether to use the GoodMetrics REST API or MCP server for your analytics workflow.

GoodMetrics exposes the same read-only analytics data through two interfaces. Start with the workflow you want to support.

Use caseChooseWhy
Build a dashboard, report, backend job, or internal integration.REST APIYou control the code, request URLs, query parameters, pagination, sorting, and response handling.
Ask questions about analytics in natural language.MCP serverConnect an OAuth-capable MCP client, sign in to GoodMetrics, and let the client use purpose-built analytics tools.

Use the REST API when you are building software against GoodMetrics analytics data.

REST API requests use:

GET https://data.goodmetrics.io/{gmID}/events/{resource}

Reporting endpoints use query parameters for date ranges, filters, sorting, pagination, and comparison ranges. Realtime endpoints use the current live window automatically.

Start with Getting Started, then use the API Reference for endpoint-specific paths.

Use the MCP server when you want an AI client to query GoodMetrics for you.

MCP clients connect to:

https://data.goodmetrics.io/mcp

Your client opens GoodMetrics in a browser so you can sign in and approve permission. You do not need to create or copy an API key.

The server includes quick tools for common questions and advanced tools for discovering endpoints and running custom queries. It is remote, read-only, and does not require installing anything.

Choose a guide from the MCP quickstarts.

InterfaceAuthentication
REST APIDashboard-issued API key sent as a bearer token.
MCP serverOAuth sign-in and consent through your GoodMetrics account.