# 配置 Dify 知識庫

> Dify 知識庫 MCP 需要將 Cherry Studio 升級到 v1.2.9 或更高版本。

### 新增 Dify 知識庫 MCP 伺服器

<figure><img src="/files/525f48b528f21c52b8ca3f82cddd1329bfa8e976" alt=""><figcaption></figcaption></figure>

1. 打開 `搜尋 MCP`。
2. 新增 `dify-knowledge` 伺服器。

### 配置 Dify 知識庫

<figure><img src="/files/7d87b32cb2f7a119ced5b9ac03d870c2ccc0a82c" alt=""><figcaption></figcaption></figure>

> 需要配置參數同環境變數

1. Dify 知識庫 key 可以透過以下方式攞到

<figure><img src="/files/9ad67bd22a108375616a2a69daaf187777bc6584" alt=""><figcaption></figcaption></figure>

### 使用 Dify 知識庫 mcp

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


---

# 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/dify.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.
