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
- Run
git clone https://github.com/weike-zhang/architecture-canvas.gitand thencd architecture-canvas. - 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. (inferred, check the README) - Point your MCP client at the stdio command above and confirm that the rendering and reading tools are listed.
- 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
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer