Archform

Official registry Developer tools

Render and validate diagrams as code: Mermaid, PlantUML, C4, Graphviz, D2 and more.

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package @archform/mcp
Claude Code
claude mcp add archform -e 'KROKI_URL=<KROKI_URL>' -- npx -y @archform/mcp@0.2.2
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "archform": {
            "command": "npx",
            "args": [
                "-y",
                "@archform/mcp@0.2.2"
            ],
            "env": {
                "KROKI_URL": "<KROKI_URL>"
            }
        }
    }
}

Environment variables

  • KROKI_URL Kroki server used for rendering. Defaults to the public https://kroki.io; set it to a self-hosted instance to keep diagram source private.

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. Archform
  2. Quick start
  3. Development
  4. Releasing
  5. License

Archform

Diagrams as code for AI assistants.

This diagram was drawn by Archform. Connect it to your assistant and ask, for example, "Draw a C4 context diagram of a URL shortener."

This is the monorepo for the @archform npm scope.

PackageDescription
@archform/mcpMCP server that renders and validates Mermaid, PlantUML, C4, Graphviz, D2, Structurizr, BPMN and Excalidraw diagrams

Quick start

claude mcp add archform -- npx -y @archform/mcp

See packages/mcp for Claude Desktop, Cursor, VS Code and ChatGPT setup.

By default diagram source is sent to the public kroki.io service for rendering. Set KROKI_URL to a self-hosted Kroki to keep it private.

Development

Requires Node.js 22+ and pnpm (corepack enable).

pnpm install
pnpm lint && pnpm typecheck && pnpm test && pnpm build

Releasing

Bump version in both packages/mcp/package.json and packages/mcp/server.json in a pull request. When it merges to main, the Publish workflow publishes the new version to npm (trusted publishing, with provenance) and to the MCP Registry. Pushes that don't change the version publish nothing.

License

MIT

Frequently asked questions

What is Archform?

Render and validate diagrams as code: Mermaid, PlantUML, C4, Graphviz, D2 and more.

How do I install Archform?

It runs on your machine. In Claude Code: claude mcp add archform -e 'KROKI_URL=<KROKI_URL>' -- npx -y @archform/mcp@0.2.2. For other clients, paste the JSON configuration from this page into their MCP settings.

Does Archform need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is Archform open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains Archform?

It is published by himanshu-mamgain. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.