Dify Server

by YanxingLiu
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

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

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

🔨설치

서버는 Smithery를 사용하거나 수동으로 설치할 수 있습니다. 두 방법 모두 Config.yaml이 필요합니다. 따라서 설치 전에 Config.yaml을 준비해야 합니다.

config.yaml을 준비하세요

MCP 서버를 사용하기 전에 dify_base_url과 dify_sks를 저장하는 config.yaml 파일을 준비해야 합니다. 예제 config는 다음과 같습니다.

지엑스피1

터미널에서 다음 명령을 실행하면 구성 파일을 빠르게 만들 수 있습니다.

mkdir -p ~/tools && cat > ~/tools/config.yaml <<EOF dify_base_url: "https://cloud.dify.ai/v1" dify_app_sks: - "app-sk1" - "app-sk2" EOF

다양한 SK는 다양한 dify 워크플로에 대응합니다.

Smithery를 통해 설치

smithery는 dify MCP 서버를 자동으로 설치하는 도구입니다. Smithery를 통해 Claude Desktop용 Dify MCP 서버를 자동으로 설치하려면 다음을 수행하세요.

팁: npm 버전 5.2부터 npx 명령을 추가했습니다. Mac 사용자는 brew install node 사용하여 npm을 설치할 수 있습니다.

npx -y @smithery/cli install dify-mcp-server --client claude

claude , cline, windsurf, roo-cline, witsy, enconvo, cursor 도 지원됩니다.

수동 설치

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

curl -Ls https://astral.sh/uv/install.sh | sh

✅ 방법 1: 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": { "dify-mcp-server": { "command": "uv", "args": [ "--directory", "/Users/lyx/Downloads/dify-mcp-server", "run", "dify_mcp_server" ], "env": { "CONFIG_PATH": "/Users/lyx/Downloads/config.yaml" } } } }

✅ 방법 2: uvx 사용(코드 복제 필요 없음, 권장)

"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" } } }

즐기세요

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

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

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

  1. 🔨Installation
    1. Prepare config.yaml
    2. Installing via Smithery
    3. Manual Installation
    4. Enjoy it
ID: 0bnt6865ar