Skip to main content

MCP Server

MGM ships an MCP (Model Context Protocol) server so AI assistants can query your analytics directly.

URL: https://app.mostlygoodmetrics.com/mcp (streamable HTTP)

Connect

  • Claude Code — install the Claude Code plugin, which connects the server and adds MGM-specific skills.
  • claude.ai — add it as a custom connector with the URL above.
  • Any MCP client — the server supports streamable HTTP with OAuth 2.0 (dynamic client registration included).

Authentication is browser-based OAuth: the first time your client calls an MGM tool, you're sent to sign in to Mostly Good Metrics and approve access. No API keys to copy around.

Tools

AreaTools
Account & projectswhoami, list_projects, create_project, create_api_key
Dashboardget_dashboard, get_filters, list_widgets, add_widget, remove_widget, reset_widgets
Eventslist_events, list_event_types
Funnelslist_funnels, get_funnel, create_funnel, update_funnel, delete_funnel, execute_funnel
Retentionlist_retentions, get_retention, create_retention, update_retention, delete_retention, execute_retention
Querieslist_queries, get_query, create_query, update_query, delete_query, execute_query
Experimentslist_experiments, get_experiment, create_experiment, update_experiment, delete_experiment, start_experiment, stop_experiment

Ad-hoc analysis works without saving anything: execute_funnel, execute_retention, and execute_query all accept inline definitions, so an assistant can answer "where do users drop off between signup and purchase?" in one call.