# Zocton MCP

The **Zocton MCP** is one Model Context Protocol server for every Zocton app. Connect it to Claude,
ChatGPT or any other AI app that speaks MCP, and the app can read — and, if you allow it, change —
your Entayo CRM, TurboWorkflow, TraceFlow, ZuvoChat, PaceForms, Any.st and Zocton Dashboard data.
It always acts as you, never with more access than you have.

## The address

Use the data centre your workspace lives in:

| Data centre | MCP address |
|---|---|
| Asia | `https://apac.zocton.com/mcp` |
| Europe | `https://eu.zocton.com/mcp` |
| North America | `https://na.zocton.com/mcp` |

You can also use an [MCP link](#mcp-links), which offers only some apps. The server speaks MCP over
streamable HTTP (POST, JSON answers). It offers tools only — no prompts or resources.

## Connect Claude.ai or ChatGPT (sign in with OAuth)

1. In the AI app, add a **custom connector** with your MCP address and click **Connect**.
2. Your data centre's Zocton sign-in opens — sign in as usual. If you are already signed in, this
   step is skipped.
3. The screen asks **Allow … to use your Zocton account?** Choose **Read and change** or
   **Read only**, untick any apps it should not use under **Which apps**, and click **Allow**.

The connection acts as you, in your own account, in this data centre only. It covers your whole
account — there is no project step. Disconnect it any time in the AI app's connector settings.

The sign-in uses OAuth 2.1 with dynamic client registration and PKCE, so AI apps register
themselves; there is nothing to set up on the Dashboard. Access tokens start with `zmo_` and last
an hour; the app renews them with a refresh token (`zmr_`) on its own. An account in another data
centre is shown the right address.

## Connect Claude Code or your own scripts (a zk_ key)

Make a key on the Zocton Dashboard under **API Keys** — see [API keys](https://www.zocton.com/docs/shared/api-keys). Choose
**All projects** and give each app the access the tools need (**Read** or **Read & change**).
Then send it as a bearer token:

```bash
claude mcp add --transport http zocton https://<region>.zocton.com/mcp \
  --header "Authorization: Bearer zk_…"
```

Any MCP client that can set a header works the same way.

## Which tools you get

Your access decides the tool list. A tool that only reads needs **Read** on its app; a tool that
changes something needs **Read & change**. Tools you have no access to are left out of the list,
and a call to one is refused.

Start with `zocton_whoami` (who the connection acts as and what it may do) and
`zocton_list_projects`. The server tells the AI app to treat your customers' data as data, never as
instructions, and to ask you before anything that sends, launches, deletes or changes many records.

## The X-Zocton-Project header

Send `X-Zocton-Project: zp_…` (a Zocton project id, from `zocton_list_projects`) to keep a
connection inside one project. It fills in the project when the AI leaves it out, refuses a call
for another project and lists only that project. It only narrows access; it never adds any. Leave
it out and every project you can reach is available.

Today the header does not work with the Entayo CRM tools: under it, they are refused. Leave the
header off if you need the CRM tools.

## MCP links

An MCP link is an address that offers only some apps, for example `https://<region>.zocton.com/mcp/<link>`.
Find them on the Zocton Dashboard → **API Keys** → **Connect an AI app**:

- **Every app** — the plain address; you choose apps and access when you connect.
- Ready-made links that offer a set of apps, read only or read and change.
- **Your links** — click **Make a link**, give it a name, and set each app to **Not offered**,
  **Read only** or **Read and change**. Only you can use a link you make. **Switch off** or
  **Delete** stops an AI app connected with it at once.

A link signs in the same way (OAuth or a `zk_` key). The connection gets the smaller of the link's
access and yours.

## Every tool

58 tools: 35 read, 23 change things. "Change" tools need **Read & change**.

### Zocton Dashboard

| Tool | | What it does |
|---|---|---|
| `zocton_whoami` | read | Who this connection acts as, its data centre, its link and which apps it may read or change. |
| `zocton_list_projects` | read | Your projects (id, name, description); archived ones only when asked. |
| `zocton_project_summary` | read | What one project holds in every app you can read — counts only. |
| `zocton_list_senders` | read | Your senders (email, LinkedIn, WhatsApp): kind, name, from-address, paused, limits. Never a secret. |
| `zocton_list_sites` | read | Your websites: name, address, project, verified, and whether TraceFlow and ZuvoChat are on. |

### Entayo CRM

These use the CRM's own project numbers (from `crm_list_projects`); leave the project out for the
CRM's Default project.

| Tool | | What it does |
|---|---|---|
| `crm_whoami` | read | The signed-in CRM user. |
| `crm_list_projects` | read | The CRM's projects, and which is Default. |
| `crm_list_fields` | read | The columns for People or Companies. |
| `crm_search_records` | read | Search people or companies with filters, OR groups, list in or out, sort and chosen fields. |
| `crm_count_records` | read | A total, or counts per value. |
| `crm_get_record` | read | One record. |
| `crm_list_entity_types` | read | The record types. |
| `crm_list_stages` | read | The pipeline stages. |
| `crm_list_lists` | read | The lists and segments. |
| `crm_list_members` | read | A list's members. |
| `crm_list_activity_types` | read | The activity types. |
| `crm_list_activities` | read | A record's activity log. |
| `crm_list_tasks` | read | Tasks. |
| `crm_create_record` | change | Create a person or company. |
| `crm_update_record` | change | Update a record, its stage or its follow-up. |
| `crm_delete_record` | change | Delete a record with its activity and tasks. |
| `crm_create_list` | change | Create a list. |
| `crm_add_to_list` | change | Add records to a list. |
| `crm_remove_from_list` | change | Take records out of a list. |
| `crm_rename_list` | change | Rename a list or segment. |
| `crm_copy_list` | change | Copy a list into another project, or move it (the source list is deleted). |
| `crm_log_activity` | change | Log an activity on a record. |
| `crm_create_task` | change | Create a task. |
| `crm_update_task` | change | Change a task. |

### TurboWorkflow

| Tool | | What it does |
|---|---|---|
| `tw_list_workflows` | read | A project's workflows: name, status, section, contacts running, last change. |
| `tw_get_workflow` | read | One workflow's steps in order, without email content. |
| `tw_workflow_stats` | read | Contacts by state and emails queued, delivered, opened, clicked, bounced and more, overall and per step. |
| `tw_list_lists` | read | The lists you can send to, with member counts. |
| `tw_list_contacts` | read | A list's contacts with their fields. |
| `tw_list_replies` | read | People who replied to workflow emails, newest first. |
| `tw_get_workflow_definition` | read | The full workflow canvas (steps and links). |
| `tw_preflight` | read | What would stop a workflow from launching. |
| `tw_update_contact` | change | Save research on a contact (names, company, time zone, email, custom fields). |
| `tw_create_workflow` | change | Create a workflow, optionally with a list and a default sender. |
| `tw_set_workflow_list` | change | Attach a list to a workflow, or detach it. |
| `tw_set_workflow_sender` | change | Set the default sender for email, LinkedIn or WhatsApp. |
| `tw_save_workflow_definition` | change | Save the canvas: add, edit or archive steps. |
| `tw_set_contact_emails` | change | Set each contact's own subject, preview and body for one email step. |
| `tw_launch` | change | Enrol the list and start sending — now, at a set time or in batches. |
| `tw_pause` | change | Pause a workflow. |
| `tw_resume` | change | Resume sending. |
| `tw_send_email` | change | Send one individual email, now or later. |

### TraceFlow

| Tool | | What it does |
|---|---|---|
| `tf_list_visitors` | read | Recent identified and anonymous visitors with their UTM tags, robots left out. |
| `tf_visitor_journey` | read | One visitor's recent visits and the pages they saw. |
| `tf_utm_stats` | read | Visits and visitors per source, medium and campaign. |

### ZuvoChat

| Tool | | What it does |
|---|---|---|
| `zc_list_conversations` | read | Conversations across your websites and channels. |
| `zc_get_messages` | read | One conversation's messages, oldest first. |
| `zc_reply` | change | Reply through the conversation's own channel. |

### PaceForms

| Tool | | What it does |
|---|---|---|
| `pf_list_forms` | read | A project's forms with their field and submission counts. |
| `pf_list_submissions` | read | A form's submissions, page by page; spam only when asked. |

### Any.st

| Tool | | What it does |
|---|---|---|
| `anyst_create_link` | change | Make a short tracked link with UTM tags. The same input gives the same link. |
| `anyst_list_links` | read | Your links with their visit counts. |
| `anyst_link_stats` | read | One link's totals and visits per day. |

## A worked example

With Claude Code connected as above, ask:

> Which of my Zocton projects has the most CRM contacts, and who in it visited our website this week?

Claude calls `zocton_list_projects`, `crm_count_records` and `tf_list_visitors`, and answers. Ask it
to add those visitors to a CRM list and it calls `crm_create_list` and `crm_add_to_list` — which
needs **Read & change** on Entayo CRM.

## Good to know

- **One data centre per connection.** A key or sign-in from another data centre is refused, with
  the right address.
- **For a `zk_` key, choose All projects.** Today a key limited to chosen projects connects but
  gets no app tools.
- **Big answers are cut short**, with a note to ask for a smaller page.
- An app that is not available in your data centre yet answers its tools with a short error.

## Related

- [API keys](https://www.zocton.com/docs/shared/api-keys)
- [n8n nodes](https://www.zocton.com/docs/developers/n8n)
- [Entayo CRM API](https://www.zocton.com/docs/developers/api)
