Developers & API

MCP Server Integration

Model Context Protocol (MCP) Integration

The MCP server allows AI assistants like Claude to directly interact with your BuildStability account.

Available Tools:

- `buildstability/get_client_summary` - Get client details with engagement score - `buildstability/list_active_programs` - List active workout programs - `buildstability/check_churn_risk` - Identify clients at risk of churning - `buildstability/get_business_stats` - Business metrics overview

Example Request:

```json { "jsonrpc": "2.0", "id": 1, "method": "buildstability/check_churn_risk", "params": { "threshold": 40 } } ```

Authentication:

All MCP requests require a Bearer token in the Authorization header: `Authorization: Bearer `

Getting Your Token:

1. Easiest: Business Settings → API & Integrations → Copy Token (when API access is enabled) 2. Or use browser DevTools: Application → Local Storage → `sb--auth-token` → `access_token` 3. Or use Supabase client: `session?.access_token`

See the Authentication Guide for detailed instructions.

Ready to implement these strategies?

Join thousands of trainers using BuildStability to automate engagement tracking and prevent churn.

Start Your Free Trial