Dify MCP Server logo

Dify MCP Server

by YanxingLiu

A simple implementation of an MCP server for using dify workflows. It enables the invocation of Dify workflows by calling the tools of MCP.

View on GitHub

Last updated: N/A

What is Dify MCP Server?

The Dify MCP Server is a Model Context Protocol server designed to integrate with dify, allowing you to utilize dify workflows through MCP tool calls.

How to use Dify MCP Server?

The server can be installed either via Smithery or manually. You'll need to prepare a config.yaml file containing your dify_base_url and dify_app_sks. Smithery provides an automated installation, while manual installation involves using uv or uvx. Configuration examples are provided for both methods.

Key features of Dify MCP Server

  • Integration with dify workflows

  • MCP tool invocation

  • Automated installation via Smithery

  • Manual installation options (uv, uvx)

  • Configuration via YAML file

  • Support for multiple Dify app SKs

Use cases of Dify MCP Server

  • Integrating Dify workflows into applications that support MCP

  • Using Dify tools in clients like Claude Desktop

  • Automating tasks using Dify's capabilities

  • Extending the functionality of existing applications with Dify's AI models

FAQ from Dify MCP Server

What is config.yaml?

config.yaml stores your dify_base_url and dify_app_sks, which are necessary for the server to connect to your Dify account and access your workflows.

What is Smithery?

Smithery is a tool that automates the installation of the Dify MCP Server.

What is uv and uvx?

uv and uvx are tools used for manually installing and running the Dify MCP Server. uv requires cloning the repository, while uvx does not.

How do I get my dify_base_url and dify_app_sks?

These values are obtained from your Dify account settings.

Which clients are supported?

The README mentions support for claude, cline, windsurf, roo-cline, witsy, enconvo, cursor.