Skip to main content
Glama

Dify MCP Server

Dify MCP 服务器 (TypeScript)

模型上下文协议 (MCP) 服务器的 TypeScript 实现,将 Dify 工作流公开为工具。

特征

  • 将 Dify 应用程序转换为 MCP 工具
  • 支持来自 Dify 工作流的流式响应
  • 可通过 YAML 配置文件进行配置
  • 使用 TypeScript 编写以确保类型安全

先决条件

  • Node.js 18 或更高版本
  • npm 8 或更高版本
  • 访问 Dify API 和应用程序密钥

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 Dify MCP Server:

npx -y @smithery/cli install @faiz-gear/dify-mcp-server-ts --client claude
  1. 克隆存储库:
    git clone <repository-url> cd dify-mcp-server-ts
  2. 安装依赖项:
    npm install
  3. 创建配置文件:
    # config.yaml dify_base_url: 'https://api.dify.ai/v1' dify_app_sks: - 'your-dify-app-sk-1' # Replace with your actual Dify app secret key - 'your-dify-app-sk-2' # Replace with your actual Dify app secret key

用法

  1. 构建项目:
    npm run build
  2. 启动服务器:
    npm start

对于开发:

npm run dev

配置

可以使用 YAML 文件配置服务器。默认情况下,它会在项目根目录中查找config.yaml 。您可以使用CONFIG_PATH环境变量指定其他路径。

配置选项

  • dify_base_url :Dify API 的基本 URL
  • dify_app_sks :Dify 应用程序密钥列表

执照

国际学习中心

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

可以将 Dify 应用程序转换为模型上下文协议工具,支持流式响应并通过 YAML 进行配置。

  1. 特征
    1. 先决条件
      1. 安装
        1. 通过 Smithery 安装
      2. 用法
        1. 配置
          1. 配置选项
        2. 执照

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that provides web content fetching and conversion capabilities.
            Last updated -
            4
            89
            2
            JavaScript
            MIT License
            • Apple
          • -
            security
            F
            license
            -
            quality
            Exposes Dify applications (both Chatflow and Workflow) as MCP (Model Context Protocol) servers, allowing Claude and other MCP clients to directly interact with Dify apps through a standardized protocol.
            Last updated -
            18
            Python
          • -
            security
            F
            license
            -
            quality
            A Dify endpoint plugin that transforms a Dify application into a Model Control Protocol server, allowing tools like Cursor to connect to and utilize your custom Dify workflows.
            Last updated -
            42
            Python
          • -
            security
            -
            license
            -
            quality
            A server implementation that enables integration of Dify workflows with Model Context Protocol (MCP), allowing users to access Dify's capabilities through MCP-compatible clients.
            Last updated -

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/faiz-gear/dify-mcp-server-ts'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server