MCP Server

MCP Server

Customerscore.io exposes a Model Context Protocol (MCP) server so AI assistants such as Claude, ChatGPT, Gemini, or Cursor can query your customer data directly — health and fit scores, churn analytics, segments, properties, and alerts — without you writing any API calls.

Endpoint

PropertyValue
URLhttps://mcp.customerscore.io
TransportStreamable HTTP (stateless, JSON responses)
MethodPOST
AuthAuthorization: Bearer <your-api-token>

The server is stateless — there is no session handshake and no long-lived stream to keep open. It also serves OAuth discovery metadata, so clients that expect an OAuth-protected remote MCP server (like Claude.ai connectors) can connect without extra configuration.

Generate an API token

The MCP server uses the same API token as the REST API. Before connecting, generate one in the Customerscore.io application under Settings → API (opens in a new tab).

⚠️

Your API token grants full access to your account's customer data. Keep it secret, never commit it to a repository, and revoke it in Settings → API if it leaks.

The token scopes the connection to a single account — all tool calls return data for the account the token belongs to.

Connect your client

Claude.ai

Go to Settings → Connectors → Add custom connector and fill in:

FieldValue
NameCustomerscore
Remote MCP server URLhttps://mcp.customerscore.io
OAuth Client IDcustomerscore (any value)
OAuth Client SecretYour generated API token

The Client ID and Client Secret fields are under Advanced settings. Click Connect afterwards — the authorization step completes automatically and the Customerscore.io tools become available in your chats.

ChatGPT

Custom MCP connectors live behind ChatGPT's developer mode:

  1. Open Settings → Apps & Connectors → Advanced settings and turn on Developer mode.
  2. Back in the connector list, click Create.
  3. Fill in the connector:
FieldValue
NameCustomerscore
MCP Server URLhttps://mcp.customerscore.io
AuthenticationAccess token / API key — paste your generated API token
  1. Confirm you trust the provider and click Create.
  2. In a conversation, open + → More → Developer mode and enable Customerscore.

Choose the access token option rather than OAuth — ChatGPT sends the token as an Authorization: Bearer header, which is exactly what the server expects. Developer mode connectors require a ChatGPT Plus, Pro, Business, or Enterprise plan and currently work on the web only.

Claude Code

claude mcp add --transport http customerscore https://mcp.customerscore.io \
  --header "Authorization: Bearer your-generated-key"

Gemini CLI

gemini mcp add --transport http customerscore https://mcp.customerscore.io \
  --header "Authorization: Bearer your-generated-key"

Or add it directly to ~/.gemini/settings.json (or .gemini/settings.json in a project) — note that Gemini CLI uses httpUrl for streamable HTTP servers:

{
  "mcpServers": {
    "customerscore": {
      "httpUrl": "https://mcp.customerscore.io",
      "headers": {
        "Authorization": "Bearer your-generated-key"
      }
    }
  }
}

Cursor, Claude Desktop, and other clients

Add the server to your client's MCP configuration file (.mcp.json, ~/.cursor/mcp.json, claude_desktop_config.json, …):

{
  "mcpServers": {
    "customerscore": {
      "type": "http",
      "url": "https://mcp.customerscore.io",
      "headers": {
        "Authorization": "Bearer your-generated-key"
      }
    }
  }
}

Restart the client after saving. The Customerscore.io tools appear in the client's tool list once the connection succeeds.

Verify the connection

List the available tools with a plain JSON-RPC request:

curl -X POST https://mcp.customerscore.io \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Authorization: Bearer your-generated-key" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

A successful response contains the full tool catalog with JSON schemas for each tool's parameters.

Available tools

CategoryTools
Customerslist_customers, search_customers, get_customer_detail, get_customer_notes, get_customer_main_stats, get_customer_ai_summary, get_customers_by_renewal_date, list_churned_customers
Scoring & churnget_scoring_history, get_churn_analytics, get_churn_reasons, get_lost_mrr
Dashboards & insightsget_insights, get_dashboard_recent_health, get_dashboard_mrr_engagement, get_dashboard_trending_customers, get_statistics_overview
Segmentslist_segments, create_segment
Properties & tagslist_properties, get_property_values, list_tags
Alertslist_alerts, create_alert

All tools are read-only except create_segment and create_alert, which write new segments and smart alerts to your account.

Most customer tools work with the internal numeric customer ID. If you only know a name or email, the assistant resolves it with search_customers first.

Example prompts

Once connected, you can ask your assistant things like:

  • "Which customers are at risk of churning in the next 30 days?"
  • "Show me the customers with the biggest health score drop this month."
  • "How much MRR did we lose to churn in the last quarter?"
  • "Create a segment for customers with a Fit Score above 70 and a Health Score below 0."
  • "What are the most common cancellation reasons?"

Error responses

StatusMeaning
401Missing Authorization: Bearer header
403Invalid API token
406Content-Type is not application/json
490Scoring is not configured for the account — finish setup in the application
491Account is blocked

Rate limits are shared with the REST API — see API Introduction.