
Archform
io.github.himanshu-mamgain由 GitHub 账号 himanshu-mamgain 发布v0.2.2更新于 Oct 25, 2026
将图表作为代码进行渲染和验证:Mermaid、PlantUML、C4、Graphviz、D2 等。
AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。
原文描述
Render and validate diagrams as code: Mermaid, PlantUML, C4, Graphviz, D2 and more.
概览
Archform 的本地 MCP 服务;无需登录;STDIO。
暂无 AI 概览:以下信息来自注册中心条目和服务本身。
安装
在 SourceWeft 中
- 打开 控制台中的 Archform,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@archform/mcp
An MCP server that lets AI assistants render and validate diagrams as code: Mermaid, PlantUML, C4-PlantUML, Graphviz, D2, Structurizr, BPMN and Excalidraw.
It works in Claude Desktop, Claude Code, Cursor and VS Code over stdio, and in ChatGPT developer mode as a remote Streamable HTTP endpoint.
Example
The assistant writes diagram source like this D2:
render_diagram turns it into an image and a share link. The image below is that link:
[Rendered example: user, AI assistant, Archform MCP and Kroki]
Try it: once Archform is connected, ask your assistant:
Draw a C4 context diagram of a URL shortener.
Or "Turn schema.prisma into an ER diagram", or "Draw a sequence diagram of our login flow".
Privacy: rendering is done by Kroki. By default, diagram source is sent to the public kroki.io service. If your diagrams describe anything you would not paste into a public website, self-host Kroki and set
KROKI_URL.
Tools
All tools are read-only (readOnlyHint: true, openWorldHint: true).
Formats
Use it locally (stdio)
Requires Node.js 22 or later.
Claude Desktop: add to claude_desktop_config.json:
Claude Code:
Cursor: add to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):
VS Code: add to .vscode/mcp.json:
To use your own Kroki, add "env": { "KROKI_URL": "https://kroki.internal.example.com" } to the server entry.
Run it remotely (Streamable HTTP)
POST /mcp: MCP traffic (stateless)GET /health: health check
By default the server binds to 127.0.0.1 and rejects requests whose Host or Origin is not localhost (DNS rebinding protection). To expose it publicly, for example for ChatGPT developer mode, bind to all interfaces and name your public hostname:
Then add https://mcp.example.com/mcp as a connector in ChatGPT (Settings → Connectors, developer mode) with no authentication. Serve it behind HTTPS.
Limits
The HTTP endpoint limits request bodies to 512 KB and counts tool calls, not HTTP requests. A session's initialize and tools/list requests are not counted.
- Overall:
RATE_LIMIT(default 120 per minute) caps tool calls from all clients combined. Size it to what your Kroki backend can handle. The default is polite to the public kroki.io; raise it for a self-hosted Kroki. - Per client:
RATE_LIMIT_PER_CLIENT(default 60 per minute) stops one client from using the whole budget. ChatGPT calls your server from OpenAI's servers, so all ChatGPT users share a handful of IPs, and this limit applies to them together. On a deployment that mainly serves ChatGPT, setRATE_LIMIT_PER_CLIENT=0(as in the example above) or make it equal toRATE_LIMIT, so ChatGPT users can use the whole overall budget. - Behind a proxy: most hosts (Render, Fly.io, Railway, Cloud Run) put a proxy in front of your app, so every request seems to come from the proxy's address. Set
TRUST_PROXY=1(the number of proxies in front of the server) so the limiter uses the address your proxy added toX-Forwarded-For. Leave it unset when clients connect directly. Clients can write anything into that header, so it is ignored unlessTRUST_PROXYis set.
When a single tool call is over a limit, the model gets a normal tool result with isError: true and a message like "Rate limit reached: … Retry in 42s.", so it can tell the user to wait. An HTTP 429 would show up only as a generic connector failure. Batched or malformed requests over the limit get 429 with Retry-After.
The counters are in memory, so each instance enforces its own limits.
Configuration
Self-hosting Kroki
Kroki ships as Docker images. The core image covers PlantUML, C4-PlantUML, Graphviz, D2 and Structurizr; Mermaid, BPMN and Excalidraw each need a companion container:
Shareable links then point at your Kroki instance, so they only open for people who can reach it. See the Kroki installation docs for details.
Development
License
MIT
来源:packages/mcp/README.md,提交 c9815d4
工具
0版本历史
1- v0.2.2最新Oct 20, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分