# MCP 环境安装

**MCP(Model Context Protocol)** 是一种开源协议，旨在以标准化的方式向大语言模型（LLM）提供上下文信息。更多关于 MCP 的介绍请见 [知识科普](/question-contact/knowledge.md#shen-me-shi-mcpmodel-context-protocol)

## 在 Cherry Studio 中使用 MCP

下面以 `fetch` 功能为例，演示如何在 Cherry Studio 中使用 MCP，可以在 [文档](https://github.com/modelcontextprotocol/servers/tree/main/src/fetch) 中查找详情。

### **准备工作：安装 uv、bun**

{% hint style="warning" %}
Cherry Studio 目前只使用内置的 [uv](https://github.com/astral-sh/uv) 和 [bun](https://github.com/oven-sh/bun)，**不会复用**系统中已经安装的 uv 和 bun。
{% endhint %}

在 `设置 - MCP 服务器` 中，点击 `安装` 按钮，即可自动下载并安装。因为是直接从 GitHub 上下载，速度可能会比较慢，且有较大可能失败。安装成功与否，以下文提到的文件夹内是否有文件为准。

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

**可执行程序安装目录：**

Windows: `C:\Users\用户名\.cherrystudio\bin`

macOS、Linux: `~/.cherrystudio/bin`

<figure><img src="/files/XY3uXaiDtYB89AhNoSsX" alt=""><figcaption><p>bin 目录</p></figcaption></figure>

**无法正常安装的情况下：**

可以将系统中的相对应命令使用软链接的方式链接到这里，如果没有对应目录，需要手动建立。也可以手动下载可执行文件放到这个目录下面：

Bun: <https://github.com/oven-sh/bun/releases>\
UV: <https://github.com/astral-sh/uv/releases>


---

# 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.cherry-ai.com/advanced-basic/mcp/install.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.
