Skip to main content
Glama

Dify Server

dify 워크플로를 위한 MCP(모델 컨텍스트 프로토콜) 서버

dify를 사용하기 위한 MCP 서버의 간단한 구현입니다. MCP 도구를 호출하여 Dify 워크플로를 실행합니다.

📰 뉴스

  • [2025/4/15] zNow는 환경 변수를 사용하여 base_urlapp_sks 직접 전달하도록 지원하므로 클라우드 호스팅 플랫폼에서 사용하기가 더 편리합니다.

🔨설치

서버는 Smithery를 사용하거나 수동으로 설치할 수 있습니다.

1단계: config.yaml 또는 환경 준비

환경 변수나 config.yaml 파일을 사용하여 서버를 구성할 수 있습니다.

방법 1: 환경 변수 사용(클라우드 플랫폼에 권장)

다음 환경 변수를 설정하세요.

지엑스피1

  • DIFY_BASE_URL : Dify API의 기본 URL입니다.
  • DIFY_APP_SKS : Dify 앱 비밀 키(SK)를 쉼표로 구분하여 나열한 목록입니다. 각 SK는 일반적으로 MCP를 통해 제공하려는 다른 Dify 워크플로에 해당합니다.
방법 2: config.yaml 사용

Dify 기본 URL과 앱 SK를 저장하려면 config.yaml 파일을 만듭니다.

config.yaml 예시:

dify_base_url: "https://cloud.dify.ai/v1" dify_app_sks: - "app-sk1" # SK for workflow 1 - "app-sk2" # SK for workflow 2 # Add more SKs as needed
  • dify_base_url : Dify API의 기본 URL입니다.
  • dify_app_sks : Dify 앱 비밀 키(SK) 목록입니다. 각 SK는 일반적으로 서로 다른 Dify 워크플로에 해당합니다.

다음 명령을 사용하여 이 파일을 빠르게 만들 수 있습니다(필요에 따라 경로와 값을 조정하세요):

# Create a directory if it doesn't exist mkdir -p ~/.config/dify-mcp-server # Create the config file cat > ~/.config/dify-mcp-server/config.yaml <<EOF dify_base_url: "https://cloud.dify.ai/v1" dify_app_sks: - "app-your-sk-1" - "app-your-sk-2" EOF echo "Configuration file created at ~/.config/dify-mcp-server/config.yaml"

서버를 실행할 때(2단계 참조), 이 방법을 선택하는 경우 CONFIG_PATH 환경 변수를 통해 이 config.yaml 파일의 경로를 제공해야 합니다.

2단계: 클라이언트에 설치

❓ 아직 uv 또는 uvx를 설치하지 않았다면 다음 명령어를 사용하여 빠르게 설치할 수 있습니다.

curl -Ls https://astral.sh/uv/install.sh | sh
✅ 방법 1: uvx 사용(코드 복제 필요 없음, 권장)
{ "mcpServers": { "dify-mcp-server": { "command": "uvx", "args": [ "--from","git+https://github.com/YanxingLiu/dify-mcp-server","dify_mcp_server" ], "env": { "DIFY_BASE_URL": "https://cloud.dify.ai/v1", "DIFY_APP_SKS": "app-sk1,app-sk2", } } } }

또는

{ "mcpServers": { "dify-mcp-server": { "command": "uvx", "args": [ "--from","git+https://github.com/YanxingLiu/dify-mcp-server","dify_mcp_server" ], "env": { "CONFIG_PATH": "/Users/lyx/Downloads/config.yaml" } } } }
✅ 방법 2: uv 사용(로컬 복제 + uv 시작)

클라이언트에서 dify mcp 서버를 수동으로 실행할 수도 있습니다. 클라이언트 설정은 다음 형식을 따라야 합니다.

{ "mcpServers": { "mcp-server-rag-web-browser": { "command": "uv", "args": [ "--directory", "${DIFY_MCP_SERVER_PATH}", "run", "dify_mcp_server" ], "env": { "CONFIG_PATH": "$CONFIG_PATH" } } } }

또는

{ "mcpServers": { "mcp-server-rag-web-browser": { "command": "uv", "args": [ "--directory", "${DIFY_MCP_SERVER_PATH}", "run", "dify_mcp_server" ], "env": { "CONFIG_PATH": "$CONFIG_PATH" } } } }

구성 예:

{ "mcpServers": { "dify-mcp-server": { "command": "uv", "args": [ "--directory", "/Users/lyx/Downloads/dify-mcp-server", "run", "dify_mcp_server" ], "env": { "DIFY_BASE_URL": "https://cloud.dify.ai/v1", "DIFY_APP_SKS": "app-sk1,app-sk2", } } } }

즐기세요

마침내 mcp를 지원하는 모든 클라이언트에서 dify 도구를 사용할 수 있습니다.

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

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Dify를 사용하기 위한 서버입니다. MCP 도구를 호출하여 Dify 워크플로를 실행합니다.

  1. 📰 뉴스
    1. 🔨설치
      1. 1단계: config.yaml 또는 환경 준비
      2. 2단계: 클라이언트에 설치
      3. 즐기세요

    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
      A plugin that allows Dify to connect to multiple MCP (Model Control Protocol) servers using HTTP with Server-Sent Events transport, supporting custom configurations for URLs, headers, and timeouts.
      Last updated -
      124
      Python
    • -
      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 -
      18
      Python
    • -
      security
      F
      license
      -
      quality
      A Dify endpoint plugin that transforms a Dify application into a Model Control Protocol server, allowing tools like Cursor to connect to and utilize your custom Dify workflows.
      Last updated -
      38
      Python

    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/YanxingLiu/dify-mcp-server'

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