Skip to main content
MCP server CX Codex

antu — Claude Code MCP server: legal diagrams from JSON

Turns a single JSON document into a self-contained HTML page with a legal diagram. Useful when case materials have to reach a court or the other side.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add antu -- npx -y @zh-xx/antu
Open on GitHub

What antu does

Antu reads a JSON document and draws one HTML page holding a legal diagram. That page stands on its own: no network calls, no server, opens offline, and you can print it or send it as an attachment. An agent reads the case materials and writes the JSON; the engine draws from it. Feed the same JSON twice and you get the same picture.

Four kinds of legal content are covered: relationships, facts, procedure and justification. Relationships come in seven renderings — graph, focus view, relation matrix, equity tree, authority chart, related-party list, relation path. Facts get a timeline, a chronicle or a time scale. Procedure gets a flowchart or a route map. Justification gets a reasoning tree and is marked experimental. A selector on the page flips between renderings; the JSON itself does not pick one. Themes: document (black and white, square, meant for print and filing, the default), modern, legal and dark.

This is version 0.x, and the relationship and justification schemas are still drafts. Every fact in the JSON names the document, the page and the provision behind it, which is what lets the diagram be reproduced later. The materials themselves are neither bundled into the page nor linked from it. Interface language is set with ?lang=en or ?lang=zh; case content is never translated.

What it helps with

  • map the parties and their legal relationships from case files
  • put a chronology of events on one page
  • draw a procedural flowchart with its branches
  • record the source of each fact — document, page, provision
  • produce a diagram that can be printed and filed

Example prompts for the agent

  • Read the case materials and build the JSON for a relationship diagram of the parties
  • Turn this document into an Antu fact timeline
  • Draw the procedure flowchart from this JSON

How to install antu

Platform CLI

claude mcp add antu -- npx -y @zh-xx/antu

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about antu

How do I install antu in Claude Code?

With one command: claude mcp add antu -- npx -y @zh-xx/antu.

What does antu do?

It builds a legal diagram — relationships, facts, procedure or justification — from one JSON document and returns it as a self-contained HTML page that makes no network requests.

Do I need a server or an internet connection to view the diagram?

No. The page opens offline, and you can archive it, print it or send it as an attachment.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor