Skip to main content
Glama

dify-canvas-mcp

MCP server for Dify workflow canvases. Read, patch, publish and test drafts through the user's signed-in Chrome — in any MCP client (Qoder, DSH, Claude Desktop, …).

Tools

Tool

What it does

dify_instances

List configured instances

dify_setup

Add/update an instance (alias + site URL only)

dify_browser_status

Show which browser channel is available

dify_browser_launch

Start a dedicated Chrome with a debugging port

dify_apps

List apps (an app can be referenced by name later)

dify_canvas_get

Draft node index (+ hash), or one node in full

dify_canvas_patch

Patch nodes; dry-run by default, apply:true writes with backup + self-check + reload verification

dify_canvas_publish

Publish and verify the published hash

dify_run

Run the draft once and return the executed node path

Related MCP server: BrowserLemon

Install

npm i -g dify-canvas-mcp
# or run without installing:
npx -y dify-canvas-mcp

MCP client config (stdio):

{
  "mcpServers": {
    "dify-canvas": {
      "command": "npx",
      "args": ["-y", "dify-canvas-mcp"]
    }
  }
}

First use

The transport is resolved automatically, in this order:

  1. Your daily Chrome, via --autoConnect — nothing to restart or reopen. Chrome asks for permission once (chrome://inspect remote debugging), then the connection is kept alive and reused. This preserves your sign-ins, extensions and tabs.

  2. chrome-pool on 127.0.0.1:3333, when present (one shared authorized connection).

  3. A Chrome started with --remote-debugging-port.

  4. dify_browser_launch — a dedicated Chrome window (isolated profile, sign in once) as the fallback.

Then:

dify_setup { alias: "prod", baseUrl: "https://dify.example.com" }

From then on, say the app's name — no UUID needed.

Credentials

The credential is the browser session. No cookie or token is stored on disk. Config lives in ~/.dify-canvas/config.json; backups of every written draft go to ~/.dify-canvas/backups/.

Write safety

  • dify_canvas_patch is dry-run unless apply:true.

  • Pre-write: on-disk backup + self-check (dangling edges, self loops, default_value types, code-node parameter mismatch).

  • Post-write: page reload, rendered-node count, crash banners.

  • dify_canvas_publish verifies the published hash against the draft hash.

MIT.

Available Tools

9 tools
dify_appsA

列出 Dify 应用(id、名称、类型、更新时间,支持分页和名称过滤)。其他工具的 app 参数可以直接写应用名称。

Inputs: name, page, alias, limit.

dify_browser_launchA

启动一个专用的 Chrome 窗口(独立配置目录,不动日常浏览器),带调试端口并打开 Dify。首次需要在这个窗口里登录 Dify;之后直接复用。

Inputs: port, alias.

dify_browser_statusA

查看当前可用的浏览器通道:chrome-pool、日常 Chrome 的调试端口、专用 Chrome,以及能否用 autoConnect 直接连日常 Chrome(零重启)。不会触发 Chrome 授权。

Inputs: alias.

dify_canvas_getA

读取工作流草稿。不传 nodeId 返回节点索引(id/标题/类型/备注/坐标)与草稿 hash;传 nodeId 返回该节点完整定义(代码、提示词、变量、坐标)。

Inputs: app (required), alias, nodeId.

dify_canvas_patchA

修改草稿中的已有节点(按 id 合并 data、整块替换 data、改坐标)。默认 dry-run 只返回 diff;apply=true 才写回。写回前自动备份并自检(悬空边、自环、default_value 类型、Code 节点参数一致),写后刷新页面并核对渲染。

Inputs: app (required), changes (required), alias, apply, +1 more.

dify_canvas_publishA

发布当前草稿并回读发布态 hash 核对。发布立即上线,调用前先向用户确认。

Inputs: app (required), alias, expectedHash.

dify_instancesA

列出已配置的 Dify 实例(别名、站点、调试端口、默认项)。其他工具的 alias 省略时使用默认实例。

Inputs: no named parameters.

dify_runA

在草稿上试运行一次(不发布)。返回工作流状态、实际执行的节点顺序、失败节点与最终回复。

Inputs: app (required), query (required), alias, inputs, +1 more.

dify_setupA

添加或修改一个 Dify 实例。只需要 alias 和站点地址(例如 https://dify.example.com);凭据是本机 Chrome 的登录态,不需要账号密码。

Inputs: alias (required), baseUrl (required), poolPort, debugPort, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool targets a clearly distinct resource or lifecycle stage: instance configuration, browser channel status/launch, app listing, draft read/patch/publish, and draft test run. The status-versus-launch and read-versus-patch-versus-publish boundaries are explicit. No two tools appear to perform the same action.

    Naming Consistency4/5

    All names use a consistent snake_case style with the dify_ prefix and meaningful resource grouping such as browser_ and canvas_. However, the convention is not uniformly verb_noun: some are noun-only list-style names (dify_instances, dify_apps), while others are verb-based (dify_run) or resource_action combinations. This is readable and mostly predictable, with only minor deviations.

    Tool Count5/5

    Nine tools is well-scoped for a Dify canvas management server. Instance setup, browser handling, app discovery, draft inspection, editing, publishing, and test running each earn their place without redundant coverage.

    Completeness3/5

    The surface covers listing apps, reading drafts, modifying existing nodes, publishing, running drafts, and supporting instance/browser setup. However, there are notable authoring gaps: no tool creates or deletes canvas nodes, and dify_canvas_patch explicitly only modifies existing nodes. Creating new apps/workflows is also absent, limiting full lifecycle coverage.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Connects AI agents to your Chrome browser via MCP, enabling real-time control of existing tabs, sessions, and application state for development workflows.
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables a local MCP server to control an authenticated Chrome browser for interacting with Google Search, Gemini, ChatGPT, Claude, and DeepSeek, including web search and image generation without per-provider API keys.
      -
    • A
      license
      B
      quality
      C
      maintenance
      Enables browser control through your existing signed-in Chrome profile, letting MCP clients like Claude Code manage tabs, navigate, inspect pages, and perform real user interactions via tool calls. Works with any model backend without needing Playwright or a fresh browser profile.
      21
      MIT