🚀 Feature: draw.io MCP connector preset
🔖 Feature description
Add draw.io to the Connectors catalog as a remote MCP preset, so agents can draw flowcharts, architecture diagrams and other diagrams and hand the user a link that opens the result in the draw.io editor.
draw.io runs an official hosted MCP server at https://mcp.draw.io/mcp (jgraph/drawio-mcp). It needs no sign-in at all, which the preset inclusion rules allow (see the top of docsgpt/connectors/presets/mcp.yaml).
🎤 Why is this feature needed?
"Draw our ingestion pipeline as a flowchart" is a very common request in a docs and engineering assistant. draw.io diagrams are editable and widely used, and the server works for every DocsGPT user with no account.
✌️ How do you aim to achieve this?
- Add an entry to
docsgpt/connectors/presets/mcp.yaml, following the existing ones:key: mcp:drawio,name: draw.io, a one-linedescriptionicon: drawio,category: projectsmcp_url: https://mcp.draw.io/mcpcapabilities: [read]; confirm withtools/listdocs_url: https://github.com/jgraph/drawio-mcp
- Add the icon at
frontend/src/assets/connectors/drawio.svg(draw.io's official mark). - Add the description key
settings.connectors.descriptions.mcp_drawioto all seven locale files infrontend/src/locale/(de en es jp ru zh zh-TW). - Add draw.io to the preset lists in
docs/content/Sources/Connectors/index.mdx(the "MCP presets" section) anddocs/content/Tools/mcp-tools.mdx. - Update
tests/connectors/test_catalog.pyif it lists or validates the presets.
Notes for draw.io:
- It needs no sign-in.
- Every existing preset uses
auth_kind: mcp_oauth. Infrontend/src/connectors/useConnectorLauncher.tsx, entries withauth_kindmcpormcp_oauthopen the MCP server form prefilled from the preset. An entry withauth_kind: nonefalls through to the generic connector wizard instead. - Start with
auth_kind: mcpand confirm that connecting saves a working server without asking for anything. - Excalidraw (#2914) and CoinGecko (#2917) have the same question. Reuse whichever approach lands first; if this lands first, include any small fix (with a test).
- Every existing preset uses
- Tools:
create_diagramtakes draw.io XML or Mermaid and returns anapp.diagrams.netlink.search_shapesfinds shapes in draw.io's libraries.- The server also ships an inline MCP Apps view. DocsGPT doesn't render those yet (tracked in #2913), so the link is the useful result for now.
- Sessions: the server is stateful and returns an
mcp-session-idheader. Confirm that a multi-step conversation (create, then revise the diagram) keeps working. - Privacy: with the hosted server, diagram content is sent to draw.io's servers. jgraph's README documents this and a self-hosted option. Mention it in the docs line.
Other presets are being added in parallel this month and touch the same YAML and locale files, so expect to rebase on main before merge.
Acceptance criteria
- draw.io appears on the Connectors page with its icon and description in every locale.
- Connecting it needs no sign-in or form input, and the connection then works as an agent tool.
- Asking an agent to "draw a flowchart of how a RAG pipeline answers a question" returns a link that opens the diagram in draw.io.
ruff check .,python -m pytest tests/connectorsandcd frontend && npm run lintpass. If you change frontend logic, also runnpm run build.
🔄️ Additional Information
Please attach a screenshot of the draw.io card on the Connectors page and of the diagram opened from the agent's link. UI work follows frontend/DESIGN.md.
Hi! I'd like to take this one on. I'll add the draw.io preset, icon, translations and docs, then test the connection and creating/editing a diagram. Could you assign it to me? Thanks!
@haddybhaiya, you're assigned.
- Open a PR or post a progress update within 14 days; otherwise the issue may be reassigned.
- Read
CONTRIBUTING.mdandfrontend/DESIGN.mdbefore starting. - Include screenshots or a short recording in the PR showing the draw.io connector card and the diagram opened from the agent's link.
Automated triage. A maintainer will follow up.