Skip to main content
Glama
TomokiIshimine

Dify Workflow MCP Tool Server

Dify Workflow MCP 工具服务器

使用模型上下文协议 (MCP) 轻松与 Dify Workflow 集成的工具服务器。

特征

  • MCP 协议实现,可与 Claude 进行双向通信

  • 使用 Dify Workflow 作为工具

  • 动态检索并显示 Dify Workflow 参数

  • 使用环境变量进行简单配置

  • 新功能:支持多个 Dify API 密钥

Related MCP server: Cyoda Calculation Node MCP

先决条件

  • Node.js 16 或更高版本

  • npm 7 或更高版本

  • Dify Workflow 访问权限(API 密钥)

与 Claude 桌面应用程序集成

要与 Claude 桌面应用程序一起使用,请将以下设置添加到 Claude 的配置文件中:

视窗

添加到%AppData%\Claude\claude_desktop_config.json :

{
  "mcpServers": {
    "dify-workflow": {
      "command": "npx",
      "args": ["@tonlab/dify-mcp-server"],
      "env": {
        "DIFY_BASE_URL": "https://your-dify-endpoint",
        "DIFY_API_KEY": "your-api-key-here"
      }
    }
  }
}

使用多个 API 密钥(新)

您现在可以配置多个 Dify API 密钥,这将创建多个工具(每个 API 密钥一个):

{
  "mcpServers": {
    "dify": {
      "command": "npx",
      "args": ["@tonlab/dify-mcp-server"],
      "env": {
        "DIFY_BASE_URL": "https://api.dify.ai/v1",
        "DIFY_API_KEYS": "app-FirstAPIKeyHere,app-SecondAPIKeyHere,app-ThirdAPIKeyHere"
      }
    }
  }
}

每个 API 密钥将作为 Claude 中的单独工具公开,并在工具名称后附加一个不同的数字。

macOS/Linux

添加到~/Library/Application Support/Claude/claude_desktop_config.json :

{
  "mcpServers": {
    "dify-workflow": {
      "command": "npx",
      "args": ["@tonlab/dify-mcp-server"],
      "env": {
        "DIFY_BASE_URL": "https://your-dify-endpoint",
        "DIFY_API_KEY": "your-api-key-here"
      }
    }
  }
}

与上述相同的多个 API 密钥配置也适用于 macOS/Linux。

执照

麻省理工学院

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables Claude to interact with DingTalk workspaces to search for users, retrieve detailed employee information, and send private messages. It bridges the Model Context Protocol with DingTalk's internal enterprise APIs for seamless workspace communication.
    9 npm
    5
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    Enables AI assistants to interact with Cyoda platform entities and workflows through the Model Context Protocol, supporting entity management, workflow execution, and data synchronization.
    13
    1
    Apache 2.0