MCPSERV.CLUB
MCP-Mirror

Dify MCP Server

MCP Server

Expose Dify workflows as MCP tools with TypeScript

Stale(50)
0stars
2views
Updated Feb 16, 2025

About

A TypeScript-based Model Context Protocol server that converts Dify applications into MCP tools, supports streaming responses, and is configurable via YAML.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

Dify MCP Server in Action

Overview

The badge illustrates the server’s integration with Smithery and its readiness for immediate deployment.

Faiz Gear Dify MCP Server TS is a TypeScript‑based implementation of the Model Context Protocol (MCP) that transforms Dify AI workflows into fully fledged MCP tools. By exposing each Dify application as a discrete tool, the server allows AI assistants—such as Claude—to invoke complex business logic or data processing steps directly from within a conversation. This bridges the gap between conversational AI and enterprise workflows, eliminating the need for custom SDKs or middleware.

The server solves a common pain point: developers often struggle to expose proprietary AI pipelines to external assistants in a standardized, secure way. With this MCP server, the entire lifecycle of a Dify workflow—authentication, request routing, and response streaming—is encapsulated behind the MCP interface. The result is a plug‑and‑play component that can be dropped into any AI assistant’s tool registry with minimal configuration.

Key capabilities include:

  • Automatic Tool Generation: Each Dify application is converted into an MCP tool, exposing its input schema and output format without manual coding.
  • Streaming Support: Responses from Dify workflows are streamed back to the assistant, enabling real‑time feedback and smoother user experiences.
  • YAML Configuration: A lightweight configuration file defines the Dify base URL and a list of application secret keys, allowing developers to manage multiple applications from a single server instance.
  • TypeScript Safety: The implementation leverages TypeScript’s type system to catch errors early and provide clear documentation of request/response structures.

Typical use cases span from customer support automation—where a chatbot can trigger a Dify workflow to fetch ticket status—to data analytics pipelines, where conversational queries invoke complex Dify models that aggregate and transform large datasets. In any scenario that requires a trusted, auditable path from an AI assistant to backend logic, this MCP server offers a concise, well‑typed solution.

Integration is straightforward: once the server is running, any MCP‑compliant client (Claude Desktop, Claude API, or other assistants) can discover the exposed tools via Smithery’s registry. The client then calls these tools as if they were native actions, receiving streamed results that can be rendered inline or further processed. This seamless workflow reduces friction for developers and accelerates the delivery of AI‑powered features across domains.