Skip to main content
Glama
Chinese Compliance Tools

Chinese Compliance Tools

by mingyi-blog

Liuwangcun Chinese Compliance Tools · MCP Server

29 deterministic tools for Chinese contracts, labor law, and everyday money math — built for AI agents.

MCP Registry MCP endpoint no LLM tools price

LLMs are unreliable at two things in Chinese: counting money correctly and citing the right statute. This server solves exactly those two, with zero LLM in the loop — pure rules and formulas, with the article number attached to every answer.

One-line setup

{"mcpServers":{"liuwangcun":{"url":"https://api.liuwangcun.com/mcp"}}}
  • Endpoint: https://api.liuwangcun.com/mcp

  • Transport: streamable-http (JSON-RPC 2.0)

  • Auth: none. Free trial on every tools/call.

  • Registry name: com.liuwangcun.api/chinese-compliance-tools

Related MCP server: china-law-mcp

What it does

1. Text compliance screening — paste the Chinese text, get risk findings

Situation

Tool

Posting an ad / livestream script, afraid of banned superlatives

ad-law

About to sign an employment contract

labor-contract

About to sign a lease

rental-contract

About to sign a purchase contract

procurement-contract

Shipping a privacy policy / ToS

privacy-policy

About to sign a renovation contract

decoration-contract

Lending or borrowing money

loan-contract

Signing an NDA

nda

Taking or giving outsourcing work

outsourcing-contract

Signing a separation agreement

separation-agreement

2. Deterministic calculators — when the model must not guess

Question your user asks

Tool

How much overtime pay am I owed?

overtime-pay

Severance: N, N+1, or 2N?

severance-pay

How much non-compete compensation?

noncompete-pay

Is this deposit over the 20% cap?

deposit-check

Is this probation period legal?

probation-check

Work-injury disability benefit amount

gongshang-benefit

How many days left to file for arbitration?

limitation-clock

Is this renovation quote reasonable?

zhuangxiu-budget

Validate a USCC / ID card / bank card

cn-uscc, cn-idcard, luhn-bank

Convert amount to Chinese financial uppercase

rmb-uppercase

Mask PII before sending text to a model

pii-mask

Timestamp / timezone conversion

time-tool

3. Contract clause checklists — by your stance, not generic templates

Need

Tool

Employment contract clause checklist

labor-template

Lease clause checklist

rental-template

IOU / loan clause checklist

loan-template

Renovation contract clause checklist

decoration-template

Separation agreement clause checklist

separation-template

Output is a checklist of required elements, traps, and negotiation talking points — deliberately not a ready-to-sign contract body. Generic templates are the #1 cause of unread fine print; a checklist forces the reader to fill in their own terms.

Example

{"jsonrpc":"2.0","id":3,"method":"tools/call",
 "params":{"name":"gongshang-benefit","arguments":{"level":9,"monthlyWage":8000}}}
{
  "oneTimeGrantMonths": 9,
  "oneTimeGrant": 72000,
  "oneTimeGrantText": "9 个月 × 8000 元 = 72000 元",
  "basis": "《工伤保险条例》第三十七条:七至十级 13/11/9/7 个月"
}

Why deterministic instead of a prompt

Prompt-based

This server

Overtime 150/200/300% arithmetic

drifts across runs

fixed formula

Statute citation

hallucinates article numbers

whitelisted, verified

Deposit 20% cap edge cases

inconsistent

unit-tested

Cost per call

model tokens

~0

Audit trail

none

same input → same output

Scope and honesty

  • Only national-level provisions are computed. Province-specific work-injury top-ups are explicitly flagged as "look up your province", rather than invented.

  • Clause checklists are not legal advice and not a substitute for a licensed lawyer.

  • No LLM, no external lookups, no write operations, no payment or identity data.

Also available

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Provides read-only, citation-grounded Chinese AI compliance and filing Q&A, enabling agents to search regulations, retrieve requirements, generate self-check lists, and determine filing obligations with legal basis.
      8
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables LLMs to search Chinese statutes and verify legal citations locally, including detecting fabricated references in generated text. It supports natural-language queries, article lookup, and citation validation without registration, API keys, or network access.
      5
      8
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to check Chinese commercial content for advertising-law prohibited terms, AI-generated-content labeling requirements, and 17-item organizational compliance self-assessment, returning each hit with its location, cited legal basis, and revision suggestion. Runs fully offline with a deterministic rule engine and zero external dependencies.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to search mainland China's national laws, administrative and local regulations, judicial interpretations, and Supreme People's Court guiding cases, and to retrieve metadata plus the original Chinese text of individual articles or full regulations and case narratives. Results carry issuing body, promulgation and effective dates, and in-force status, with keyless access and no fabricated snippets when a document can't be read.
      102 npm
      MIT