/ Directorio / Playground / Dify
● Oficial langgenius ⚡ Instantáneo

Dify

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

Por qué usarlo

Características clave

Demo en vivo

Cómo se ve en la práctica

listo

Instalar

Elige tu cliente

~/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"
      ]
    }
  }
}

Abre Claude Desktop → Settings → Developer → Edit Config. Reinicia después de guardar.

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

Cursor usa el mismo esquema mcpServers que Claude Desktop. La configuración del proyecto prevalece sobre la global.

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

Haz clic en el icono MCP Servers de la barra lateral de Cline y luego en "Edit Configuration".

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

Mismo formato que Claude Desktop. Reinicia Windsurf para aplicar.

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

Continue usa un array de objetos de servidor en lugar de un mapa.

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

Añádelo a context_servers. Zed recarga en caliente al guardar.

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

Un solo comando. Verifica con claude mcp list. Quita con claude mcp remove.

Casos de uso

Usos del mundo real: Dify

Expose a Dify workflow to Claude as a single tool

👤 Developers ⏱ ~15 min intermediate

Cuándo usarlo: You built a multi-step workflow in Dify and want Claude to invoke it as one call.

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

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

Combinaciones

Combínalo con otros MCPs para multiplicar por 10

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✓ Copiado

Herramientas

Lo que expone este MCP

HerramientaEntradasCuándo llamarCoste
workflow.run (see docs) Run a named Dify workflow 1 call
dataset.query (see docs) Query a Dify-managed dataset 1 call

Coste y límites

Lo que cuesta ejecutarlo

Cuota de API
Plan-dependent on cloud; unlimited self-host
Tokens por llamada
Per workflow
Monetario
Free OSS self-host; SaaS plans
Consejo
Self-host for high-volume internal tools

Seguridad

Permisos, secretos, alcance

Ámbitos mínimos: dify:app:run
Almacenamiento de credenciales: OAuth tokens / API keys in env
Salida de datos: Dify-configured providers
No conceder nunca: Expose internal workflows to anonymous callers

Resolución de problemas

Errores comunes y soluciones

Workflow runs hit rate limit

Tune the per-app concurrency in Dify settings

Alternativas

Dify vs otros

AlternativaCuándo usarlaContrapartida
AnythingLLMYou want a chat-first surfaceLess workflow authoring

Más

Recursos

📖 Lee el README oficial en GitHub

🐙 Ver issues abiertas

🔍 Ver todos los 400+ servidores MCP y Skills