Dify MCP Server

by zhuzhoulin

Not rated
GitHub

About

A TypeScript-based server that integrates the Dify AI application platform with the MCP Client.

Details

Author
zhuzhoulin
Categories
Developer Tools, AI, Automation, API

Setup

Install Dify MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/zhuzhoulin/dify-mcp-server

Follow the installation instructions in the repository README, then restart your MCP client.

A TypeScript-based MCP (Model Context Protocol) server that connects the MCP Client to Dify applications. This server dynamically exposes Dify applications as tools that can be used directly within the MCP Client.

This server implements the Model Context Protocol to bridge between MCP Client and Dify applications. It dynamically fetches application specifications from Dify APIs and exposes them as MCP tools. The server allows users to interact with multiple Dify applications through a unified interface within the MCP Client.

- Connects to multiple Dify applications using API keys
- Automatically fetches application metadata and parameters
- Dynamically generates tool interfaces based on Dify application specifications
- Supports various input types including text, paragraphs, and select dropdowns

- Robust error handling with request retries
- Support for both blocking and streaming response modes
- JSON BigInt handling for large numeric values

- API keys configured through environment variables
- Configurable base URL and timeout settings
- Fallback to default values when environment variables are not available

git clone https://github.com/zhuzhoulin/dify-mcp-server.git cd dify-mcp-server

To use with Windsurf IDE, add the server config to your MCP settings:

{ "mcpServers": { "dify-mcp-server": { "command": "node", "args": [ "/path/to/dify-mcp-server/build/index.js" ], "env": { "AGENT_API_KEYS": "key1,key2,key3", "BASE_URL": "https://api.dify.ai", "TIMEOUT": "60000" } } } }

- AGENT_API_KEYS: Comma-separated list of Dify API keys
- BASE_URL: Base URL for Dify API(default:https://api.dify.ai)
- TIMEOUT: Request timeout in milliseconds (default: 60000)

Once configured, the Dify MCP Server will:
- Connect to the specified Dify applications using the provided API keys
- Fetch application metadata and parameter specifications
- Generate MCP tool interfaces based on the Dify application configurations
- Make these tools available within the Windsurf IDE

Each Dify application will be exposed as a separate tool with a name format ofdify_app_info_{application_name}.

- npm run build: Build the project
- npm run prepare: Prepare the project for distribution
- npm run watch: Watch for changes and rebuild
- npm run inspector: Run the MCP inspector for debugging

- src/index.ts: Main server implementation
- src/request.ts: HTTP client for Dify API communication
- src/type.ts: TypeScript interfaces for Dify API
- Verify your API keys are correct and have the necessary permissions
- Check that the BASE_URL is accessible from your environment
- Review server logs for detailed error messages
- Ensure the Dify applications are properly configured and accessible

This project is licensed under the terms specified in the LICENSE file.

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Agent-native developer Q&A API with MCP + A2A endpoints for citations, job pickup, and answer submission.

Open-source, self-hosted AI gateway with built-in MCP client and server support for connecting MCP tools to AI applications.

An agent that supports Function Calling and ReAct for the MCP protocol via HTTP with SSE or Streamable HTTP transport.

An MCP server for executing Dify workflows, configured via environment variables or a config file.

Integrate with the Flowise API to create predictions and manage chatflows and assistants.

Unified MCP gateway that gives AI agents access to 100+ tools, marketplace MCPs, and custom MCP servers through simple search and execute workflows.

a complete and intuitive SDK for building MCP Servers, MCP Agents, and LLM integrations (OpenAI, Claude, Gemini) with minimal effort. It abstracts all the complexity of the MCP protocol, provides an intelligent agent with automatic model routing, and includes a universal client for external APIs all through a single, simple, and powerful interface. Perfect for chatbots, enterprise automation, internal system integrations, and rapid development of MCP-based ecosystems.

Meta-MCP gateway: search ~75k MCP servers from the public registries via five meta-tools and call any of them on the fly — local-first, with SSRF guard and stdio allowlist.

A Node.js server for AI agents to discover, install, and manage new capabilities on demand via the MCP protocol.

Autonomous API discovery and subscription — agents browse APIs, get live keys, and make calls with no human involvement.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.