Skip to content
MCP server
Registry

antu MCP Server

Legal diagrams (fact, procedure, relationship, justification) from JSON, as one offline HTML page.

antu scores 70 (Good), licensed AGPL-3.0 and written in JavaScript. It installs as a local process. It does not declare tools yet. Filed under Uncategorized. GitHub shows 9 stars. Package registries report about 169 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by zh-xxAGPL-3.0JavaScript9 stars
Trust score
70Good
Trust score 70 of 100, Good

Good trust

70 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: agpl-3.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 70 comes from

22 + 20 + 7 + 10 + 4 + 7 = 70. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity7 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 7 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "zh-xx-antu": {      "command": "npx",      "args": [        "-y",        "@zh-xx/antu@0.20.0"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

Antu · Legal Diagrams

Verify CodeQL OpenSSF Scorecard Release npm License: AGPL-3.0-or-later Node Status: 0.x Demo PRs welcome

中文 | English

Antu · Legal Diagrams turns case JSON into one offline HTML diagram—timelines, procedures, relationships, and court reasoning—for AI agents and legal professionals. The page is one file of about 2.3 MB that makes no network request and needs no server; it opens offline and can be archived, printed or sent as an attachment. An AI Agent can read the case materials and write the JSON; the engine then draws the diagram from it, and the same JSON gives the same diagram. Antu is at version 0.x, and the formats of the relationship and justification diagrams are still drafts.

Diagram Types

Four types of legal content, each drawn in several ways. A selector in the page switches between the ways; nothing in the JSON chooses one.

Relationship diagrams (seven ways of drawing the same JSON) show parties, roles and legal relationships; fact diagrams the time, the participants and how events went; procedure diagrams a procedural path and its branches; justification diagrams a conclusion drawn from norms and facts. The relationship and justification schemas are still drafts, and justification is currently experimental and on hold.

Four looks, called themes: document (black and white and square, for print and filing; the default), modern (rounded, pale), legal (navy) and dark (the modern look on a dark ground, for a dark host). The reader switches in the page, or a call fixes a page to one. Only the diagram is themed; dark also darkens the shell round it. See spec/theme.md.

Usage

npm install
npm run diagram -- examples/fact/neighbour-corridor-charging.en.json

The page is written beside the JSON file. The interface language of a page is set with ?lang=en or ?lang=zh; the case content is never translated.

Principle

Agent ──> key information ──> one JSON ──> engine ──> diagram
RoleDoesDeterminism
Modelreads documents, extracts facts, understands meaningthe result may differ from run to run
Enginedraws the diagram according to the specificationthe same JSON gives the same diagram, whichever model wrote it
JSON specificationthe only interface between the twoversioned (see spec/versioning.md)

The engine does not write JSON, and the Agent does not draw. The model puts information into JSON; the engine draws. The JSON specification is a specification of its own, for four reasons:

  1. General-purpose charting syntax is built on nodes, edges and state machines, and has no place for procedural standing or the source of a piece of evidence.
  2. The diagram does not depend on which model extracted the information.
  3. The same JSON gives the same diagram at any time and in any environment, so a diagram handed to a court or to the other side can be reproduced.
  4. The source is recorded when the facts are extracted: each fact states the document, the page and the provision it rests on, and the diagram shows them. The materials themselves are neither bundled nor linked.

Agent Integration

The reference material for an Agent, for the fact diagram, is a field table of about 3.4k characters and a mechanism note of about 6.3k characters.

Skill

npx skills add zh-xx/Antu -g

The Skill is in skills/antu/; each release also carries it as antu-skill-<version>.zip.

The command line asks the npm registry once a day whether a newer Antu is out (one GET request, nothing of any diagram) and, if so, ends its output with a notice. ANTU_NO_UPDATE_NOTIFIER=1 turns it off.

MCP

The MCP server is the npm package @zh-xx/antu, registered as io.github.zh-xx/antu in the MCP registry.

{
  "mcpServers": {
    "antu": {
      "command": "npx",
      "args": ["-y", "-p", "@zh-xx/antu@latest", "antu-mcp"]
    }
  }
}

Tools: antu_schema, antu_guide, antu_examples, antu_validate, antu_layout, antu_render, antu_preview, antu_versions.

DeepSeek Harness (DSH)

A native DSH plugin, @zh-xx/antu-dsh (Host tools + a chat card with a picker of the way of drawing), is on npm: dsh plugin --profile <name> add @zh-xx/antu-dsh, then restart DSH. It needs DSH 0.2.0-rc.2 or newer. How it works and how it is tested: docs/dsh/dsh-plugin.md and tools/dsh/README.md. A profile that cannot use the plugin can still attach antu-mcp with a configuration-only bundle; the recipe and its limits are in tools/dsh/README.md.

In an Application

The same package has entries for an application's own code (spec/embed.md):

import { mount } from '@zh-xx/antu/embed'          // draw a diagram inside your page, in a shadow root
import { validate } from '@zh-xx/antu/validate'    // check the JSON your model wrote; each error names its field
import { renderHtml } from '@zh-xx/antu/html'      // the self-contained page as a string (Node)
import type { ProcedureSpec } from '@zh-xx/antu/types'  // TypeScript shapes for each diagram JSON

const diagram = mount(element, spec, { lang: 'en', onEvent: (e) => console.log(e) })

Documentation

Security

  • To report a vulnerability, use the private report described in SECURITY.md; please do not open a public issue for it.
  • Every version of @zh-xx/antu and @zh-xx/antu-dsh on npm is published by GitHub Actions through npm's trusted publisher, with provenance: the page of the version on npm links back to the commit and the workflow run that made it. deps.dev shows the same record, with the known advisories (none at the time of writing) and the licence.
  • A page made with Antu works offline and sends nothing anywhere; the command line asks once a day whether a newer version exists and sends nothing of a diagram (ANTU_NO_UPDATE_NOTIFIER=1 turns that off).

License

Copyright (C) 2026 Ji Cheng.

Antu is free software, licensed under the GNU Affero General Public License, version 3 or any later version (LICENSE, SPDX AGPL-3.0-or-later). In short: you may use, study, change and share it, including for commercial purposes. If you distribute a changed version, or let others use it over a network (for example as a hosted service), you must release your changes under the same licence, keep the copyright and licence notices, and make the source available. There is no warranty. This summary is not the licence; the licence text is.

  • Additional permission (AGPL section 7). A page made with Antu contains Antu's code together with the diagram data you gave it. The diagram data, and the content of the diagram you drew from your material, are not part of Antu and are not covered by this licence: you may keep them private, publish them, or sell them on any terms you like. The licence covers Antu's code in the page, and the notices in the page must stay with it. The same text is in every page and at the top of the command line.
  • If your company or an app store does not take AGPL software, or asks for an extra statement before it will list or install something under it, that is a policy of theirs and not something this project can change by itself. Tell us in an issue what you need; the page and the data you make with Antu are yours (see the additional permission above).
  • Everything in the repository (the code, the examples, the specifications and the guides) is under the same licence, except what is named below.
  • Code of other projects inside the pages and the command line keeps its own licence. Its notices are in skills/antu/THIRD-PARTY-NOTICES.md, and also inside every page and at the top of the command line, together with the licence of Antu and the place of the source of that version.
  • The cases in examples/ and the judgment texts in examples/raw/ are fictional: the people, companies, dates, amounts and provisions are made up for Antu and match no real case. They are under the same licence.
  • Versions up to 0.5.0 were published without a licence file. The licence applies from 0.5.1.

Frequently asked questions

What is antu MCP Server?

Legal diagrams (fact, procedure, relationship, justification) from JSON, as one offline HTML page.

How do I install antu MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. antu MCP Server runs locally from the npm package @zh-xx/antu with the command npx -y @zh-xx/antu@0.20.0.

Is antu MCP Server free and open source?

Yes. antu MCP Server is released under the AGPL-3.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does antu MCP Server support remote (HTTP) connections?

No remote endpoint is listed for antu MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is antu MCP Server's trust score calculated?

antu MCP Server scores 70 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server