Skip to content
VS Code

dify mcp for VS Code

io.github.salted-butter-joshua/dify-mcp

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

client:VS Code transport:stdio runtime:pypi

Install dify mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "dify-api-base",
      "description": "DIFY_API_BASE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "dify-api-key",
      "description": "DIFY_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "dify-allowed-datasets",
      "description": "DIFY_ALLOWED_DATASETS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "dify-timeout",
      "description": "DIFY_TIMEOUT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "dify-verify-ssl",
      "description": "DIFY_VERIFY_SSL",
      "password": true
    }
  ],
  "servers": {
    "dify-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "dify-mcp"
      ],
      "env": {
        "DIFY_API_BASE": "${input:dify-api-base}",
        "DIFY_API_KEY": "${input:dify-api-key}",
        "DIFY_ALLOWED_DATASETS": "${input:dify-allowed-datasets}",
        "DIFY_TIMEOUT": "${input:dify-timeout}",
        "DIFY_VERIFY_SSL": "${input:dify-verify-ssl}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

dify mcp in other clients