# Zindex > Immutable diagrams for AI agents. Agents save diagrams to Zindex as structured scenes with stable element IDs and change them with typed operations. Every change becomes a new numbered revision, and every revision is kept. Agents can read any revision by number or by date and diff any two. Zindex validates scenes, computes layout, and renders to SVG or PNG. No model runs inside Zindex. Validation, layout and rendering are deterministic code. Try the engine without signup at `api.zindex.ai/v1/diagrams/{validate,preview}` (no API key, with [rate limits](https://zindex.ai/docs/limits/#rate-limits)); saving diagrams, and every MCP tool, needs a free account. The canonical agent entry point is [https://zindex.ai/](https://zindex.ai/) - fetch it with `Accept: text/markdown` for imperative onboarding instructions. Agents using Model Context Protocol connect to the remote MCP server at `https://api.zindex.ai/mcp`: clients that support MCP sign-in (claude.ai, the Claude apps, ChatGPT, Claude Code, Cursor, VS Code) sign the user in with their Zindex account (OAuth) as they connect, and a client that can send a header can use an API key as a bearer token instead (see [MCP tools](https://zindex.ai/docs/tools/)). The npm package `@zindexai/mcp` runs locally with a `ZINDEX_API_KEY` environment variable; without one, it starts but every tool returns `AUTH_REQUIRED` (see [Run it locally with npm](https://zindex.ai/docs/tools/#run-it-locally-with-npm)). Free account at [https://zindex.ai/signup/](https://zindex.ai/signup/). ## Agent onboarding - [Canonical agent front door](https://zindex.ai/): start here with `Accept: text/markdown` - [Connect your agent](https://zindex.ai/connect/): the page to send a person to, with the MCP URL and the steps for each client - [Quickstart](https://zindex.ai/docs/quickstart/): connect an AI, or save, change, read and render a diagram with the REST API - [MCP tools](https://zindex.ai/docs/tools/): add the remote MCP server at `https://api.zindex.ai/mcp` to claude.ai, ChatGPT, Claude Code, Cursor or VS Code, run it locally with the npm package `@zindexai/mcp`, and every `diagram_*` tool - [Zindex skill](https://zindex.ai/skill/SKILL.md): how an agent finds, changes and renders diagrams with the `diagram_*` tools - [Concepts](https://zindex.ai/docs/concepts/): immutable versions, reads by number or date, retries and conflicts, stored images and the address each saved image prints (`zindex.ai/d/{id}@{revision}`, whose ID and revision open that version), verifying a history's hash chain - [Mermaid scope](https://zindex.ai/docs/mermaid/): what imports (flowchart, erDiagram and sequenceDiagram), what is left out with a warning, what is refused, and how edits round-trip ## Examples (executable patterns) - [Examples index](https://zindex.ai/examples/): browse the gallery of worked examples - [Examples manifest](https://zindex.ai/examples/index.json): machine-readable manifest with per-example resource URLs - Each example exposes structured resources at `/examples/.scene.json` (canonical DSP scene), `/examples/.ops.json` (typed-operation envelope), `/examples/.workflow.json` (agent workflow recipe), `/examples/.diff.json` (sample revision diff), `/examples/.svg` (rendered diagram), `/examples/.md` (markdown summary). Seven showcase examples additionally expose `/examples/.before.svg` for the revision diff's before picture. ## Protocol - [Scene schema](https://zindex.ai/docs/reference/schema/): the shape of a DSP scene document, element kinds and layout modes - [scene.schema.json](https://zindex.ai/schemas/scene.schema.json): JSON Schema for DSP scene documents - [ops.schema.json](https://zindex.ai/schemas/ops.schema.json): JSON Schema for DSP operations - [DSP spec repository](https://github.com/zindexai/diagram-scene-protocol): the DSP spec and both JSON Schemas, open source under Apache-2.0; the Zindex engine and hosted service are not open source - [Operations](https://zindex.ai/docs/reference/operations/): the typed operation set (createNode, createEdge, updateNode, restoreRevision and the rest) ## Reference - [Element types](https://zindex.ai/docs/reference/element-types/): node/edge types by diagram family - [Diagram families](https://zindex.ai/docs/reference/diagram-classes/): architecture, flowchart, workflow, sequence, ER, orgchart, uiflow, network - [Constraints](https://zindex.ai/docs/reference/constraints/): align, order, sameSize, distribute, stack, centerIn, contain, grid, minGap, noOverlap - [Rendering](https://zindex.ai/docs/reference/rendering/): themes, the dark theme's tints and the emphasized path, adaptive colors in dark themes, style cascade, contrast, edge routing, and what layout and drawing do on their own, such as growing a canvas or dropping a redundant edge label; the warnings they return, such as TEXT_OVERFLOW, NODE_OVERLAP_DETECTED and FRAME_OVERLAP_DETECTED - [Layout engine](https://zindex.ai/docs/reference/layout-engine/): auto-layout scope, node positions kept after the first save and `autoLayout` to lay out again, swimlanes, AWS architecture diagrams (Availability Zones as columns and subnets as rows, or zones as rows with direction LR), Google Cloud architecture diagrams (zones as columns, tiers as rows), numbered steps on edges, spanning frames drawn round elements in other frames, canvas-aware spread, and refinement - [AWS icon keys](https://zindex.ai/docs/reference/aws-icons/): every `aws:*` icon key, from the official AWS Architecture Icons, with AWS's name and kind - [Google Cloud icon keys](https://zindex.ai/docs/reference/gcp-icons/): every `gcp:*` icon key, from Google's product icons, with Google's name and category - [Validation rules](https://zindex.ai/docs/reference/validation-rules/): every code a check, save or edit returns, with its severity, message and what to change ## API - [REST API](https://zindex.ai/docs/api/): `/v1/diagrams`, the REST API the MCP server uses, a diagram's or the whole workspace's history in one file, write and read API keys, and error codes - [Workspaces](https://zindex.ai/docs/workspaces/): each key or sign-in acts in one workspace, personal or team, with write or read access (`READ_ONLY` on changes); roles, joining, moving a diagram in, the sharing switch, seats and pooled limits, and the workspace's storage (Zindex's own by default, or its own GitHub repository on Pro and Team); managing a workspace is for the signed-in dashboard only - [Sharing](https://zindex.ai/docs/sharing/): share links that show one version, the latest or every version, who each is for and when it ends, revoking, the record of every link, checking a shared picture's fingerprint, and what a recipient sees - [Embedding and linking](https://zindex.ai/docs/embedding/): which link to put where, for GitHub, Notion, Confluence, Linear, Jira, Google Docs, Slack, Teams, email and a web page. Pin one version in an issue, a review or a page an agent publishes; follow the latest in a README. A Claude artifact can't load outside images, so a command embeds the version's PNG, or the page loads it through the connector. - [Limits](https://zindex.ai/docs/limits/): what each plan includes, what counts against it, the warning before a limit, the rate limits, and how long a drawing may take - [OpenAPI spec](https://api.zindex.ai/openapi.json): machine-readable API contract - [API root](https://api.zindex.ai/): service description with Link headers ## Pricing - [Pricing](https://zindex.ai/pricing/): Free (25 diagrams, every version kept, share links to one version for up to 7 days; an account unused for 12 months is deleted after two email warnings), Pro ($5 a month or $48 a year: unlimited diagrams under fair use, bring your own storage, share links to the latest or every version with any end date) and Team ($8 a month or $80 a year per paid seat, at least 2, free to try for 14 days, one trial per person: everything in Pro, one shared workspace, viewers and agents free, Pro's limits for each paid seat, pooled) ([Limits](https://zindex.ai/docs/limits/#plans)); fetch with `Accept: text/markdown` for the agent version - [Teams](https://zindex.ai/teams/): a team workspace's roles, access and storage, and five people's agents changing one diagram, each from their own client ## Privacy and security - [Privacy commitments](https://zindex.ai/privacy/): encrypted at rest by our database and storage providers, no LLM subprocessors, problem reports to support anonymized by default, your personal workspace deleted on closing, except a deletion log of IDs; diagrams you made in a team workspace stay with it; images within a day, backups within 30 days; a Pro or Team workspace can keep its diagrams in its own GitHub repository instead of Zindex's own storage, the default ([Bring your own storage](https://zindex.ai/docs/storage/)) - [Bring your own storage](https://zindex.ai/docs/storage/): an option on Pro and Team that keeps a workspace's diagrams in its own private GitHub repository instead of Zindex's own storage, the default; what the repository holds, the index Zindex keeps (metadata, such as IDs, numbers, times, hashes and settings, never the diagrams' content), the App's access, checking a history from the repository alone, its limits and leaving - [Security](https://zindex.ai/security/): how to report a security problem, what happens next, and the research we welcome