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
| Area | Tools |
|---|---|
| Account & projects | whoami, list_projects, create_project, create_api_key |
| Dashboard | get_dashboard, get_filters, list_widgets, add_widget, remove_widget, reset_widgets |
| Events | list_events, list_event_types |
| Funnels | list_funnels, get_funnel, create_funnel, update_funnel, delete_funnel, execute_funnel |
| Retention | list_retentions, get_retention, create_retention, update_retention, delete_retention, execute_retention |
| Queries | list_queries, get_query, create_query, update_query, delete_query, execute_query |
| Experiments | list_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.