# 配置 Dify 知识库

> Dify 知识库 MCP 需要将 Cherry Studio 升级至 v1.2.9 或更高版本。

### 添加 Dify 知识库 MCP 服务器

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

1. 打开 `搜索MCP`。
2. 添加 `dify-knowledge` 服务器。

### 配置 Dify 知识库

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

> 需要配置参数和环境变量

1. Dify知识库key可以通过以下方式获取

<figure><img src="/files/8M220WHPDdd2zarqdVww" alt=""><figcaption></figcaption></figure>

### 使用Dify知识库mcp

<figure><img src="/files/u6LydqYoujLKHddNeVDG" 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/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.
