/ Diretório / 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 que usar

Principais recursos

Demo ao vivo

Como fica na prática

pronto

Instalar

Escolha seu 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"
      ]
    }
  }
}

Abra Claude Desktop → Settings → Developer → Edit Config. Reinicie após salvar.

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

Cursor usa o mesmo esquema mcpServers que o Claude Desktop. Config de projeto vence a global.

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

Clique no ícone MCP Servers na barra lateral do Cline, depois "Edit Configuration".

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

Mesmo formato do Claude Desktop. Reinicie o Windsurf para aplicar.

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

O Continue usa um array de objetos de servidor em vez de um map.

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

Adicione em context_servers. Zed recarrega automaticamente ao salvar.

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

Uma linha só. Verifique com claude mcp list. Remova com claude mcp remove.

Casos de uso

Usos do mundo real: Dify

Expose a Dify workflow to Claude as a single tool

👤 Developers ⏱ ~15 min intermediate

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

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

Combinações

Combine com outros MCPs para 10× de alavancagem

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

Ferramentas

O que este MCP expõe

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

Custo e limites

O que custa rodar

Cota de API
Plan-dependent on cloud; unlimited self-host
Tokens por chamada
Per workflow
Monetário
Free OSS self-host; SaaS plans
Dica
Self-host for high-volume internal tools

Segurança

Permissões, segredos, alcance

Escopos mínimos: dify:app:run
Armazenamento de credenciais: OAuth tokens / API keys in env
Saída de dados: Dify-configured providers
Nunca conceda: Expose internal workflows to anonymous callers

Solução de problemas

Erros comuns e correções

Workflow runs hit rate limit

Tune the per-app concurrency in Dify settings

Alternativas

Dify vs. outros

AlternativaQuando usarTroca
AnythingLLMYou want a chat-first surfaceLess workflow authoring

Mais

Recursos

📖 Leia o README oficial no GitHub

🐙 Ver issues abertas

🔍 Ver todos os 400+ servidores MCP e Skills