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

# MCP Server

Connect Claude, ChatGPT, Cursor and other AI tools to Wonderchat with our MCP server, and work your help desk from them.

Wonderchat has its own MCP (Model Context Protocol) server. Connect it to an AI tool such as Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code or Windsurf, and you can ask that tool to work your help desk for you: triage tickets, fix wrong answers, read analytics or change an agent's settings.

***

## Connect an AI tool

1. Go to **Settings → API keys** and scroll to **Connect with MCP**.
2. Copy the **Server URL** (`https://app.wonderchat.io/api/mcp`).
3. Pick your tool from the list. Wonderchat shows the exact steps for it, for example:
   * **Claude** (web or desktop): open **Settings → Connectors**, choose **Add custom connector**, name it Wonderchat, paste the server URL, then connect and sign in.
   * **ChatGPT**: open **Settings → Connectors**, turn on developer mode under Advanced, create a connector with the server URL, choose OAuth and sign in.
   * **Claude Code**, **Codex** and **VS Code**: run the command shown in your terminal, then sign in.
   * **Cursor**: click **Add to Cursor**, then click **Needs login** under Settings → MCP in Cursor.
   * **Windsurf**: add the snippet shown to your MCP config file. Windsurf opens your browser to sign in.
4. Sign in with your Wonderchat account when the tool asks.

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-05da6e227e823c346f20c53e75cebb33e623522e%2Fmcp-server-connect.png?alt=media" alt="Settings, API keys, Connect with MCP section with the server URL and per-tool instructions"><figcaption><p>Settings → API keys → Connect with MCP</p></figcaption></figure>

## Sign-in and plans

* **Signing in with your Wonderchat account (OAuth)** works on every plan, including Free. The AI tool can reach everything you can open in Wonderchat: your own space and every team you belong to, with the same plan limits and the same role permissions.
* **An API key** is for tools that can't sign in. Choose **Other** in the list and send the key as an `Authorization: Bearer <your-api-key>` header. API keys need the Basic plan or higher. A key only works in the space it was created in (your own space or one team), and can be limited to selected agents.

Team members can read an agent's data and work the ticket inbox. Changing an agent's settings or knowledge needs an owner or admin, just like in Wonderchat.

## What it can do

| Area                        | What you can ask for                                                                                                                                                            |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Tickets**                 | List and read tickets and their attachments, draft replies for review, add and react to internal notes, assign, tag, close, reopen and merge tickets, add custom ticket states. |
| **Contacts**                | Find, export, edit, merge and delete contacts. Create and edit companies and their email domains.                                                                               |
| **Review and corrections**  | Work through the review inbox of answers the AI couldn't give or got wrong, accept or skip proposed fixes, and add corrections and FAQs.                                        |
| **Knowledge**               | Add web pages, files and text, remove sources, search the knowledge base the way the agent would, and change what website crawls pick up.                                       |
| **Conversations and leads** | Search and read chat logs, tag them, mark them resolved, add notes, and list or export leads.                                                                                   |
| **Analytics**               | Overview stats, message volume, top questions, answer confidence over time, tickets closed and workflow funnels.                                                                |
| **Agent settings**          | Change the model and behavior, profile and widget, lead collection, human handover, security and advanced settings. Manage Shopify, Stripe and HubSpot setup.                   |
| **New agent setup**         | Create an agent from a website or documents, check training progress, test it with real questions, and get the embed code. Works on a brand-new Free account.                   |

{% hint style="warning" %}
**Some actions reach real customers.** Sending a ticket reply or creating a ticket emails the customer straight away. Drafts are only saved for review. Merging tickets, merging contacts and deleting contacts can't be undone. Check what your AI tool is about to do before you approve it.
{% endhint %}

{% hint style="info" %}
Testing an agent with a question from your AI tool uses a message from your plan, just like a live chat. Searching the knowledge base is free.
{% endhint %}

***

If you have any more questions, feel free to reach out to us at <mark style="color:purple;">**<support@wonderchat.io>**</mark>
