Dify MCP Server

Dify provider for Vercel AI SDK

Remote serverstreamable-httpTypeScript

What is the Dify MCP server?

If you already use Dify, the dify mcp server is the piece that lets your assistant work with it directly. Dify provider for Vercel AI SDK.

What the server does

This provider allows you to easily integrate Dify AI's application workflow with your applications using the Vercel AI SDK.

Installation

Because this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • Streaming — const stream = streamText({ model: dify, messages: [{ role: "user", content: "Write a short poem about AI." }], });
  • Parameters — The Parameters tool exposed by this server

Credentials and setup notes

Configuration is passed through the environment: DIFY_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Worth knowing first

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

Plenty of cloud and infrastructure servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Dify's toolset — Streaming, Parameters — is a fair guide to whether it matches your workflow. It is maintained by jposcar; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
Streamingconst stream = streamText({ model: dify, messages: [{ role: "user", content: "Write a short poem about AI." }], });
ParametersThe Parameters tool exposed by this server.

How to install the Dify MCP server

{
  "mcpServers": {
    "dify-server-1": {
      "command": "npx",
      "args": ["-y", "dify-ai-provider"],
      "env": {
        "DIFY_API_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
DIFY_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Dify to Streaming.
  • Use Dify to Parameters.

Frequently asked questions

It connects Dify to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (Streaming, Parameters) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Dify directly.