home / mcp / chinese law mcp server

Chinese Law MCP Server

Provides Chinese law data, full-text search, and cross-references via MCP clients including Claude and Copilot.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "ansvar-systems-chinese-law-mcp": {
      "url": "https://chinese-law-mcp.vercel.app/mcp"
    }
  }
}

You can query Chinese law data in an MCP-compatible client by connecting to the Chinese Law MCP Server, which provides full-text search, provision retrieval, and currency checks for key Chinese statutes, regulations, and cross-references. This server enables you to build legal tech, compliance tools, or research workflows with AI-assisted access to authoritative Chinese law text.

How to use

Connect to the MCP server from your client of choice to start querying Chinese legal texts. You can use the hosted version for zero-install deployment or run the server locally through npm.

How to install

Prerequisites you need before installation:
- Node.js (with npm) installed on your machine. Ensure you have a recent LTS version.
- A working internet connection for initial setup and package installation.

Install and run locally

# Install and build the MCP server from source
git clone https://github.com/Ansvar-Systems/Chinese-law-mcp
cd Chinese-law-mcp
npm install
npm run build
npm test

# Start the MCP server in development mode
npm run dev

# Optional: test with MCP Inspector using the runtime dist
npx @anthropic/mcp-inspector node dist/index.js

Connect remotely without installation

Use the hosted endpoint to connect directly from your MCP client. The remote server URL is: - https://chinese-law-mcp.vercel.app/mcp

Configure your clients to point to the hosted endpoint. Examples for popular clients are shown below.

{
  "mcpServers": {
    "chinese-law": {
      "type": "http",
      "url": "https://chinese-law-mcp.vercel.app/mcp",
      "args": []
    }
  }
}

Claude Desktop and Copilot connection snippets

Add the MCP server to Claude Desktop configuration to enable direct queries from Claude.

{
  "mcpServers": {
    "chinese-law": {
      "type": "url",
      "url": "https://chinese-law-mcp.vercel.app/mcp"
    }
  }
}

GitHub Copilot can connect via VS Code settings by adding the MCP server as an HTTP transport.

{
  "github.copilot.chat.mcp.servers": {
    "chinese-law": {
      "type": "http",
      "url": "https://chinese-law-mcp.vercel.app/mcp"
    }
  }
}

Available tools

search_legislation

FTS5 full-text search across all provisions with BM25 ranking.

get_provision

Retrieve a specific provision by statute, including chapter and section identifiers.

check_currency

Check if a statute is currently in force, amended, or repealed.

validate_citation

Validate a citation against the database to reduce errors.

build_legal_stance

Aggregate citations across statutes to form a legal stance on a topic.

format_citation

Format citations according to Chinese conventions (full, short, pinpoint).

list_sources

List all available statutes with metadata and references.

about

Provide server information, capabilities, and coverage summary.

get_eu_basis

Retrieve EU directives or regulations that relate to a Chinese statute.

get_chinese_implementations

Find Chinese laws that implement a given EU act.

search_eu_implementations

Search EU documents with Chinese implementation counts.

get_provision_eu_basis

Obtain EU law references for a specific provision.

validate_eu_compliance

Check the implementation status of EU directives within Chinese law.