/ Annuaire / Playground / Dify
● Officiel langgenius ⚡ Instantané

Dify

par 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.

Pourquoi l'utiliser

Fonctionnalités clés

Démo en direct

Aperçu en pratique

prêt

Installer

Choisissez votre 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"
      ]
    }
  }
}

Ouvrez Claude Desktop → Settings → Developer → Edit Config. Redémarrez après avoir enregistré.

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

Cursor utilise le même schéma mcpServers que Claude Desktop. La config projet l'emporte sur la globale.

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

Cliquez sur l'icône MCP Servers dans la barre latérale Cline, puis "Edit Configuration".

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

Même format que Claude Desktop. Redémarrez Windsurf pour appliquer.

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

Continue utilise un tableau d'objets serveur plutôt qu'une map.

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

Ajoutez dans context_servers. Zed recharge à chaud à la sauvegarde.

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

Une seule ligne. Vérifiez avec claude mcp list. Supprimez avec claude mcp remove.

Cas d'usage

Usages concrets : Dify

Expose a Dify workflow to Claude as a single tool

👤 Developers ⏱ ~15 min intermediate

Quand l'utiliser : You built a multi-step workflow in Dify and want Claude to invoke it as one call.

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

Résultat : Complex Dify workflow callable from Claude in one shot.

Combinaisons

Associez-le à d'autres MCPs pour un effet X10

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✓ Copié

Outils

Ce que ce MCP expose

OutilEntréesQuand appelerCoût
workflow.run (see docs) Run a named Dify workflow 1 call
dataset.query (see docs) Query a Dify-managed dataset 1 call

Coût et limites

Coût d'exécution

Quota d'API
Plan-dependent on cloud; unlimited self-host
Tokens par appel
Per workflow
Monétaire
Free OSS self-host; SaaS plans
Astuce
Self-host for high-volume internal tools

Sécurité

Permissions, secrets, portée

Portées minimales : dify:app:run
Stockage des identifiants : OAuth tokens / API keys in env
Sortie de données : Dify-configured providers
Ne jamais accorder : Expose internal workflows to anonymous callers

Dépannage

Erreurs courantes et correctifs

Workflow runs hit rate limit

Tune the per-app concurrency in Dify settings

Alternatives

Dify vs autres

AlternativeQuand l'utiliserCompromis
AnythingLLMYou want a chat-first surfaceLess workflow authoring

Plus

Ressources

📖 Lire le README officiel sur GitHub

🐙 Voir les issues ouvertes

🔍 Parcourir les 400+ serveurs MCP et Skills