# Configure the Dify Knowledge Base

> The Dify knowledge base MCP requires upgrading Cherry Studio to v1.2.9 or later.

### Add Dify knowledge base MCP server

<figure><img src="/files/1ce65be277d7f55f5490b068fcd9b9cc368a8843" alt=""><figcaption></figcaption></figure>

1. Open `Search MCP`.
2. Add `dify-knowledge` server.

### Configure Dify knowledge base

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

> Parameters and environment variables need to be configured

1. The Dify knowledge base key can be obtained in the following ways

<figure><img src="/files/3703ec6237be13bf4ab2d1857019c6364abd600e" alt=""><figcaption></figcaption></figure>

### Use Dify knowledge base MCP

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