MCP Servers

Connect Claude, ChatGPT or Gemini to your Karmaflow.ai data with the built-in MCP server, and give your agents external tool servers through the Model Context Protocol.

MCP Servers

MCP (Model Context Protocol) servers allow AI systems to interact with external tools and data sources through a standardized protocol. Karmaflow.ai supports MCP in two ways:

  1. Built-in MCP Server — Karmaflow.ai exposes its own MCP endpoint so external AI assistants (Claude, ChatGPT, Gemini, Cursor, Windsurf, custom apps) can manage contacts, conversations, and orchestrations programmatically.
  2. External MCP Servers — Connect third-party MCP servers so your Karmaflow.ai agents gain access to additional tools.

Built-in MCP Server

Karmaflow.ai provides a tenant-scoped MCP server that external AI clients can connect to. This enables AI agents outside Karmaflow.ai to read data, manage contacts, and build orchestration workflows programmatically.

Endpoint

https://omni.karmaflow.ai/mcp/{tenantId}

Authentication

The built-in MCP server uses OAuth 2.0 with PKCE for secure authentication. MCP-compatible clients (Claude, ChatGPT, Cursor, etc.) handle the OAuth flow automatically when you provide the server URL.

Alternatively, API key authentication is supported via the X-API-Key header for programmatic access.

Connect an AI assistant

The same endpoint is added to each assistant as a custom connector; the assistant signs in through Karmaflow.ai's own consent page, which names the assistant that is asking (Authorize Claude, Authorize ChatGPT) and takes a tenant API key once. Make the key first, under Settings (the gear icon) → Access & security → Tenant API Access (sign-in required); the same page's MCP Server card shows your endpoint and these steps.

Claude

  1. In Claude, open Settings → Connectors and choose Add custom connector.
  2. Paste your endpoint, https://omni.karmaflow.ai/mcp/{tenantId}, as the URL and add it.
  3. When Claude asks you to sign in, our page reads Authorize Claude. Paste the tenant API key and press Authorize Access.

