DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to let an AI agent render diagrams through the MCP server with Architecture Canvas

Connect an agent over MCP stdio so it can read documents in one approved folder and render diagrams.

Short answer: Run git clone https://github.com/weike-zhang/architecture-canvas.git and then cd architecture-canvas; then choose a folder that you have approved for the agent and make sure it holds only the documents the agent may read; start the server with python3 mcp_server.py --root <authorized-docs-dir>, replacing the placeholder with your approved folder. All steps.

Who it is forA platform engineer building an agent workflow that must produce architecture diagrams from a fixed, approved set of documents.

The problemAn agent needs to read design documents and return diagrams, but you want it limited to one folder and separate from any open editing session.

The outcomeAn MCP stdio connection that exposes diagram rendering and document reading only within the folder you authorized.

What you need first

  • Python 3.10+, Node.js 22.12+, and npm installed on your machine
  • A model service with a Chat Completions compatible API that supports tool calling, plus its API key, for chat, generation, and document understanding
  • A vision-capable model if you want to send images to the assistant

Steps

  1. Run git clone https://github.com/weike-zhang/architecture-canvas.git and then cd architecture-canvas.
  2. Choose a folder that you have approved for the agent and make sure it holds only the documents the agent may read.
  3. Start the server with python3 mcp_server.py --root <authorized-docs-dir>, replacing the placeholder with your approved folder. (inferred, check the README)
  4. Point your MCP client at the stdio command above and confirm that the rendering and reading tools are listed.
  5. Read the integration notes in INTEGRATION.md before connecting a production agent.

Prompt for your agent

Using the architecture-canvas repo at https://github.com/weike-zhang/architecture-canvas, start python3 mcp_server.py with --root set to <authorized-docs-dir> and call the document reading tool on <document-name>. Expected output: a rendered diagram or document text limited to that folder. Verify that a path outside the --root folder is refused.

Caveat. The README says without --root the server only provides rendering tools and does not read files, and MCP runs apart from workspace sessions and does not modify the diagram you are editing.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for weike-zhang/architecture-canvas and "Let an AI agent render diagrams through the MCP server"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer