# Difyナレッジベースの設定

> Dify ナレッジベース MCP を使用するには、Cherry Studio を v1.2.9 以上にアップグレードする必要があります。

### Dify ナレッジベース MCP サーバーを追加

<figure><img src="/files/2fe0755e7f0f38dfb45f41e2bfb83a8ed9d5e9f9" alt=""><figcaption></figcaption></figure>

1. 開く `MCP を検索`を提供する。
2. 追加 `dify-knowledge` サーバー。

### Dify ナレッジベースを設定

<figure><img src="/files/5a91dd3a96ded100f039392e0148db6b01f56fc8" alt=""><figcaption></figcaption></figure>

> パラメータと環境変数の設定が必要です

1. Dify ナレッジベースの key は以下の方法で取得できます

<figure><img src="/files/8219eb5a941e7f12b2dc1f127ab7125f7982a783" alt=""><figcaption></figcaption></figure>

### Dify ナレッジベース MCP を使用

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