The churn radar for B2B SaaS·Book a call·Setup in 10 minutes·Trusted by CS teams·SOC 2 · GDPR · AES-256·
The churn radar for B2B SaaS·Book a call·Setup in 10 minutes·Trusted by CS teams·SOC 2 · GDPR · AES-256·

AI assistant integration (MCP)

Query customer health, check events, and manage experiences directly from Claude, Cursor, or Windsurf.

Query and manage customer health directly from your AI assistant using the Model Context Protocol (MCP).

What is mcp?

Model Context Protocol (MCP) lets AI assistants like Claude access external tools and data sources. With @firstdistro/mcp, your AI can:

  • Query customer health — "Which customers are at risk?"
  • Check SDK status — "Are events flowing properly?"
  • Get funnel stats — "What's the completion rate for onboarding?"
  • Find stuck users — "Who stopped mid-checkout?"
  • Set up the SDK — "Add FirstDistro to my Next.js project"

Supported assistants

AssistantStatusSetup Guide
Claude CodeSupportedSetup →
CursorSupportedSetup →
WindsurfSupportedSetup →

Quick example

After setup, ask Claude:

"Which of my customers have critical health scores?"

Claude will use the list_at_risk_accounts tool to query your data:

At-Risk Accounts Summary:
• Critical: 3
• At-Risk: 8
• Healthy: 42

- Acme Corp: Score 25/100 (critical) 📉
- Beta Inc: Score 38/100 (at-risk)
- Gamma LLC: Score 42/100 (at-risk) 📈
...

Available tools

ToolDescription
list_experiencesList all user journeys/funnels you're tracking
check_events_flowingVerify SDK is properly sending events
get_customer_healthGet health score for a specific account
get_experience_statsGet funnel statistics (started, completed, conversion rate)
get_stuck_customersFind users who stopped mid-journey
list_at_risk_accountsList accounts with at-risk or critical health
get_sdk_configGet your installation token and setup code
setup_sdkGenerate framework-specific SDK setup files

See the Tools Reference for detailed documentation.

Prerequisites

Before setting up MCP, you'll need:

  1. A FirstDistro account — Sign up for a 14-day free trial (no credit card required)
  2. An API key — Get one from Settings

Note: MCP uses API keys (sk_live_... or sk_test_...), not Installation Tokens (fd_...). Installation Tokens are for the browser SDK. For app tracking, see the npm SDK Quick Start.

Get started

Choose your AI assistant:

Also see: npm SDK Quick Start for installing the SDK in your app with npm install @firstdistro/sdk.