Back to MCP directory
publicPublicdnsLocal runtime

Dify Dataset Retriever

Dify知识库检索工具是一个用于与Dify平台知识库进行交互的Go语言工具,支持本地或二进制安装。

article

README

🚀 dify-retriever-mcp

dify-retriever-mcp 是一款专为 dify 设计的知识库检索工具,能帮助用户快速、精准地从 dify 知识库中获取所需信息,提升信息检索效率。

🚀 快速开始

📦 安装指南

若本地有 go 环境

go install github.com/wangle201210/dify-retriever-mcp@latest

若没有 go 环境

下载二进制文件 将下载的可执行文件放到自己的 PATH 目录即可

💻 使用示例

基础用法

{
  "mcpServers": {
      "dify-retriever-mcp": {
        "command": "dify-retriever-mcp",
        "args": [],
        "env": {
          "DIFY_DATASET_API_KEY": "dataset-iDBz1qVkmI2dU6KnirLCxO9K",
          "DIFY_ENDPOINT": "http://127.0.0.1/v1",
          "DIFY_DATASET_ID": "b667a65b-f40f-4dd0-8b34-8406dc8be96e",
          "DIFY_DATASET_NAME": "这里写知识库名字"
        },
        "descriptions": "***知识库检索"
      }
  } 
}
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client