Skip to content

MCP server

Ask Claude or ChatGPT about your customers.

GainTrace runs a Model Context Protocol (MCP) server, so an AI assistant can read your accounts the way a CSM does in the app: health scores with their reasons, churn risk, renewals, signals and what changed. It works in Claude, ChatGPT, Cursor and any client that speaks MCP.

Server details

Server URL
https://app.gaintrace.com/api/v1/mcp
Transport
Streamable HTTP
Sign-in
OAuth 2.0 with PKCE and dynamic client registration, or a private-app token sent as a bearer header
Access
The workspace and permissions of the person who connects it, narrowed to the scopes they approve

Connect your assistant

You need a GainTrace account first. Assistants cannot create one; a person signs up at app.gaintrace.com.

Claude

  1. Open Settings, then Connectors, and add a custom connector.
  2. Paste the server URL: https://app.gaintrace.com/api/v1/mcp
  3. Sign in to GainTrace when Claude asks, and approve the scopes.

ChatGPT

  1. Where your ChatGPT plan allows custom MCP apps or connectors, create one in Settings.
  2. Use the server URL https://app.gaintrace.com/api/v1/mcp and choose OAuth.
  3. Sign in to GainTrace and approve the scopes.

Cursor and other OAuth-capable clients

  1. Add an MCP server entry that points at https://app.gaintrace.com/api/v1/mcp.
  2. The client registers itself and opens the GainTrace sign-in; approve the scopes.

Scripts and clients without OAuth

  1. In GainTrace, open Settings, then API, then Private Apps, and create an app with the scopes you need.
  2. Copy the token (it starts with gt_live_) and send it as Authorization: Bearer <token>.

What you can ask

A few of the questions the server answers, and the tool that answers each one.

QuestionTool
Which accounts are at risk of churning?gt_at_risk_companies
Why did this account's health score drop?gt_explain_health
How has this account's health moved this quarter?gt_health_history
Which renewals are coming up?gt_renewal_pipeline
What changed on this account this week?gt_what_changed
Which accounts are ready to expand?gt_expansion_opportunities
Brief me before my call with this customer.gt_brief_company

The server lists its full tool set when a client connects; which tools appear depends on the scopes you approve.

Permissions and safety

  • An assistant sees only what the person who connected it can see in GainTrace, and only within the scopes they approved.
  • Read scopes (read:companies, read:health, read:signals and others) let it look. Write scopes (write:companies, write:contacts and others) let it make changes, such as creating tasks and notes or updating account fields; without them it cannot change anything.
  • Outreach the assistant composes comes back as a draft for a person to send. Anything that contacts customers directly, such as survey invitations, needs its own write scope.
  • Every call is recorded in the workspace audit log and rate-limited per workspace, token and tool.
  • If the workspace restricts access to an IP allowlist, MCP calls from other addresses are refused.

For developers and agents

  • auth.md: registration, the PKCE flow and every scope, for agents.
  • Agent skill: a ready-made SKILL.md for connecting to this server.
  • REST API docs: push product-usage events and signals, read customer data, run surveys.
  • OpenAPI 3.1 spec for the REST API.

See it on your own accounts

A demo is a 30-minute working session with a co-founder, mapped to your use case.