Claude Code

  1. In a terminal, add the endpoint: claude mcp add --transport http karmaflow https://omni.karmaflow.ai/mcp/{tenantId}.
  2. In Claude Code, run /mcp, choose karmaflow and authenticate. Your browser opens our page, which reads Authorize Claude Code.
  3. The page also says access goes back to a program on your computer, because Claude Code signs in through a local address (http://localhost or http://127.0.0.1 on a port it picks). Continue only if you just started Claude Code yourself. Paste the tenant API key and press Authorize Access.

Claude Code can also skip the sign-in and send a key on every call: the X-API-Key header shown on the MCP Server card.

ChatGPT

  1. In ChatGPT, open Settings → Plugins → Browse directory, then Add (top right) → Add custom MCP server. If Add is missing, turn on Developer mode under Settings → Security and login first. (Seen on a Plus plan on 2026-11-04; older builds call the page Connectors.)
  2. Name it Karmaflow, paste your endpoint as the Server URL and leave Authentication on OAuth. ChatGPT discovers our sign-in settings itself (dynamic client registration, scope mcp): leave them as they are; there is no client id or secret to copy. Tick I understand and want to continue and press Create as a plugin.
  3. Press Connect Karmaflow when ChatGPT offers it. Our page opens in the same tab and reads Authorize ChatGPT. Paste the tenant API key and press Authorize Access. ChatGPT returns to its Plugins page with Karmaflow under Personal; Try in chat opens a chat with the connector on.

Connect with your own login: two URLs for every workspace

Which address fits which job, with examples, and every assistant's steps: Connect Claude, ChatGPT or Gemini.

Instead of an API key, an assistant can sign in to Karmaflow.ai with your own login. It then acts as you, with your role's permissions, only while you are a member of the workspace, and what it changes is recorded as yours, "via" the assistant. You choose the workspace and allow what it may do on our consent page. There are two addresses, the same for every workspace:

URL What it offers Use it for
https://mcp.karmaflow.ai/mcp A curated set of everyday tools: contacts, deals, tasks, notes, meetings, tickets, documents and analytics tabs The Karmaflow.ai apps listed in assistant directories
https://mcp.karmaflow.ai/mcp/workspace Every tool your role allows: agents, orchestrations, knowledge, sent emails and texts, calls and chats, inventory, Jobs, websites and the rest A custom connector or custom app you add yourself

On the workspace URL, an assistant should call get_workspace_guide first; the instructions Karmaflow.ai sends when an assistant connects say so. It answers with what this connection may read and change, which tools do what, and the order to set an account up in. It also states the rules that decide when a change goes live: agents stay drafts until promote_agent makes them live, and orchestrations are saved paused until they validate and are switched on.

Three things limit what a connection can do, on both URLs: your role, the workspace admin's AI access setting for external agents (per role and per area, under Settings (the gear icon) → Agents & AI → AI access (sign-in required)), and what you allowed on the consent page. Reconnect to allow more. A workspace admin can switch sign-in connections off under Settings (the gear icon) → Access & security → Tenant API Access (sign-in required), on the MCP Server card; no assistant can connect by sign-in while it is off.

Gemini

Gemini connects as a custom app, by signing in. Use the workspace URL, https://mcp.karmaflow.ai/mcp/workspace, not the endpoint above.

Google offers custom apps in the Gemini web app to personal Google accounts (not work or school accounts), for people 18 or over in the US, in English, with Gemini History on. Outside those limits Gemini does not show the option; nothing on the Karmaflow.ai side needs to change when Google widens them.

  1. On a computer, open Gemini on the web, then Settings → Connected Apps (or Personal Intelligence → Connected Apps). Under Custom apps, choose Add a custom app.
  2. Paste https://mcp.karmaflow.ai/mcp/workspace as the MCP server URL and press Next. Gemini registers itself (dynamic client registration): leave any client id and secret fields empty.
  3. Sign in to Karmaflow.ai when Gemini asks, choose the workspace, review what Gemini will be able to do and press Allow.

The app then works in the Gemini web and mobile apps. Type @ and pick it to make sure a prompt uses it. Gemini asks you to confirm each action that changes data. To remove it, turn it off under Custom apps in Gemini, or remove the connection under your user menu → Account Settings → Connected AI assistants (sign-in required).

Karmaflow.ai accepts ChatGPT's sign-in only on its connector callbacks (chatgpt.com/connector/oauth/… and chatgpt.com/connector_platform_oauth_redirect), Claude's on claude.ai or claude.com, Gemini's on Google's account-linking callbacks (oauth-redirect.googleusercontent.com/r/… or /a/…, and Google's sandbox and test hosts of the same name), and Claude Code's on /callback at a local address; any other address is refused before a key can be typed or a sign-in allowed.

Microsoft Copilot takes no custom connector yet. Ask AI on a dashboard card or the Calendar offers Copy for Microsoft Copilot instead: the prompt is copied and Copilot opens for you to paste it. A connector through Copilot Studio is planned.

Once connected, an assistant can read an analytics tab you may open in full (run_dashboard), look a contact up (get_crm_dossier) and run every other tool below. Which personal data its results leave out is the next section.

Disconnecting an assistant

Revoking the API key that approved a connector disconnects it. On Settings (the gear icon) → Access & security → Tenant API Access (sign-in required), press Revoke on the key's row: calls made with that key stop at once, and every Claude, Claude Code or ChatGPT connector approved with it stops within a minute and asks to be connected again. To keep one assistant connected while you disconnect another, approve each with its own key.

To see which assistants are connected, look under Connected with an API key on the same page's MCP Server card: one row per key and assistant, with when it was last used. A connector does not say which person uses it, so the list names the key.

A connector approved before 30 October 2026 was not tied to a key. It asks to be connected again once, and from then on it follows the key you approve it with.

Redacting personal data from tool results

You choose what personal data the built-in server's tool results leave out, on Settings (the gear icon) → Access & security → Tenant API Access (sign-in required). An AI model replaces each chosen type (names, phone numbers, email and street addresses, dates of birth, SSNs, card, bank, passport and driver's licence numbers, IP addresses) with a marker such as [REDACTED EMAIL].

Neither sends a result it could not redact. If the redaction model is unavailable, or the workspace's redaction setting cannot be read, the assistant gets a short error instead of the result and is told to try again in a moment. This holds for every connection: one made with an API key, a connector approved with a key, and one a person made by signing in to Karmaflow.ai. The Ask AI buttons on dashboard cards and on the Calendar work the same way and send nothing when redaction fails; see Build your own analytics tabs.

Available Tools

The MCP server exposes the following tools over JSON-RPC 2.0:

Contact Management

Tool Description
list_contacts Search and paginate contacts
get_contact Retrieve a single contact by ID
create_contact Create a new contact. If the phone number is already on an unnamed record left by a call or text, the details are added to that record. The result's number_outcome says when the number was already held
update_contact Update contact fields. Consent and the "cannot receive texts" mark are changed on the contact page, not here
get_contact_consent A contact's consent on each channel, as the contact page's consent card shows it: opted out and since when, their opt-in (live, lapsed, pending or none) and where it came from, whether a campaign message would be held now and why, and their consent history. Website chat and Google Local Services messages follow the contact's "do not contact" only

Conversation History

Tool Description
list_calls List outbound call records
list_chats List chat sessions with logs
list_meetings List Calendar meetings: one contact's, one person's, or all in a window, with their state, history and reminders
get_meeting_research Read the research made for one meeting booked on a booking page: where it stands, the note for the host, the sentence each outside statement rests on, what the check removed, and how it counted. See Meeting Research
get_meeting_research_settings Read the workspace's meeting research settings, and whether research may run here at all
update_meeting_research_settings Switch meeting research on or off and change its settings (needs Manage Calendar Settings). Refused, with the reason, in a healthcare workspace
list_sent_emails List the emails Karmaflow sent (agents, campaigns, reminders, the app). Mail sent from a person's own mailbox, and meeting invitations Google or Microsoft send, show on the contact's timeline instead
list_sent_sms List sent SMS messages

Orchestration Management

Tool Description
list_orchestrations Search and paginate orchestrations (summary view)
get_orchestration Retrieve full orchestration with step graph
create_orchestration Create a new orchestration with auto-linked steps
update_orchestration Replace an orchestration's steps
delete_orchestration Delete an orchestration
toggle_orchestration_enabled Enable or pause an orchestration
validate_orchestration Dry-run validation without saving

Reporting & Raw Data

Tool Description
list_call_events List raw voice call events with transcripts, durations, call_analysis analytics, and token usage
list_chat_logs List individual chat messages across all sessions
list_sms_sessions List text conversation sessions: SMS, and Google Local Services messages, each row naming its channel (filter with channel)
list_sms_messages List individual text messages with direction, sender role and channel (SMS or Local Services)
list_task_agent_logs List task agent execution runs with tool calls, execution time, and success/failure
list_voice_campaigns List voice campaign/agent configurations
list_orchestration_logs List orchestration workflow execution logs
list_session_audit_logs List the post-session review records written after a conversation, with outcome classification and quality flags. This is not the workspace audit trail: that is list_audit_events

All reporting tools support pagination (page, pageSize) and date range filtering (startDate, endDate as ISO 8601). Chat sessions include rich analytics data (labels, visitor_profile, account, conversation_outcome, opportunity_metrics, agent_metrics) and voice calls include call_analysis — both are returned in full so consuming AI agents can perform their own analysis.

Governance

What a workspace admin reads on the app's own pages to check that agents and automations behave. Each tool reads the same data as its page and keeps that page's rights for a person (a workspace admin, or the Billing role for spend). A connector approved with an API key has the workspace's reach.

Tool Description
list_audit_events The workspace audit trail, newest first, as Settings (the gear icon) → Access & security → Audit Trail shows it: who did what to which record or setting, how they were signed in, the fields that changed, and sensitive reads. Filter by actor, action, area, record, sensitivity and dates. For workspace admins
get_audit_event One audit event in full. A workspace admin reads any event; anyone else only their own
list_security_findings The workspace's security findings with their counts, as Security Findings shows them. For workspace admins
acknowledge_security_finding Mark a finding as seen, or unmark it, as the page's Mark as seen does. Recorded in the audit trail with who did it
get_spend_and_usage The spend limits in force for the current period and where each stands, and usage per agent for a billing period (a month, YYYY-MM). Needs billing access
get_ai_autonomy The AI autonomy settings: for each kind of action whether the AI may do it on its own, must ask first, or never does it, with its track record, and the floors no setting changes. For workspace admins

Supervision

Watching an autonomous campaign's recipients, and checking what the AI did on its own. The campaign tools do what the campaign's Recipients tab does, with its permissions: reading needs access to email agents, and pausing, resuming or taking over needs permission to manage them. The handled-action tools do what AI Inbox → Handled for you does: each queue shows its actions only to people who can open that queue, and undoing an action needs the permission that queue names. A connector approved with an API key has the workspace's reach. Every change records who made it, the person or the key, and its result says what changed and who, if anyone, was told.

Tool Description
list_campaign_enrollments A campaign's recipients, as the Recipients tab lists them: where each one stands, the outcome so far, and any channel the campaign cannot use for them. Filter by status, outcome, or recipients whose last step failed
get_campaign_enrollment One recipient in full: the plan, the work order and every decision the campaign made for them
get_campaign_enrollment_summary A campaign's counts by status and outcome, and what it has spent in AI calls and messages
pause_campaign_enrollment Stop the campaign contacting one recipient until someone resumes it, as Pause does. Nobody else is told
resume_campaign_enrollment Put a paused recipient back in the campaign, as Resume does. The campaign decides its next step at once
take_over_campaign_enrollment Take a recipient over from the campaign, as I've got this does: the campaign stops writing to them and marks them handed off. No task is created; you pick it up from there
list_handled_actions What the AI did on its own on the queues you can open, newest first, with whether each can still be undone. The text an agent wrote is not included
undo_handled_action Put a record back as it was before the AI changed it, as Undo does, when nobody has changed it since. If it has changed, or was already undone, the result says so and nothing happens
mark_handled_action_wrong Record that an action was wrong without undoing it, as Mark as wrong does, with an optional note. It counts against the AI's track record for that kind of action

Records

What a record's page shows beyond the record itself. The timeline and notes follow the record page: you can read them on any contact, lead, company or deal you can open, and a timeline leaves out what your role may not see there (orders, Workiz jobs, calendar meetings) and anything from a switched-off module. The stage history needs access to deals. Lists and their members need access to contacts, and, as on the Lists page, a list shows all its members. Tags need access to the kind of record they are on. A connector approved with an API key has the workspace's reach.

Tool Description
get_record_timeline One contact's, lead's, company's or deal's timeline, newest first, as its record page shows it: calls, chats, emails, texts, meetings, notes, tasks and changes, each with when, who and a short summary. Filter by kind of row, direction and dates; page with a cursor
list_notes The notes on one record, newest first, with who wrote each and when
get_deal_stage_history The stages a deal has been through and how many days it spent in each, counted in calendar days in the workspace's time zone, as the deal page counts days in stage. For an older deal whose moves were not all recorded, the result says what is not known
list_lists The contact lists, as CRM → Lists shows them: each list's size, how many members have an email address that bounced, and how it was built
list_list_members The members of one list, with each contact's name, email, phone, company, lifecycle stage and tags. Search, sort, or narrow to one of the list page's readiness groups
list_custom_fields The custom fields defined for contacts, companies and deals (or one kind of record): name, key, type, choices, whether required, and whether people or AI research fill it
list_tags Every tag in use on contacts, leads, companies or deals

Documents

The document tools prepare, send and follow a document request, the same requests a document agent's Requests from other agents setting allows. Every document is someone's, so each call acts as a person, with that person's Documents permissions:

Before a document goes out, a key's documents wait for approval by default: document_send, or a template whose policy sends on its own, leaves the document as a draft in the sender's AI Inbox under Documents to send, and tells them. Nothing goes out until they press Send there or on the document; Discard voids it. This holds for every template, including one whose policy asks for human review: the sender pressing Send is that review. An admin can set a key to send directly instead; such a key follows the template's policy, so a template that asks for review is not sent through it. Either way, the document shows "<Name> via the '<key>' key", the workspace audit trail records the person as the one who acted and names the key, and the person is told when a document or a reminder goes out in their name. An API key cannot press Send on a document held for a person. A reminder through a key goes out directly, only for a document sent in the name of someone the key may send as, under the document's own reminder limit and waiting time.

Tool Description
document_templates The document agents (templates) this caller may request from over MCP, with the information each needs
document_create Request a document from a template, with its inputs. Preparation runs in the background: keep the returned request id. With a key, sendAs chooses who it is from
document_status A request's progress: preparation, review, the version, each recipient's response and delivery. A held document says whose AI Inbox it is waiting in
document_find_requests Recent requests for one customer, to pick up where another channel left off
document_send Send a prepared document when its policy allows sending without review. With a key that waits for approval, it is held for the sender instead, whatever the template's policy: their Send is the review
document_remind Remind the active recipients, within the document's reminder limit
document_upload Upload your own PDF as a draft, from the file or a public https link (up to 25 MB, 200 pages), with its recipients: sign, review, review and sign, or copy (receives the completed PDF only). It returns the page text with positions, so fields can go beside a label such as "Signature:". Nothing is sent
document_place_fields Place signature, initials, date, text and checkbox fields for each signer, beside a text label or at page coordinates. If any field cannot be placed, none are, and each problem is named. It says when the document is ready to send

Upload, place, send. A document you upload has no template, so document_send sends it as you, the same as pressing Send on the document, and document_remind reminds its recipients as Remind does. Without stages, recipients follow the workspace's routing (colleagues first by default). document_place_fields works on uploaded PDFs only; a document made from a template has its fields placed on the Documents page.

With a key, the key sends or reminds only for documents made in the name of someone it may send as. A key that waits for approval holds the document in the sender's AI Inbox as above. A key that sends without approval cannot send under a workspace policy that requires review, the default.

The two upload tools work over MCP only; they are not offered to agents on calls, chats or texts. Through the Karmaflow plugin a request is limited to about 1 MB, so send a larger PDF as a link.

Reference & Catalog

Tool Description
fire_orchestration_trigger Fire a named trigger for a specific contact. Returns at once with the run ID of each workflow it starts; the workflows run within about a minute
get_trigger_catalog List all available trigger keys by category
get_reference_data Get IDs for agents, strategies, campaigns, lists, and forms

Analytics

Tool Description
ask_data_analyst Ask a natural-language question about your communication activity and get an analyzed answer
get_conversation_insights The dashboard's Conversation Insights cards over a date range, narrowed by channel or by who handled the conversation
list_dashboards The custom analytics tabs you may read: signed in, your own private tabs and the shared ones your role reads; with an API key, the shared tabs only
run_dashboard Run one of those tabs: every widget's figures, the population and the comparison, as the screen shows them

ask_data_analyst is the same AI data analyst that powers the embedded chat on the Neo4j analytics dashboard. It queries the tenant's knowledge graph (topics, threads, organizations, contacts, engagement, replies) and returns a written answer, the cypherQuery it ran, and any chart it generated. Pass a question string; for multi-turn follow-ups, include prior turns in the optional history array ([{ role, content }]). It requires Neo4j analytics to be configured and enabled for the tenant.

Building Orchestrations via MCP

External AI agents can build complete orchestrations programmatically by:

  1. Calling get_trigger_catalog to discover available trigger keys
  2. Calling get_reference_data to find valid IDs for agents, strategies, campaigns, and lists
  3. Composing a steps array and calling create_orchestration

Steps are provided as an ordered array of { type, name, config } objects. The server automatically generates stepId, order, and connectedTo fields, linking steps in sequence.

Step Types

Triggers — What starts the workflow:

Actions — What the workflow does:

Branches — Conditional routing:

See Building Workflows for detailed step configuration reference.


External MCP Servers

Connect third-party MCP servers to extend what your Karmaflow.ai agents can do.

Managing External Servers

Navigate to Settings > MCP Servers to view and manage your configured servers.

Adding an External MCP Server

  1. Click + Add Server
  2. Configure the server:
    • Name — Descriptive name for the server
    • URL — The MCP server endpoint
    • Authentication — API keys or tokens required by the server
    • Application — Optionally tie the server to a Karmaflow.ai-managed integration so Karmaflow.ai supplies the credentials for you (see below)
  3. Click Save

Application Integrations (managed OAuth)

Some external MCP servers don't take a static API key — they use OAuth, and Karmaflow.ai manages that connection for you. Set the Application field on the server to one of the managed integrations and Karmaflow.ai injects the right credentials on every request:

Application Server URL Notes
Cal.com https://mcp.cal.com/mcp Lets agents check availability and book meetings. Connect your account(s) first under Settings > Cal.com, then pick a Cal.com Account on the server. If left unset, the server uses your default connected account. See Cal.com Integration.
HubSpot (HubSpot MCP endpoint) Uses your connected HubSpot OAuth credentials.

When Application is set to a managed integration, you do not add an API key on the MCP server itself — Karmaflow.ai attaches the stored OAuth token for the selected account automatically and refreshes it as needed.

Which Servers You Can Connect

Karmaflow.ai speaks MCP the way the specification requires, so any server that follows it connects — including servers that enforce the protocol strictly and refuse shortcuts.

Server style What Karmaflow.ai does
Streamable HTTP (protocol 2025-06-18 and 2025-03-26) — the current transport, used by servers built on the official MCP SDKs Runs the full handshake (initialize, then notifications/initialized, then requests), sends the session id and the protocol version the server negotiated on every request, reads answers whether they arrive as JSON or as an event stream, and starts a new session automatically if the server expires the old one.
HTTP+SSE (protocol 2024-11-05) — the older transport, still served at /sse by many hosted servers Detected automatically: Karmaflow.ai opens the event stream, posts to the endpoint the server announces, and reads answers off the stream.
Bare JSON-RPC — lightweight servers that answer tools/list without an initialize step Still supported, as a fallback.

One thing a server can require that Karmaflow.ai does not do for it: an OAuth sign-in. If a server answers with HTTP 401 and points at OAuth resource metadata, it expects the caller to complete that provider's OAuth flow. Use a managed Application where one exists (see above); otherwise obtain a token from the provider and add it as a custom header, for example {"Authorization": "Bearer <token>"}.

Checking a Server

After saving, click the Tools button (the wrench icon) on the server's row. Karmaflow.ai connects with the credentials you configured and lists the tools the server offers. The dialog also names the transport it connected over, for example Connected over Streamable HTTP (2025-06-18) · acme-mcp 1.4.0.

If the connection fails, the dialog shows the server's own answer:

Message What it means
HTTP 401 Unauthorized or HTTP 403 Forbidden The server refused the credentials. Check the API key, or the token in your custom Authorization header. The message quotes the server's WWW-Authenticate hint when it sent one.
HTTP 404 Not Found or HTTP 405 Method Not Allowed Nothing MCP answered at that URL. Hosted servers usually end in /mcp or /sse — check the provider's documentation for the exact path.
Could not reach the MCP server DNS, network or TLS failure. The server must be reachable from Karmaflow.ai's servers; one on a private network or on your own machine will not be.

How Agents Use External MCP

When an external MCP server is configured, its tools become available to your AI agents. During supported workflows, agents can:

  1. Discover available tools from the MCP server
  2. Call tools with appropriate parameters
  3. Use the results to inform their responses

On an agent's Tools tab, ticking a server attaches it and lists its tools underneath. Tick the tools the agent may use. What a server with none of its tools ticked means depends on the agent type, and the page says which in amber under the server:

Agent type No tools ticked on an attached server
Task, SMS and email agents The agent gets every tool the server lists
Chat and voice agents The agent gets none of the server's tools

If the server does not answer when the page opens, its box shows the server's own error instead of the list.

Each server is checked when a task, SMS or email agent run starts, and on each chat turn; a voice call lists each server's tools when it starts. If a server does not answer (it is down, or refuses the credentials), the agent works without that server's tools rather than failing the whole run or turn, and its other tools keep working. Task, SMS and chat agents are told which server is missing, so they say what they could not do instead of guessing. A task agent's run details, in its logs, list the server under Tool servers left out of this run with the reason. Use the Tools button above to see what the server is answering.

Example Use Cases

Security

All MCP server credentials are stored securely and are only accessible within your tenant context. Each connection is isolated per tenant. The built-in MCP server enforces OAuth 2.0 or API key authentication on every request.