Dify Workflow - Secure MCP Server by ALMC Security 2025

Dify Workflow

View on GitHub

Dify Workflow MCP Tool Server

A tool server for easy integration with Dify Workflow using the Model Context Protocol (MCP).

Features

  • MCP protocol implementation enabling bidirectional communication with Claude
  • Utilizes Dify Workflow as a tool
  • Dynamically retrieves and displays Dify Workflow parameters
  • Simple configuration using environment variables
  • NEW: Support for multiple Dify API keys

Prerequisites

  • Node.js 16 or higher
  • npm 7 or higher
  • Access rights to Dify Workflow (API Key)

Integration with Claude Desktop App

To use with Claude Desktop App, add the following settings to Claude's configuration file:

Windows

Add to %AppData%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "dify-workflow": {
      "command": "npx",
      "args": ["@tonlab/dify-mcp-server"],
      "env": {
        "DIFY_BASE_URL": "https://your-dify-endpoint",
        "DIFY_API_KEY": "your-api-key-here"
      }
    }
  }
}

Using Multiple API Keys (NEW)

You can now configure multiple Dify API keys, which will create multiple tools (one per API key):

{
  "mcpServers": {
    "dify": {
      "command": "npx",
      "args": ["@tonlab/dify-mcp-server"],
      "env": {
        "DIFY_BASE_URL": "https://api.dify.ai/v1",
        "DIFY_API_KEYS": "app-FirstAPIKeyHere,app-SecondAPIKeyHere,app-ThirdAPIKeyHere"
      }
    }
  }
}

Each API key will be exposed as a separate tool in Claude, with a distinct number appended to the tool name.

macOS/Linux

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "dify-workflow": {
      "command": "npx",
      "args": ["@tonlab/dify-mcp-server"],
      "env": {
        "DIFY_BASE_URL": "https://your-dify-endpoint",
        "DIFY_API_KEY": "your-api-key-here"
      }
    }
  }
}

Same multiple API key configuration as described above works on macOS/Linux as well.

License

MIT

Related in Development - Secure MCP Servers

ServerSummaryActions
Synth MCPA remote MCP (Model Context Protocol) server that provides AI assistants with access to the Synth Fi...View
MCP Server BoilerplateA playground for Model Context Protocol (MCP) server built with TypeScript and Streamable HTTP trans...View
refactor-mcpA Model Context Protocol (MCP) server that provides powerful refactoring tools for Coding Agents. It...View
JFrog MCP ServerView
Add ToolTo install the add_tool MCP server, run the following command:View
LimetestLimetest is the most light weight end to end testing framework with AI capabilities that can run in...View