> For the complete documentation index, see [llms.txt](https://help.getmobly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.getmobly.com/documentation/mcp/mcp-server.md). Agents can also search and read this documentation through its [MCP server](https://help.getmobly.com/~gitbook/mcp).

# Mobly MCP Server

The Mobly MCP server lets an external AI application work with your Mobly data through the **Model Context Protocol** — searching leads, reading event context, and creating events on your behalf.

It is a different surface from the [REST API](https://help.getmobly.com/documentation/rest-api/rest-api-v0.md), with a different credential. If you are building a conventional integration, use the REST API. Use MCP when you want an AI assistant (Claude, or any MCP-capable client) to answer questions about your events and act on them.

{% hint style="warning" %}
**The MCP server is in beta.** It's enabled for select organizations today, and the tool set is still growing based on what early teams actually ask it to do.

**Want access?** Ask your CSM to add your organization to the beta. There's no waitlist mechanic — it's a conversation.

If a tool returns something odd, or there's something you expected to be able to ask and can't, that feedback goes through your CSM straight into what gets built next. Beta feedback is the point right now.
{% endhint %}

***

## Before you start

Two things have to be true:

* **AI connections are enabled for your organization.** An administrator turns this on under **Settings → AI Connections**. While it is off, keys cannot be minted and existing keys are refused.
* **You are an administrator.** Only administrators can mint a key for this surface, and a key stops working if its owner loses that role.

***

{% hint style="info" %}
**There's a guided version of this in the Hub.** **Settings → AI Connections** has a *Use Mobly from your AI tool* card that walks through generating a key, copying the connection address, and adding Mobly as a custom connector in Claude. It also shows when your key was last used, so you can confirm the connection works. Use that if you just want to get connected; this page is the reference.
{% endhint %}

## Endpoint

```
POST https://core-api.getmobly.com/mcp
```

Streamable HTTP, stateless. `GET` and `DELETE` are not supported.

***

## Authentication

Use a **personal** Mobly API key, minted under **Settings → General → API Keys**.

```http
x-api-key: YOUR_PERSONAL_KEY
```

If your MCP client cannot set an arbitrary header, a bearer token is accepted instead:

```http
Authorization: Bearer YOUR_PERSONAL_KEY
```

{% hint style="warning" %}
**This is not the same key as the REST API.** The REST API takes an organization key. MCP takes a personal key, and an organization key presented here is refused.

The reason is attribution: tool calls can create data, and an organization key names an organization but nobody inside it. A personal key means an event created through your AI client is owned by you, exactly as if you had created it in the Hub.
{% endhint %}

### A key is only as alive as its owner

Your keys stop working if you are deactivated or removed, if you lose administrator access, or if your organization is disabled. This is checked on every request, so offboarding someone revokes their AI access immediately without anyone hunting down keys.

It also works in reverse. Restoring a person's access brings their existing keys back; nothing needs re-minting.

***

## What the AI can do

Twenty-two tools, grouped by what they touch.

### Reading

| Tool                          | What it does                                                                            |
| ----------------------------- | --------------------------------------------------------------------------------------- |
| `search_leads`                | Find and count leads using any combination of filters                                   |
| `get_lead`                    | Everything about one lead — company, event history, qualifier answers                   |
| `search_events`               | Find your events and get their ids                                                      |
| `get_event_context`           | Dates, venue, team and activity for one event                                           |
| `get_qualifier_breakdown`     | How leads answered qualifier questions, aggregated                                      |
| `get_rep_performance`         | Rank reps by capture volume and qualifier completeness                                  |
| `get_organization_context`    | Grounding facts about your organization                                                 |
| `search_users`                | Find people on your Mobly team                                                          |
| `search_labels`               | Find your labels                                                                        |
| `search_locations`            | Resolve a venue name into a location id                                                 |
| `search_salesforce_campaigns` | Find campaigns in your connected Salesforce by name, to get a campaign id               |
| `get_lead_conversations`      | Read what was said with a lead — descriptions, rep notes, and notes typed during a scan |

### Writing

| Tool                         | What it does                                                                   |
| ---------------------------- | ------------------------------------------------------------------------------ |
| `create_event`               | Create a new event                                                             |
| `create_activation`          | Add an activation — a booth, dinner, session — to an event, and staff it       |
| `create_location`            | Add a venue Mobly does not have yet                                            |
| `create_staff_user`          | Add someone who isn't in Mobly yet to your team, so they can be put on events  |
| `link_event_to_crm`          | Point an event at the Salesforce campaign or Marketo program its leads sync to |
| `add_leads_to_event`         | Associate existing leads with an event                                         |
| `assign_users_to_event`      | Put team members on an event so they can work it                               |
| `assign_users_to_activation` | Put team members on one of an event's activations                              |
| `assign_event_staff`         | Staff an event by CRM user id or email rather than Mobly user id               |
| `add_labels_to_event`        | Attach existing labels to an event for reporting and CRM sync                  |

Each tool tells your client whether it only reads or can change data, so a well-behaved host can prompt you before a write. Treat that as a convenience rather than a control — **the real boundary is your API key and your organization's settings.**

***

## Linking an event to Salesforce or Marketo

`link_event_to_crm` sets the **same link as the Sync Event bar** in the Hub: it points a Mobly event at the Salesforce campaign or Marketo program its captured leads should sync into. The usual flow is that your own Salesforce or Marketo tooling creates the campaign or program, then this points Mobly at it.

An event has **one link per CRM**. Linking again replaces the previous link, and the result tells you what it replaced. Repeating an identical link changes nothing and says so.

### Salesforce

* `remoteId` is the **campaign id** — 15 or 18 characters, starting `701`. `search_salesforce_campaigns` will find it by name, or take it from your own Salesforce tools.
* `memberStatus` is **optional, and usually leave it out.** Without it, each lead gets whatever status your organization maps its registration state to — registered, checked in, scanned — which is the Hub's behavior. Supplying one overrides that mapping and gives every lead from the event the same status.
* If your organization has no registration mapping and you don't supply a status, the call is refused rather than guessing.
* Mobly validates both the campaign and the status against Salesforce, and a bad status comes back with the valid ones listed.

### Marketo

* `remoteId` is the **program's number** (such as `6030`) or the program's URL.
* `memberStatus` is **required**, and must be a status from that program's channel, such as `Registered`.
* **Mobly cannot query Marketo**, so neither the program nor the status can be validated before the link is made. The result carries a `statusNote` when it needs you to confirm the values against Marketo yourself.

{% hint style="info" %}
Marketo is marketing automation rather than a CRM, but it shares this tool. The parameter is still called `integration`, and it accepts `salesforce` or `marketo`.
{% endhint %}

***

## What the AI cannot reach

Every tool is scoped to the organization of the key's owner, and that scope cannot be supplied, overridden or widened by anything the AI sends. A request for data belonging to another organization and a request for data that does not exist fail identically, so a refusal never confirms whether something exists.

The AI model's own credentials are not involved on this surface and never reach Mobly.

***

## Rate limiting

A token bucket on your key: **20 request burst, refilling at one per second.** MCP traffic is counted separately from REST API traffic, so a busy integration will not throttle your AI client or the other way around.

Exceeding it returns a rate-limit error. Back off and retry.

***

## Protocol revisions

The server speaks both the current revision (`2026-07-28`) and the earlier ones (`2025-03-26` through `2025-11-25`) on the same endpoint, and picks per request. You do not need to configure anything — connect with whatever revision your client supports.

No session is created. `Mcp-Session-Id` is ignored if you send it, and streams are not resumable.

***

## Turning it off

Two levers, both immediate:

* **One connection:** delete that API key under **Settings → General → API Keys**.
* **All connections at once:** an administrator switches off **Settings → AI Connections**. Existing keys are kept but refused while it is off, so switching it back on restores every connection.

***

## Troubleshooting

| What you see                              | Usually means                                                                              |
| ----------------------------------------- | ------------------------------------------------------------------------------------------ |
| Every request rejected, valid-looking key | You are using an organization REST key. Mint a personal key instead                        |
| `403` naming who can re-enable            | AI connections are switched off for your organization                                      |
| Worked yesterday, refused today           | The key owner lost administrator access, was deactivated, or the organization was disabled |
| Rate-limit errors under light use         | Several clients sharing one key — mint one per client                                      |
| `GET` returns `405`                       | Expected. This endpoint is `POST` only                                                     |

***

## Related

* [REST API v0](https://help.getmobly.com/documentation/rest-api/rest-api-v0.md) — the conventional integration surface, with an organization key
