Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ’» Developer Tools
  3. Dify MCP
D
Health: Not checked yetWe have not completed a health check for this listing yet.No health check has run yet.

Dify MCP

User RatingsBe the first to rate and review this MCP server! Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository

MCP server exposing Dify knowledge base retrieval to Cursor and other MCP clients

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "dify-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "dify-mcp"
      ]
    }
  }
}

πŸ’‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Directory Badge Claim listing AlternativesπŸ’» More in Developer Tools

Documentation Overview

dify-mcp

Expose Dify knowledge base retrieval capabilities via MCP (Model Context Protocol), for use in Cursor and other MCP-compatible clients.

Connect to a self-hosted or remote Dify instance over HTTP, with optional dataset allowlisting for access control.

Features

  • Knowledge base discovery β€” list and inspect allowed datasets
  • Semantic retrieval β€” search chunks via Dify POST /datasets/{dataset_id}/retrieve
  • Document browsing β€” list documents and segments within a dataset
  • Dataset allowlist β€” restrict access to specific dataset_id values
  • stdio transport β€” no manual server startup; the MCP client launches the process

Requirements

  • Python 3.11+
  • A running Dify instance with Knowledge Base API enabled
  • Network access from the machine running the MCP server to your Dify API endpoint
  • A Dify Knowledge Base API Key (Dify β†’ Knowledge β†’ Service API β†’ API Key)

Quick Start

1. Clone and install

bash
git clone https://github.com/salted-butter-joshua/dify-mcp.git

cd dify-mcp



python3.11 -m venv .venv



# Windows

.venv\Scripts\python.exe -m pip install -e .



# macOS / Linux

.venv/bin/python -m pip install -e .

Verify import:

server.ts
# Windows

.venv\Scripts\python.exe -c "import dify_mcp; print('OK')"



# macOS / Linux

.venv/bin/python -c "import dify_mcp; print('OK')"

2. Configure environment

Copy the example env file and edit it:

bash
cp .env.example .env
env
DIFY_API_BASE=http://your-dify-host/v1

DIFY_API_KEY=dataset-your-api-key

DIFY_ALLOWED_DATASETS=dataset-uuid-1,dataset-uuid-2

DIFY_TIMEOUT=30

DIFY_VERIFY_SSL=false
VariableDescription
DIFY_API_BASEDify Knowledge API base URL, e.g. http://192.168.1.100/v1
DIFY_API_KEYKnowledge Base API key
DIFY_ALLOWED_DATASETSComma-separated dataset UUIDs to expose (required)
DIFY_TIMEOUTHTTP timeout in seconds (default: 30)
DIFY_VERIFY_SSLVerify TLS certificates (default: false for self-signed certs)

Run the health check:

bash
# Windows

.venv\Scripts\python.exe scripts/health_check.py



# macOS / Linux

.venv/bin/python scripts/health_check.py

3. Add to Cursor

You do not need to start the MCP server manually. Cursor launches it automatically via stdio.

  1. Open Cursor Settings β†’ MCP β†’ Edit config
  2. Add the following to mcpServers in your MCP config file:
    • Windows: %USERPROFILE%\.cursor\mcp.json
    • macOS / Linux: ~/.cursor/mcp.json
  3. Replace paths and env values with your own
  4. Restart Cursor

See mcp.json.example for a full example.

Windows example:

config.json
{

  "mcpServers": {

    "dify-knowledge": {

      "command": "/absolute/path/to/dify-mcp/.venv/Scripts/python.exe",

      "args": ["-m", "dify_mcp.server"],

      "cwd": "/absolute/path/to/dify-mcp",

      "env": {

        "DIFY_API_BASE": "http://your-dify-host/v1",

        "DIFY_API_KEY": "dataset-your-api-key",

        "DIFY_ALLOWED_DATASETS": "dataset-uuid-1,dataset-uuid-2",

        "DIFY_TIMEOUT": "30",

        "DIFY_VERIFY_SSL": "false"

      }

    }

  }

}

macOS / Linux example:

config.json
{

  "mcpServers": {

    "dify-knowledge": {

      "command": "/absolute/path/to/dify-mcp/.venv/bin/python",

      "args": ["-m", "dify_mcp.server"],

      "cwd": "/absolute/path/to/dify-mcp",

      "env": {

        "DIFY_API_BASE": "http://your-dify-host/v1",

        "DIFY_API_KEY": "dataset-your-api-key",

        "DIFY_ALLOWED_DATASETS": "dataset-uuid-1,dataset-uuid-2"

      }

    }

  }

}

