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.
- In ChatGPT, add a custom MCP server / plugin with Server URL
https://causewise.io/api/mcpand authentication OAuth. - Sign in with the CauseWise account that owns the workspace.
- Approve the consent screen. CauseWise maps you to your personal workspace and grants scoped access.
- 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. - If reconnect fails with
invalid_scopeforsites:read, remove the connector and reconnect after the identity-only metadata fix is deployed. See causewise-mcp.md. - 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 connectionsites:write— Create, update, delete sites, and rotate tracking keys (confirmations required)analytics:read— Tracking status, events, journeys, coverage, overview, period comparisongoals:read / goals:write— List goals and analytics; create, update, delete with writefunnels:read / funnels:write— List funnels and analytics; create, update, delete with writealerts:read / alerts:write— Alert rules, triggers, and authorized test notificationsworkspace / 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.