home / mcp / chinese law mcp server
Provides Chinese law data, full-text search, and cross-references via MCP clients including Claude and Copilot.
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.
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.
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 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.jsUse 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": []
}
}
}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"
}
}
}FTS5 full-text search across all provisions with BM25 ranking.
Retrieve a specific provision by statute, including chapter and section identifiers.
Check if a statute is currently in force, amended, or repealed.
Validate a citation against the database to reduce errors.
Aggregate citations across statutes to form a legal stance on a topic.
Format citations according to Chinese conventions (full, short, pinpoint).
List all available statutes with metadata and references.
Provide server information, capabilities, and coverage summary.
Retrieve EU directives or regulations that relate to a Chinese statute.
Find Chinese laws that implement a given EU act.
Search EU documents with Chinese implementation counts.
Obtain EU law references for a specific provision.
Check the implementation status of EU directives within Chinese law.