Skip to main content
Glama

Dify Workflow MCP Tool Server

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

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables seamless integration between Claude AI and Dify Workflow through the Model Context Protocol, allowing Claude to dynamically access and execute Dify Workflow operations via natural language.

  1. Features
    1. Prerequisites
      1. Integration with Claude Desktop App
        1. Windows
        2. Using Multiple API Keys (NEW)
        3. macOS/Linux
      2. License

        Related MCP Servers

        • -
          security
          F
          license
          -
          quality
          A TypeScript implementation of a Model Context Protocol (MCP) server that exposes Dify workflows as tools for AI systems to interact with.
          Last updated -
          16
          TypeScript
        • -
          security
          F
          license
          -
          quality
          Connects Claude AI to QGIS through the Model Context Protocol, allowing Claude to directly interact with and control QGIS for tasks like project creation, layer manipulation, and code execution.
          Last updated -
          577
          Python
          • Apple
        • -
          security
          F
          license
          -
          quality
          Exposes Dify applications (both Chatflow and Workflow) as MCP (Model Context Protocol) servers, allowing Claude and other MCP clients to directly interact with Dify apps through a standardized protocol.
          Last updated -
          35
          Python
        • -
          security
          F
          license
          -
          quality
          A server implementation that enables integration of Dify workflows with Model Context Protocol (MCP), allowing users to access Dify's capabilities through MCP-compatible clients.
          Last updated -
          2

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/TomokiIshimine/dify-mcp-server'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server