# Engageable Analytics

One MCP server in place of three integrations: your agent pulls numbers from GA4, Mixpanel and PostHog and runs the analysis itself.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 1
- Author: engageable-tech
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/engageable-tech/engageable-oss
- Updated: 2026-03-26
- HTML: https://affpapa.org/en/nevibecode/mcp/engageable-analytics

## What it does

Engageable Analytics plugs into Claude, Codex, Cursor and other MCP clients, exposing 9 tools. `analyze_trends` handles time series with change points and anomaly detection, `compare_segments` runs A/B comparisons with significance, `analyze_funnel` walks a multi-step funnel and reports drop-off, and `analyze_retention` builds D1/D7/D30 cohort curves. The `ask` tool takes a plain question and picks which of the others to call.

Every tool is its own pipeline: parse the request, hit the right connector (`ga4_query`, `posthog_query`, `mixpanel_query`), compute, return. Tabular results come back as CSV rather than JSON, capped at a 1000-cell budget so the context window stays workable. Transport is stdio, or SSE at `http://localhost:8080/sse` under Docker.

You bring your own Anthropic key — the natural-language routing layer calls an LLM, so the server will not start without `ANTHROPIC_API_KEY`. Source credentials go in as environment variables or get saved by `configure_source` to `~/.engageable/credentials.json`. PostHog wants an API key plus a project ID, Mixpanel a service account and project ID, GA4 a service account JSON and a property ID.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Environment variables: `ANTHROPIC_API_KEY`, `POSTHOG_API_KEY`, `POSTHOG_PROJECT_ID`, `GA4_CREDENTIALS_JSON`, `GA4_PROPERTY_ID`, `MIXPANEL_SERVICE_ACCOUNT_USERNAME`, `MIXPANEL_SERVICE_ACCOUNT_SECRET`, `MIXPANEL_PROJECT_ID` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env ANTHROPIC_API_KEY=<ANTHROPIC_API_KEY> --env POSTHOG_API_KEY=<POSTHOG_API_KEY> --env POSTHOG_PROJECT_ID=<POSTHOG_PROJECT_ID> --env GA4_CREDENTIALS_JSON=<GA4_CREDENTIALS_JSON> --env GA4_PROPERTY_ID=<GA4_PROPERTY_ID> --transport stdio engageable-analytics -- uvx engageable
```
Replace <…> with your own values. 3 more environment variables are in the server README. uvx runs the command named after the package; if the README names another one, use uvx --from engageable <command>

### Codex

**Platform CLI**
```bash
codex mcp add engageable-analytics --env ANTHROPIC_API_KEY=<ANTHROPIC_API_KEY> --env POSTHOG_API_KEY=<POSTHOG_API_KEY> --env POSTHOG_PROJECT_ID=<POSTHOG_PROJECT_ID> --env GA4_CREDENTIALS_JSON=<GA4_CREDENTIALS_JSON> --env GA4_PROPERTY_ID=<GA4_PROPERTY_ID> -- uvx engageable
```
Replace <…> with your own values. 3 more environment variables are in the server README. uvx runs the command named after the package; if the README names another one, use uvx --from engageable <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "engageable-analytics": {
            "command": "uvx",
            "args": [
                "engageable"
            ],
            "env": {
                "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
                "POSTHOG_API_KEY": "<POSTHOG_API_KEY>",
                "POSTHOG_PROJECT_ID": "<POSTHOG_PROJECT_ID>",
                "GA4_CREDENTIALS_JSON": "<GA4_CREDENTIALS_JSON>",
                "GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>"
            }
        }
    }
}
```
Replace <…> with your own values. 3 more environment variables are in the server README. uvx runs the command named after the package; if the README names another one, use uvx --from engageable <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "engageable-analytics": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "engageable"
            ],
            "env": {
                "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
                "POSTHOG_API_KEY": "<POSTHOG_API_KEY>",
                "POSTHOG_PROJECT_ID": "<POSTHOG_PROJECT_ID>",
                "GA4_CREDENTIALS_JSON": "<GA4_CREDENTIALS_JSON>",
                "GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>"
            }
        }
    }
}
```
Replace <…> with your own values. 3 more environment variables are in the server README. uvx runs the command named after the package; if the README names another one, use uvx --from engageable <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e ANTHROPIC_API_KEY=<ANTHROPIC_API_KEY> -e POSTHOG_API_KEY=<POSTHOG_API_KEY> -e POSTHOG_PROJECT_ID=<POSTHOG_PROJECT_ID> -e GA4_CREDENTIALS_JSON=<GA4_CREDENTIALS_JSON> -e GA4_PROPERTY_ID=<GA4_PROPERTY_ID> engageable-analytics uvx engageable
```
Replace <…> with your own values. 3 more environment variables are in the server README. uvx runs the command named after the package; if the README names another one, use uvx --from engageable <command>

## When to use it
- build a conversion funnel with drop-off per step
- spot spikes and drops in traffic
- compare two user cohorts side by side
- measure D1/D7/D30 retention
- ask about metrics in plain language

## Example prompts
- Show signups for the last 30 days and flag any change points
- Compare purchase conversion before and after the new checkout shipped
- Pull retention curves for March cohorts

## Similar
- [analytics-skills](https://affpapa.org/en/nevibecode/plugins/analytics-skills.md) — plugin · ★ 9
- [analytics](https://affpapa.org/en/nevibecode/skills/analytics.md) — skill · 84900 installs
- [data-analytics](https://affpapa.org/en/nevibecode/plugins/data-analytics.md) — plugin · ★ 7604
- [instrument-product-analytics](https://affpapa.org/en/nevibecode/skills/instrument-product-analytics.md) — skill · 666 installs
- [configuring-experiment-analytics](https://affpapa.org/en/nevibecode/skills/configuring-experiment-analytics.md) — skill · 394 installs
- [analytics-tracking](https://affpapa.org/en/nevibecode/skills/kostja94-analytics-tracking.md) — skill · 2400 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
