> For the complete documentation index, see [llms.txt](https://docs.cherry-ai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherry-ai.com/docs/jp/advanced-basic/mcp/dify.md).

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

[Dify](https://dify.ai/) エンタープライズ向けの AI アプリプラットフォームで、ナレッジベース機能も内蔵されています。もしすでに Dify 上でナレッジベースを作成しているなら（会社で Dify を使って社内資料を管理している、あるいは個人で Dify を使って RAG アプリを試している場合）、このページでは**Cherry Studio 内の AI から Dify ナレッジベースを直接検索できるようにする**。

簡単に言うと：**資料を Dify から Cherry Studio に移す必要はありません。Cherry Studio 内の会話から Dify 側の内容を検索できます**。

要件：Cherry Studio v1.2.9 以上；Dify で少なくとも 1 つのナレッジベースを作成し、そのナレッジベースの API Key を取得していること。

### 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>

***

### 💡 ヘルプの取得とフィードバックの送信

設定や使用の過程で疑問、Bug、機能改善の提案がある場合は、 [フィードバックと提案](/docs/jp/question-contact/suggestions.md) に記載の公式チャネルをご参照ください。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.cherry-ai.com/docs/jp/advanced-basic/mcp/dify.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
