# dify-mcp-server

> MCP Server

This repository provides a Model Context Protocol (MCP) server implementation for integrating Dify workflows, enabling their invocation through MCP tools with configuration via a `config.yaml` file. This repository provides a

## Overview

- **Category:** AI
- **Language:** Python
- **Stars:** 280
- **Forks:** 19
- **Owner:** YanxingLiu
- **GitHub:** https://github.com/YanxingLiu/dify-mcp-server
- **Created:** 2024-12-25T15:00:49+00:00
- **Updated:** 2025-03-28T11:43:09+00:00
- **Source:** https://model-context-protocol.com/servers/dify-model-context-protocol-mcp-server

## Setup

## Setup

1.  **Prepare `config.yaml`:** Create a `config.yaml` file with `dify_base_url` and `dify_app_sks`.

2.  **Installation via Smithery:** Use `npx -y @smithery/cli install dify-mcp-server --client claude` to install automatically, with support for clients like `claude`, `cline`, `windsurf`, `roo-cline`, `witsy`, `enconvo`, and `cursor`.

3.  **Manual Installation:**
    *   **Method 1 (uv):** Clone the repository, then configure the client to use `uv` to run the server, specifying the directory and config path.
    *   **Method 2 (uvx):** Configure the client to use `uvx` to run the server directly from the GitHub repository, specifying the repository URL and config path.

4.  **Install uv/uvx:** If uv or uvx are not installed, use `curl -Ls https://astral.sh/uv/install.sh | sh` to install them.

## Tools

## Available Tools

1.  **Model Context Protocol (MCP) Server:** A server for invoking Dify workflows by calling the tools of MCP.
2.  **Dify Workflow Invocation:** Achieves the invocation of Dify workflows through MCP tools.
3.  **Smithery Installation:** Provides automated installation via Smithery.
4.  **Manual Installation:** Offers manual installation options using uv or uvx.
5.  **Configuration:** Requires a `config.yaml` file to specify Dify base URL and app SKs.
