Connect to the LeadTruffle MCP server
Connect ChatGPT, Claude, Grok, Grok Bot, Muse, or another MCP client to read your LeadTruffle business data. Use OAuth sign-in in supported hosted apps, or supply a dedicated LeadTruffle API key in your own MCP client.
The connection is provided by LeadTruffle and requires an existing paid LeadTruffle account. It reads the business you authorize; it cannot send messages, create bookings, edit records or make purchases. For help connecting, visit the LeadTruffle help center.
Quick start
Use this MCP server URL in every client:
https://pub-api.leadtruffle.com/mcp
ChatGPT, Claude, Grok or Muse
- Add a custom connector with the URL above and choose OAuth sign-in. In ChatGPT this is a custom MCP server, in Claude a custom web connector and in Grok a custom connector. In Grok Bot or Muse, ask the assistant to add the server using OAuth.
- Sign in to LeadTruffle as a business administrator, check the business name and select Allow read access.
- Turn on the connection in your conversation and ask “Which contacts need a human?”
Claude Code or another MCP client
Create a dedicated key in Settings → API keys, then add the server. For Claude Code:
claude mcp add --transport http leadtruffle https://pub-api.leadtruffle.com/mcp \
--header "Authorization: Bearer YOUR_LEADTRUFFLE_API_KEY"
For other clients, see Connect any compatible MCP client. The sections below cover each option, the available tools, permissions and troubleshooting.
Choose your connection
| Client | Authentication | What you need |
|---|---|---|
| ChatGPT | OAuth with LeadTruffle sign-in and consent | An existing LeadTruffle business administrator account and custom MCP access in ChatGPT |
| Claude hosted apps | OAuth with LeadTruffle sign-in and consent | An existing LeadTruffle business administrator account and custom web connector access in Claude |
| Grok web | OAuth with LeadTruffle sign-in and consent | An existing LeadTruffle business administrator account and custom connector access in Grok |
| Grok Bot | OAuth with LeadTruffle sign-in and consent | An existing LeadTruffle business administrator account and permission to add an MCP app in Grok Bot |
| Muse | OAuth with LeadTruffle sign-in and consent | An existing LeadTruffle business administrator account and permission to add an MCP connector in Muse |
| Open-source, self-hosted, or other MCP clients | LeadTruffle API key | A client supporting Streamable HTTP and a credential header |
Every client uses the same MCP server URL:
https://pub-api.leadtruffle.com/mcp
The MCP address is separate from the REST API base URL, which ends in /api. Do not add /api or an API Gateway stage to the MCP address. A manual API-key connection does not require a ChatGPT account or an OAuth application.
Connect ChatGPT
- Add a custom MCP server in ChatGPT and enter the MCP server URL above.
- Select OAuth authentication. Use ChatGPT's published client identity when offered. A preconfigured confidential client is also available from LeadTruffle support.
- Sign in with your existing LeadTruffle administrator account.
- Check the business name, the ChatGPT app name, the return hostname and requested read permissions. Select Allow read access, or Cancel to leave access unapproved.
- Return to ChatGPT and select the connection for your conversation.
Start with “Which contacts need a human?” or “Summarize this contact's stored conversation.” Follow returned page cursors when you need more results.
Custom connections depend on your ChatGPT account and workspace policy. The supported return URL is https://chatgpt.com/connector_platform_oauth_redirect. A different callback must be reviewed by LeadTruffle support. See OpenAI's connection instructions.
Connect Claude
- Add a custom web connector in Claude and enter the same MCP server URL.
- Choose OAuth sign-in. Leave manually entered OAuth client credentials blank so Claude can use its published client identity.
- Sign in to LeadTruffle as a business administrator.
- Check that the consent page names Claude, shows your intended business, returns to
claude.ai, and requests only the reads you want. Select Allow read access. - Return to Claude and enable the connection in your conversation.
The hosted callback is https://claude.ai/api/mcp/auth_callback. No separate Claude client secret is required. This covers the hosted connection flow, subject to your Claude account's connector policy. Directory publication is a separate review process. See Anthropic's connector authentication guide.
Claude Code can use the API-key connection below. Its separate loopback OAuth flow is not supported.
Connect Grok web
- Open Grok connectors, choose New Connector → Custom, and enter
https://pub-api.leadtruffle.com/mcp. - Choose OAuth sign-in using Grok's published client identity. No separate client secret is needed.
- Sign in to LeadTruffle as a business administrator. Check that the consent page names Grok, shows your intended business, and returns to
grok.comorconsole.x.aibefore allowing read access. - Enable the connector in your conversation and ask for a contact or account report.
On Grok Business or Enterprise, a team administrator must first provision the custom connector in the xAI console. If Grok asks for manual OAuth credentials instead of using its published identity, contact LeadTruffle support; do not reuse another app's credentials. See Grok's connector instructions and team setup.
Connect Grok Bot
Ask your Bot to add the remote MCP server https://pub-api.leadtruffle.com/mcp with OAuth sign-in. Complete the connection card by signing in to LeadTruffle as a business administrator and approving read access for your intended business. Confirm that the app is connected, then attach it to your conversation.
Grok Bot uses Cursor's connector service. Depending on the identity it presents, LeadTruffle's consent page names Grok Bot (Cursor) or Grok and returns to www.cursor.com or grok.com. The Cursor connection supports only the approved hosted callbacks; Cursor IDE localhost sign-in is not supported. No separate client secret is needed. See Grok Bot's app connection instructions.
Connect Muse
Ask Muse to connect to https://pub-api.leadtruffle.com/mcp using OAuth and automatic registration. You do not need to enter a client ID or client secret. Sign in to LeadTruffle as a business administrator and approve the intended business and read permissions. Then ask Muse to show your account usage to verify the connection.
Existing Muse connections continue working; there is no need to disconnect or reconnect them. Automatic setup uses the same Muse identity and hosted callback as manual setup, so if automatic setup is unavailable, use the manual settings below.
If your Muse setup offers only manual client settings, the existing configuration remains supported:
- MCP URL:
https://pub-api.leadtruffle.com/mcp - Client ID:
leadtruffle-muse - Client secret: leave blank; token authentication method
none - Authorization URL:
https://pub-api.leadtruffle.com/oauth/authorize - Token URL:
https://pub-api.leadtruffle.com/oauth/token - Callback:
https://agent.meta.ai/api/hatch/oauth/callback - Start with scope
usage:readand S256 PKCE.
A dedicated read-only API key remains an alternative when supported by Muse's secure credential storage. Muse Code's separate loopback OAuth flow is not supported.
Connect any compatible MCP client with an API key
In LeadTruffle, open Settings → API keys and create a dedicated key with only the read permissions your client needs. Keep it in your client's private settings or secret storage.
Select Streamable HTTP and configure these connection fields:
{
"url": "https://pub-api.leadtruffle.com/mcp",
"headers": {
"x-api-key": "YOUR_LEADTRUFFLE_API_KEY"
}
}
The surrounding configuration format differs between clients. If your client supports bearer authentication instead of custom headers, use this alternative:
{
"url": "https://pub-api.leadtruffle.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_LEADTRUFFLE_API_KEY"
}
}
Use one credential header. API keys in URL query parameters are not accepted. Do not share your key, commit it to source control, or substitute an OAuth client secret for it.
For example, Claude Code supports remote HTTP servers with a header:
claude mcp add --transport http leadtruffle https://pub-api.leadtruffle.com/mcp \
--header "Authorization: Bearer YOUR_LEADTRUFFLE_API_KEY"
Clients supporting only local stdio processes need a trusted stdio-to-HTTP adapter. A legacy SSE-only client cannot connect directly. Protocol endpoints accept browser origins without cookies; every MCP request still requires a valid bearer token or API key. JSON-only and generic Accept headers work with the stateless JSON transport.
A key connects one business. The key's current permissions govern manual access; removing the user who created it does not revoke it. Disable or revoke the key in API keys to stop access. OAuth-managed credentials cannot be reused as manual keys.
Available read tools and permissions
The same tools are available to every connection. Each call requires the matching permission, approved through OAuth or granted to the manual key.
| Tool | What it reads | Permission |
|---|---|---|
search_contacts |
Contacts by name, phone or email, including open human escalations | inbox:read |
get_contact_conversation |
A contact and bounded conversation previews | inbox:read |
list_contact_messages |
Another page of stored messages for a contact | inbox:read |
get_analytics_overview |
Lead performance for the requested reporting dates | analytics:read |
get_revenue_report |
Recorded revenue and coverage | revenue:read |
get_account_usage |
Account usage, allowances and eligibility | usage:read |
search_integration_logs |
Stored integration activity by provider, status and time; safe error summaries | integrations:read |
list_calendars |
Existing lead and job calendars with timezone and active status | bookings:read |
list_calendar_events |
Stored appointments and scheduled job visits overlapping a time range | bookings:read |
list_bookings |
Company booking history, optionally for a contact | bookings:read |
get_booking |
Details for a returned booking ID | bookings:read |
list_contact_calls |
Stored call history for a contact | calls:read |
get_call |
Stored call details and transcript availability | calls:read |
get_call_transcript |
Pages of stored plain-text transcript | calls:read |
get_website_report |
Website sessions, page views and lead inquiries | analytics:read |
get_google_lsa_report |
Stored Google LSA leads, spend and visibility with coverage | analytics:read |
No tool sends messages, edits contacts, books appointments, changes AI settings or downloads recordings. A full-access API key does not add write tools to MCP. Empty or write-only keys cannot authenticate to this read-only server.
Search does not search message text. Record lists return one page, with at most 50 records. Transcript limits count characters (default 10,000; maximum 20,000). Preserve nextCursor, partial-history indicators, unknown values, coverage, currency and the business reporting timezone when interpreting results. An empty page or unknown value is not evidence that a business has no history or revenue. Existing reporting eligibility and API limits still apply; see Inbox API coverage and analytics and revenue.
Integration logs, calendars and booking history
Ask “Were there any ServiceTitan integration failures last week?” to filter stored logs by integrationType=SERVICE_TITAN, status=FAILURE and explicit from/to timestamps. This checks recorded activity, not live provider connectivity. Results contain a fixed diagnostic category and a known HTTP error status when available. Raw payloads, headers, credentials and free-form error text are omitted; use the integration log in LeadTruffle for full details. No matching failures does not prove a healthy connection. This tool filters logs; it does not search arbitrary payload text.
Calendar events require an explicit range of at most 90 days. They include local appointments and scheduled job visits that overlap the range, including canceled records with their status. They do not fetch external calendars, provide live availability or include unscheduled visits. Use the returned calendar timezone for display.
Booking history requires both bookedFrom/bookedTo or both appointmentStartFrom/appointmentStartTo, each range at most 90 days. It combines local appointments and recorded external booking actions. Requested time slots are not proof of a current provider appointment; preserve timeSource, originEvidence and statusFreshness. The upcoming view includes confirmed local appointments only. Integration and booking ranges include the start and exclude the end. Keep filters unchanged when using nextCursor.
Calls and transcripts are stored history, not a complete provider archive. Missing transcripts remain unavailable; the connection never downloads recordings. Website and Google LSA reports retain the existing reporting timezone, date limits, freshness and coverage.
The corresponding REST reads are GET /api/v2/pub/integrations/logs, /api/v2/pub/calendars, /api/v2/pub/calendar-events and /api/v2/pub/bookings. Their complete parameters and response schemas are in the API reference.
Consent, renewal and revocation
Existing approvals retain their original scopes. To use the new integration, calendar/booking and call reads, reconnect and explicitly approve integrations:read, bookings:read and calls:read. Updating the tool catalog does not expand an existing grant. Restricted manual API keys need the corresponding permissions; full-access keys already permit all read scopes.
OAuth approval belongs to the administrator's current business. Agency-wide access and non-admin delegation are not supported. Removing that administrator, changing their role, disabling their user/company or revoking the connection stops access and renewal. Increasing the backing credential's permissions cannot broaden the approved reads.
OAuth access tokens last 15 minutes and renew for up to 30 days before a new connection is required. A replayed or failed renewal can require reconnecting sooner. Refresh tokens rotate; clients must store the replacement supplied by the server.
For OAuth connections, open Settings → API keys → Manage MCP connections, identify the app and choose Revoke access. This stops that connection's reads and renewal without changing unrelated integrations. Remove the connector in the AI app separately if desired. Reconnect from that app to approve access again.
For manual clients, disable/revoke the dedicated API key in API keys. Revoking an OAuth grant does not revoke an unrelated manually created key.
Only data requested through a tool is returned to the connected AI app. MCP does not import your AI conversations or run a background contact sync. Review the AI app's own data policy before sharing business information.
Troubleshoot a connection
| Symptom | What to check |
|---|---|
| Server unavailable or address not found | Use the exact MCP URL rather than the REST /api URL. |
| OAuth sign-in or consent fails | Use a business administrator account and restart from the AI app. Check the app, return hostname and business shown on consent. |
Setup reports invalid_redirect_uri or registration fails |
Automatic registration is only available for Muse. ChatGPT, Claude and Grok use their published identities without registering; for desktop or IDE clients, such as Claude Code or Cursor, connect with an API key instead. |
| Renewal fails | Reconnect from the connected app to create a fresh approved connection. |
| Manual authentication is denied | Check that the key is active, belongs to the intended business and has at least one supported read permission. Send one credential header. |
| One tool is denied | Check that its specific permission was approved or granted to the key. A valid connection may have fewer permissions than the tool catalog. |
| Results seem incomplete | Follow nextCursor; check partial-history flags, date range, timezone and reporting coverage. |
| Requests are limited | Honor the returned retry delay and reduce polling. See errors and rate limits. |
| Browser or transport error | Use Streamable HTTP through a compatible client. Check the browser origin; GET/SSE and stdio are not served directly. |
Protocol details
The endpoint accepts MCP JSON-RPC over POST using stateless Streamable HTTP with JSON responses. Initialization, tools/list and tools/call use the standard MCP SDK protocol. Initialization notifications return HTTP 202. There is no persistent MCP session or GET/SSE stream; authenticated GET and DELETE requests return HTTP 405.
Unauthenticated requests return HTTP 401 and a WWW-Authenticate header pointing to protected-resource metadata. OAuth discovery is available at https://pub-api.leadtruffle.com/.well-known/oauth-protected-resource and https://pub-api.leadtruffle.com/.well-known/oauth-authorization-server. The server supports authorization code with S256 PKCE and rotating refresh tokens for the approved ChatGPT, Claude, Grok, Grok Bot (Cursor) and pre-registered Muse identities and hosted callbacks. Omitted resource parameters bind to this MCP endpoint, and omitted authorization scope defaults to usage:read. Explicitly different resources are rejected. Automatic registration is available for Muse’s hosted callback and returns its existing public client identity. Arbitrary callbacks and machine-to-machine grants are not supported. Use an API key for other clients.
For client developers: discovery advertises https://pub-api.leadtruffle.com/oauth/register. POST registration metadata containing Muse's hosted callback to receive the public client configuration. The response lists available read permissions; registration itself grants no account access. Unknown extensions are ignored, and requested names, credentials or grant types cannot change the registered identity. See the registration contract.
For examples that call REST directly instead of MCP, use the API quickstart. For downloadable reference material, use docs for AI agents.