# MCP

Chatbox version 1.14 introduced MCP support. Users can configure MCP services in settings and then intelligently call MCP tools in conversations.

## Configuring MCP Service

Go to **Settings - MCP** page, click "Add Server" to manually configure an MCP server, or select a built-in MCP service from the list.

<figure><img src="/files/gu4qKiDJpWDCNMYYpvxs" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/P8LWOG75Ak1cHPdyf9VN" alt=""><figcaption></figcaption></figure>

## MCP One-Click Installation Link

Chatbox supports one-click MCP service installation via deep link. Users can click a link on your website to launch Chatbox and automatically configure the MCP service.

The link format is as follows:

```
chatbox://mcp/install?server=$BASE64_ENCODED_CONFIG
```

Where `$BASE64_ENCODED_CONFIG` is the base64-encoded MCP service configuration in the following format:

```
{
  "name": "fetch",
  "command": "npx",
  "args": ["fetch-mcp"],
  "env": {}
}
```

Or

```
{
  "name": "deepwiki",
  "url": "https://mcp.deepwiki.com/mcp"
}
```

### Generating One-Click Installation Link

* Write the JSON configuration for the MCP service
* Use `JSON.stringify` on the configuration, then base64 encode it
* Append the encoded string to `chatbox://mcp/install?server=`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.chatboxai.app/en/guides/mcp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
