Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Dify MCP Serversummarize this article about AI trends"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Model Context Protocol (MCP) Server for dify workflows
A simple implementation of an MCP server for using dify. It achieves the invocation of the Dify workflow by calling the tools of MCP.
🔨Installation
The server can be installed via Smithery or manually. Config.yaml is required for both methods. Thus, we need to prepare it before installation.
Prepare config.yaml
Before using the mcp server, you should prepare a config.yaml to save your dify_base_url and dify_sks. The example config like this:
Different SKs correspond to different dify workflows.
Installing via Smithery
smithery is a tool to install the dify mcp server automatically. To install Dify MCP Server for Claude Desktop automatically via Smithery:
Manual Installation
You can also run the dify mcp server manually in your clients. The config of client should like the following format:
Example config:
Enjoy it
At last, you can use dify tools in any client who supports mcp.