Appearance
CRM MCP server
The CRM MCP server lets an MCP client work in one sub-account with the whole public API: contacts, conversations, opportunities, calendars and booking, tasks and notes, courses, programmes, assessment results, custom values and more. It is separate from the workflow-drafting MCP endpoint.
You'll need
- An MCP client that supports remote servers over Streamable HTTP, with OAuth (Claude.ai, ChatGPT connectors, Claude Code, MCP Inspector), or a sub-account API key for clients configured by hand.
Address and transport
POST https://api.example.com/api/v1/mcp/crm on your API origin. Streamable HTTP, stateless, JSON answers (Accept: application/json, text/event-stream). GET and DELETE answer 405.
Sign-in (OAuth 2.1)
A request without a credential answers 401 with WWW-Authenticate: Bearer resource_metadata="https://api.example.com/.well-known/oauth-protected-resource/api/v1/mcp/crm". From there a client discovers everything itself:
- Protected resource metadata (RFC 9728):
/.well-known/oauth-protected-resource/api/v1/mcp/crm. - Authorization server metadata (RFC 8414):
/.well-known/oauth-authorization-server. The authorization endpoint is the app's consent page (/oauth/consenton the app address); the token endpoint is/api/v1/oauth/token. - Dynamic client registration (RFC 7591):
POST /api/v1/oauth/registerwithclient_nameandredirect_uris(https, or http on localhost). Only public clients register:token_endpoint_auth_methodisnoneand PKCE (S256) is required. The answer holds theclient_id(mcpc_...).
The user signs in, picks a sub-account and allows the client. Any team member may allow an MCP client for themselves (apps registered in the developer portal still need a sub-account admin). A client that sends no scope gets every scope an MCP client may hold: all public scopes except webhooks:write and workflows:write. Tokens are the usual ones: an access token for 1 hour, a rotating refresh token for 30 days, bound to the sub-account that consented. See API keys and scopes.
Clients configured by hand can send a sub-account API key instead, as Authorization: Bearer sk_live_... or X-API-Key.
Tools
There is one tool per public API operation, named after its operation id in snake case: list_contacts, create_contact, find_contact, list_free_slots, book_appointment, draft_reply, list_contact_programs, list_assessment_responses and so on. Webhook subscriptions and event polling are not tools.
- A tool's arguments are the operation's path parameters, query parameters and body fields (a body that does not fit is one
bodyargument). Lists takelimitandcursorand returnnextCursor. - A call runs the REST route itself, as the same credential: the same validation, scope check, plan check, rate limits and
Idempotency-Keyhandling, and the same answer shape. Errors come back asisErrorresults with the HTTP status and error code. - Tools that change data start their description with
WRITES:and carryreadOnlyHint: false(destructiveHint: truefor deletes). draft_replysaves a suggested reply as an internal note on the conversation; it never sends.
The list a client sees is narrowed to:
- the scopes the token or key holds;
- the modules on in the sub-account's plan;
- for an OAuth connection, the team permissions of the person who allowed it: areas switched off are hidden, and so are areas where they see only records assigned to them. A person who leaves the agency loses the connection at once.
Limits and audit
- 60 requests a minute per connection (
429withRetry-After), on top of the public API's limits. - Every call is logged with the credential, the person, the client, the tool, whether it writes, and the outcome. The sub-account sees them in Integrations > AI assistants.