Integrations

Your analytics. Your AI assistant.

CauseWise exposes a hosted Model Context Protocol server so coding assistants and ChatGPT can explore your analytics with the same permissions as the management API.

Endpoint: https://causewise.io/api/mcp

What you can ask

  • Which websites had the most activity this week?
  • What changed compared with last week?
  • Which pages are most popular?
  • How are my conversion funnels performing?
  • Create a site and return the official tracking snippet (requires sites:write on an API key or consented OAuth token)

Connect with an API key

Cursor, Claude Code, Codex, and similar clients send Authorization: Bearer cw_api_…. Create the key in CauseWise Settings. Paid management access is required (same gate as the REST API).

{
  "mcpServers": {
    "causewise": {
      "url": "https://causewise.io/api/mcp",
      "headers": {
        "Authorization": "Bearer cw_api_YOUR_KEY"
      }
    }
  }
}

Prefer a local stdio bridge for tools that expect npx? Use the upcoming @razorsoft/causewise-mcp package (local package in the repo; publish pending approval). It forwards to the same hosted endpoint and never duplicates analytics storage.

Connect ChatGPT with OAuth

ChatGPT Plugins cannot send a static API key. They authenticate through Clerk OAuth 2.1 against the same MCP endpoint.

  1. In ChatGPT, add a custom MCP server / plugin with Server URL https://causewise.io/api/mcp and authentication OAuth.
  2. Sign in with the CauseWise account that owns the workspace.
  3. Approve the consent screen. CauseWise maps you to your personal workspace and grants scoped access.
  4. ChatGPT OAuth consent requests identity scopes (profile, email). CauseWise then maps baseline read access (sites, analytics, goals, funnels, alerts, workspace, reports, billing, and key metadata). Write tools require an explicit write-scope grant—login alone does not elevate a read-only connection.
  5. If reconnect fails with invalid_scope for sites:read, remove the connector and reconnect after the identity-only metadata fix is deployed. See causewise-mcp.md.
  6. Write management from ChatGPT is not operational until Clerk allows CauseWise application scopes for dynamic clients and a live OAuth reconnect is verified. Until then, use an API key with write scopes for mutations such as create_site.
  • Authenticate with your existing CauseWise account.
  • Avoid pasting management API keys into ChatGPT.
  • Keep access scoped to the authorized personal workspace.
  • Rate limited to 120 requests per minute per Clerk user.
  • Treat ChatGPT OAuth as read-capable until write consent is verified.

Scopes

  • sites:read — List sites, read a site, fetch the tracking snippet, inspect MCP connection
  • sites:write — Create, update, delete sites, and rotate tracking keys (confirmations required)
  • analytics:read — Tracking status, events, journeys, coverage, overview, period comparison
  • goals:read / goals:write — List goals and analytics; create, update, delete with write
  • funnels:read / funnels:write — List funnels and analytics; create, update, delete with write
  • alerts:read / alerts:write — Alert rules, triggers, and authorized test notifications
  • workspace / keys / reports / billing — Workspace settings, API-key lifecycle, reports, billing status

Full tool list, REST equivalents, and troubleshooting: causewise-mcp.md. Assistant install order: causewise-agents.md.