# MCP 環境安裝

**MCP（Model Context Protocol）** 係一種開源協議，旨在以標準化嘅方式向大語言模型（LLM）提供上下文資訊。更多關於 MCP 嘅介紹請睇 [知識科普](/docs/zhong-wen-fan-ti/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/89925f3d9336605d2dd38751462275e51ac92ac2" alt=""><figcaption></figcaption></figure>

**可執行程式安裝目錄：**

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

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

<figure><img src="/files/29710ed425093232d3c5218b3d63c320df4860a6" 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/docs/zhong-wen-fan-ti/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.