4. Verify in Cursor

  1. Cursor Settings β†’ MCP β†’ confirm dify-knowledge shows as enabled
  2. In chat, try:
    • List available Dify knowledge bases
    • Search the knowledge base for "your query"

MCP Tools

ToolDescription
list_datasetsList knowledge bases within the allowlist
get_datasetGet metadata for one dataset
search_knowledgeRetrieve relevant chunks (primary retrieval tool)
list_documentsList documents in a dataset
list_document_segmentsList text segments for a document

Architecture

Code
Cursor (MCP client)

    β”‚ stdio

    β–Ό

dify-mcp (local process)

    β”‚ HTTPS / HTTP

    β–Ό

Dify Knowledge API (/v1/datasets/...)

The MCP server runs locally on your machine and calls the Dify API over the network. Dify does not need to reach your machine.

Troubleshooting

IssueCauseFix
No matching distribution found for mcpPython < 3.11Use Python 3.11+ in .venv
MCP shows error (red)Wrong Python path, invalid key, or network issueCheck mcp.json paths and env vars
401 UnauthorizedInvalid API keyRegenerate key in Dify Service API panel
Dataset not in allowed listUUID not in DIFY_ALLOWED_DATASETSAdd the dataset UUID to the allowlist
Health check missing env vars.env not foundEnsure .env exists in the project root
Connection timeoutDify unreachableCheck network / VPN / firewall

Project Structure

Code
dify-mcp/

β”œβ”€β”€ src/dify_mcp/

β”‚   β”œβ”€β”€ server.py        # MCP entry point

β”‚   β”œβ”€β”€ config.py        # Settings and allowlist

β”‚   β”œβ”€β”€ dify_client.py   # Dify Knowledge API client

β”‚   └── formatters.py    # Response formatting

β”œβ”€β”€ scripts/

β”‚   └── health_check.py  # Connectivity test

β”œβ”€β”€ mcp.json.example     # Cursor MCP config template

β”œβ”€β”€ .env.example         # Environment variable template

└── Dify-API.md          # Local API path reference

API Reference

  • Dify Knowledge Base API (official)
  • Retrieve chunks
  • Local path reference: Dify-API.md

Security Notes

  • Never commit .env or API keys to version control
  • A single Knowledge Base API key can access all visible datasets under the account β€” use DIFY_ALLOWED_DATASETS to limit exposure
  • Prefer running MCP locally; keep API keys in mcp.json env or .env on your machine only

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Developer Tools View all alternatives
  • Ato MCP logoAto MCP

    Australian tax knowledge base: cited retrieval over ATO guidance, the ITAA & GST Acts, and rulings.

    πŸ’» Developer Tools1 views
    Compare vs Ato MCP β†’
  • Sui Knowledge Base (kapa.ai) logoSui Knowledge Base (kapa.ai)

    Semantic search across Sui documentation and knowledge sources, powered by kapa.ai

    πŸ’» Developer Tools0 views
    Compare vs Sui Knowledge Base (kapa.ai) β†’
  • Guru Remote MCP Server logoGuru Remote MCP Server

    Guru MCP Server - Connect AI tools to your Guru knowledge base

    πŸ’» Developer Tools1 views
    Compare vs Guru Remote MCP Server β†’
  • PraisonAI logoPraisonAI

    AI Agents Framework with Self Reflection and MCP support

    πŸ’» Developer Tools1 views
    Compare vs PraisonAI β†’

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about Dify MCP

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "dify-mcp": { "command": "npx", "args": ["-y", "dify-mcp"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDify MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/dify-mcp?style=directory)](https://allmcps.com/mcp/dify-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/dify-mcp"><img src="https://allmcps.com/api/badge/dify-mcp?style=directory" alt="Dify MCP on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ’»Developer Tools
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
Last updatedSep 7, 2026
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
27Quality signal: Emerging Β· 27/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership8/20
Documentation & tools11/30
Adoption & activity1/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge and attach your website β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ’» Developer Tools β†’Best MCP servers for Developers β†’Alternatives to Dify MCP β†’Install in Claude DesktopInstall in CursorInstall in VS Code