# antu

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 8
- Author: zh-xx
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/zh-xx/Antu
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/mcp/antu

## What it 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.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add antu -- npx -y @zh-xx/antu
```

### Codex

**Platform CLI**
```bash
codex mcp add antu -- npx -y @zh-xx/antu
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "antu": {
            "command": "npx",
            "args": [
                "-y",
                "@zh-xx/antu"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "antu": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@zh-xx/antu"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add antu npx -y @zh-xx/antu
```

## When to use it
- 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
- 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

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
