/ Verzeichnis / Playground / Dify
● Offiziell langgenius ⚡ Sofort

Dify

von langgenius · langgenius/dify

Build agentic workflows in a UI, then expose each one as an MCP tool — Claude calls your Dify-authored apps.

Dify is a popular open-source platform for building LLM apps and agent workflows. Its MCP layer lets Claude treat each Dify app as a callable tool, so workflows authored in Dify show up alongside your other MCP tools.

Warum nutzen

Hauptfunktionen

Live-Demo

In der Praxis

bereit

Installieren

Wählen Sie Ihren Client

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "dify-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dify/mcp-server"
      ]
    }
  }
}

Öffne Claude Desktop → Settings → Developer → Edit Config. Nach dem Speichern neu starten.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "dify-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dify/mcp-server"
      ]
    }
  }
}

Cursor nutzt das gleiche mcpServers-Schema wie Claude Desktop. Projektkonfiguration schlägt die globale.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "dify-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dify/mcp-server"
      ]
    }
  }
}

Klicken Sie auf das MCP-Servers-Symbol in der Cline-Seitenleiste, dann "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "dify-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dify/mcp-server"
      ]
    }
  }
}

Gleiche Struktur wie Claude Desktop. Windsurf neu starten zum Übernehmen.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "dify-mcp",
      "command": "npx",
      "args": [
        "-y",
        "@dify/mcp-server"
      ]
    }
  ]
}

Continue nutzt ein Array von Serverobjekten statt einer Map.

~/.config/zed/settings.json
{
  "context_servers": {
    "dify-mcp": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "@dify/mcp-server"
        ]
      }
    }
  }
}

In context_servers hinzufügen. Zed lädt beim Speichern neu.

claude mcp add dify-mcp -- npx -y @dify/mcp-server

Einzeiler. Prüfen mit claude mcp list. Entfernen mit claude mcp remove.

Anwendungsfälle

Praxisnahe Nutzung: Dify

Expose a Dify workflow to Claude as a single tool

👤 Developers ⏱ ~15 min intermediate

Wann einsetzen: You built a multi-step workflow in Dify and want Claude to invoke it as one call.

Ablauf
  1. Author
    Build the workflow in Dify.✓ Kopiert
    → Workflow publishes
  2. Expose
    Enable the MCP endpoint for the app.✓ Kopiert
    → Tool listed
  3. Call
    Claude calls it like any other MCP tool.✓ Kopiert
    → Result returns

Ergebnis: Complex Dify workflow callable from Claude in one shot.

Kombinationen

Mit anderen MCPs für 10-fache Wirkung

Use Forge as the gateway in front of multiple Dify instances

Combine dify-mcp with mcp-context-forge: Use Forge as the gateway in front of multiple Dify instances✓ Kopiert

Werkzeuge

Was dieses MCP bereitstellt

WerkzeugEingabenWann aufrufenKosten
workflow.run (see docs) Run a named Dify workflow 1 call
dataset.query (see docs) Query a Dify-managed dataset 1 call

Kosten & Limits

Was der Betrieb kostet

API-Kontingent
Plan-dependent on cloud; unlimited self-host
Tokens pro Aufruf
Per workflow
Kosten in €
Free OSS self-host; SaaS plans
Tipp
Self-host for high-volume internal tools

Sicherheit

Rechte, Secrets, Reichweite

Minimale Scopes: dify:app:run
Credential-Speicherung: OAuth tokens / API keys in env
Datenabfluss: Dify-configured providers
Niemals gewähren: Expose internal workflows to anonymous callers

Fehlerbehebung

Häufige Fehler und Lösungen

Workflow runs hit rate limit

Tune the per-app concurrency in Dify settings

Alternativen

Dify vs. andere

AlternativeWann stattdessenKompromiss
AnythingLLMYou want a chat-first surfaceLess workflow authoring

Mehr

Ressourcen

📖 Offizielle README auf GitHub lesen

🐙 Offene Issues ansehen

🔍 Alle 400+ MCP-Server und Skills durchsuchen