Dify Management MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Dify Management MCPlist all datasets in my workspace"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Dify Management MCP
This MCP server allows you to manage your Dify instance programmatically. It exposes tools to list and create knowledge bases (datasets), list applications, and manage tools.
Features
Knowledge Management: List datasets, create new datasets, and list documents.
App Management: List applications in the workspace and get detailed information.
Tool Management: List tool providers.
Configuration
Clone this repository.
Install the dependencies:
npm install.Create a
.envfile based on.env.example.Configure the variables:
DIFY_BASE_URL: URL of your instance (e.g.,https://api.dify.aifor the cloud).DIFY_CONSOLE_API_KEY: Your Console API key (see below on how to obtain it).
How to obtain the DIFY_CONSOLE_API_KEY
The Console key is required for management operations (such as creating datasets). Currently, in Dify Cloud, you can find your key in Settings > Workspace > Service API or by using the browser session token (less recommended). For self-hosted instances, use the token generated for the admin.
Running Locally
npm run build
npm startDeploy on Dokploy
This project includes a Dockerfile. To run on Dokploy:
Connect your GitHub repository to Dokploy.
Configure the environment variables (
DIFY_BASE_URL,DIFY_CONSOLE_API_KEY) in the Dokploy panel.Dokploy will detect the
Dockerfileand build it automatically.
Developed to automate Dify management.
Related MCP Connectors
Manage Chatbase agents, sources, conversations and help-desk tickets.
Manage SiteGPT chatbots and account resources through the SiteGPT API v2.
Create and manage DialNexa AI voice agents, campaigns, calls, phone numbers, workflows, and more.
Manage BioFlow link-in-bio pages, blocks, leads, and analytics from AI agents.