The multi-key option is the useful detail: rather than a single generic "run a workflow" tool where the model has to name the right one, each key registers separately with its own parameters, so the model picks by capability. The trade-off is that keys live in the client config in plain text, and adding a workflow means adding a key and restarting.
A bridge that turns Dify Workflows into callable tools. It reads each workflow's parameters from Dify at startup rather than requiring you to declare them, so a workflow you change in Dify shows its new inputs after a restart.
- Your Dify Workflow available as a tool in the conversation
- Workflow parameters retrieved and displayed dynamically, not hard-coded in a schema
- Multiple keys supported: set `DIFY_API_KEYS` to a comma-separated list and each key becomes its own tool, with a number appended to distinguish them
- Configuration is environment variables only — no config file to maintain
A Dify endpoint in `DIFY_BASE_URL` and access to the workflow via `DIFY_API_KEY`, or several in `DIFY_API_KEYS`. Run with `npx @tonlab/dify-mcp-server` on Node.js 16 or higher and npm 7 or higher. The npm package is `@tonlab/dify-mcp-server`, version 1.1.2.
One command plus a key — npx @tonlab/dify-mcp-server, then supply credentials
