# MCP

Chatbox 1.14版本推出MCP支持，用户可以在设置里配置MCP服务，然后就可以在对话中智能调用MCP工具了。

## 配置MCP服务

进入**设置 - MCP** 页面，点击“添加服务器”，即可手动配置MCP服务器，或从列表中选择内置的MCP服务。

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

<figure><img src="/files/3t6IvGTUXHZkZBTw2vRx" alt=""><figcaption></figcaption></figure>

## MCP一键安装链接

Chatbox支持通过deep link一键安装MCP服务，用户可以在您的网站上点击链接，启动Chatbox并自动配置MCP服务。

链接格式如下：

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

其中，`$BASE64_ENCODED_CONFIG`是base64编码的MCP服务的配置信息，格式如下：

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

或

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

### 生成一键安装链接

* 编写MCP服务的JSON配置
* `JSON.stringify`配置后，使用base64编码
* 将编码后的字符串拼接到`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/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.
