mcp

v2.0.5
@zindexai/mcp Checked 3 days ago Published 9 hours ago

Immutable diagrams for AI agents in Claude Code, Cursor, Claude Desktop and any MCP host.

The Zindex MCP server for Claude Code, Claude Desktop, Cursor and any other MCP host. Ask your agent for an architecture diagram, an ER diagram from your migrations or a request flow, and it saves the diagram to Zindex. Later, any agent you connect to your workspace, in any tool, can open it and change it, and every earlier version is still there with its exact picture. Your AI says what's in the diagram; Zindex lays it out and draws it with code, not a model, so it looks the same whichever agent edits it. Then run /mcp and choose to authenticate.

Summary extracted from the README.

@zindexai/mcp

Immutable agent diagrams. The diagram runtime your agents share. Zindex validates each saved change and keeps its revision and image.

The Zindex MCP server for Claude Code, Claude Desktop, Cursor and any other MCP host. Ask your agent for an architecture diagram, an ER diagram from your migrations or a request flow, and it saves the diagram to Zindex. Later, any agent you connect to your workspace, in any tool, can open it and change it, and every earlier version is still there with its exact picture.

An ER diagram of a blog schema, from the Zindex examples

What your agent can do

  • Create a diagram from Mermaid (flowchart or erDiagram) or a JSON scene. Its elements keep stable IDs.
  • Change it later with small edits. Your agent reads a short brief instead of the whole diagram and sends only what changes. Every change is a new numbered version.
  • Open any version by number or by date, and compare two versions.
  • Share it. Publish it for SVG and PNG links for READMEs, docs and chat, including one that always shows the latest version, or keep it private and make a share link (Pro and Team).
  • Work as a team. In a Team workspace, people and their agents work on the same diagrams, and each version shows who saved it and from which tool.

Your AI says what's in the diagram; Zindex lays it out and draws it with code, not a model, so it looks the same whichever agent edits it.

Setup

Most hosts don't need this package. Point them at https://api.zindex.ai/mcp and sign in with your Zindex account: claude.ai, the Claude apps, ChatGPT, Claude Code, Cursor and VS Code all can. In Claude Code:

claude mcp add --transport http zindex https://api.zindex.ai/mcp

Then run /mcp and choose to authenticate. Or install the Zindex plugin, which adds the same server and the Zindex skill: /plugin marketplace add zindexai/zindex, then /plugin install zindex@zindex, then run /mcp and authenticate. Hosts that can send a header can use an API key instead. Every host's steps: zindex.ai/docs/tools.

For hosts that only run local servers over stdio, use this package:

  1. Create an API key at zindex.ai/dashboard/api-keys, once your account's email is verified. Keys start with dsp_sk_. A key works in one workspace, the one selected when you make it, with read and write or read-only access; to work in two workspaces, configure a server for each.
  2. Add the server to your host's MCP config:
{
  "mcpServers": {
    "zindex": {
      "command": "npx",
      "args": ["-y", "@zindexai/mcp"],
      "env": { "ZINDEX_API_KEY": "dsp_sk_..." }
    }
  }
}

Without a key the server still starts, and diagram_validate, unsaved diagram_render previews and diagram_render of a version link (a share link or a published diagram's page) work. The other tools return AUTH_REQUIRED, saying to set ZINDEX_API_KEY. With a key Zindex refuses because it is wrong, revoked or expired, the server starts too, and every tool returns AUTH_REQUIRED saying to replace the key.

Requires Node.js 18 or later. The package is a small proxy to https://api.zindex.ai/mcp: the tools, their descriptions and the instructions come from that server, so they stay current without updating the package.

Plans

Free to start. Pro gives unlimited diagrams, and Team a shared workspace where each owner or member is a paid seat, at least 2, paid for when you create it; viewers and agents are free. See pricing.

Tools

Tool What it does
diagram_find Lists the workspace's diagrams, latest version first
diagram_get Reads a diagram as a compact outline, scene JSON or Mermaid; any version by revision or date
diagram_validate Checks a scene or Mermaid text without saving it
diagram_create Saves a diagram from a scene or Mermaid; a key makes retries safe
diagram_edit Changes a diagram with operations or edited Mermaid; every change is a new revision
diagram_render Returns SVG and PNG links to a version, with hashes and the engine version
diagram_history Lists versions, or compares two versions or dates
diagram_delete Deletes a diagram, with a 24-hour undo
diagram_share Publishes or unpublishes a diagram, makes (Pro or Team) or revokes share links, reports a problem, or sends feedback to Zindex

diagram_render also returns the image's size and the version's date, and takes a version link (a share link or a published diagram's page) from any workspace, with or without a key.

Configuration

Variable Meaning
ZINDEX_API_KEY Your API key
ZINDEX_MCP_URL The server to connect to; defaults to https://api.zindex.ai/mcp

zindex-mcp --help prints the same, and --version prints the package version.

Upgrading from 0.x

1.0 replaces the dsp_* tools with the diagram_* tools above. Diagrams saved with 0.x keep their IDs and work with the new tools. ZINDEX_API_URL still works and points the proxy at <url>/mcp.