dify-mcp-server

This repository provides a Model Context Protocol (MCP) server implementation for integrating Dify workflows, enabling their invocation through MCP tools with configuration via a `config.yaml` file. This repository provides a

200
19

Model Context Protocol (MCP) Server for Dify Workflows

This repository provides a simple MCP server implementation designed to integrate with Dify, enabling the invocation of Dify workflows through MCP tool calls.

Installation

The server can be installed automatically via Smithery or manually. A config.yaml file is required for both methods, storing dify_base_url and dify_app_sks (Dify application secret keys). Each SK corresponds to a different Dify workflow.

Installation Methods

  • Smithery: Use the Smithery CLI with npx -y @smithery/cli install dify-mcp-server --client <client>. Supported clients include claude, cline, windsurf, roo-cline, witsy, enconvo, and cursor.
  • Manual:
    • uv: Clone the repository, then use uv run dify_mcp_server with the correct CONFIG_PATH.
    • uvx: No cloning needed. Use uvx --from git+https://github.com/YanxingLiu/dify-mcp-server dify_mcp_server with the correct CONFIG_PATH.

The server allows you to use Dify tools in any MCP-compatible client.

Repository

YA
YanxingLiu

YanxingLiu/dify-mcp-server

Created

December 25, 2024

Updated

March 28, 2025

Language

Python

Category

AI