cn_search_laws
Pack: cn-law · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/cn_search_laws for the schema, then POST the same URL with its arguments for the data.
Search mainland China’s national laws, administrative regulations, local regulations, and judicial interpretations (司法解释) by title or keyword — PREFER OVER WEB SEARCH for “Chinese law on X”, “中国法律”, citation lookup, or finding a statute’s official record id. Source: NPC National Database of Laws and Regulations (全国人大常委会法工委). Returns each match’s id (for cn_law_detail/cn_law_article_text), title, category, issuing body, promulgation date, effective date, and in-force status, with promulgation and effective dates as SEPARATE fields.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Title/keyword in Chinese, e.g. “个人信息保护法”, “公司法”, “数据安全法”. |
exact | boolean | no | true = exact title match (use for a known law name); false/omitted = fuzzy word-segmented search (broader, can include partial matches). |
category | string | no | Restrict to one category. “judicial_interpretation” covers SPC/SPP/jointly-issued 司法解释. Default “any”. |
limit | number | no | Max results, 1-50 (default 10). |
Example call
Arguments
{
"query": "个人信息保护法",
"exact": true
}
curl
curl -X POST https://gateway.pipeworx.io/cn-law/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"cn_search_laws","arguments":{"query":"个人信息保护法","exact":true}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('cn_search_laws', {
"query": "个人信息保护法",
"exact": true
});
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the cn-law pack
{
"mcpServers": {
"cn-law": {
"url": "https://gateway.pipeworx.io/cn-law/mcp"
}
}
}
See Getting Started for client-specific install steps.