# cn.pianam/legal-mcp

> MCP server for Chinese law lookup: statutes, regulations and articles by keyword or law name.

- name: cn.pianam/legal-mcp
- version: 1.0.0
- connection class: R0 (autonomous)
- trust: 80/100 flags: no-repository
- quality: 86/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/cn.pianam%2Flegal-mcp
- tools: https://api.protogrid.dev/v1/servers/cn.pianam%2Flegal-mcp/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "legal-mcp": {
      "type": "http",
      "url": "https://pianam.cn/legal-mcp/mcp"
    }
  }
}
```


## Trust

- hygiene: 80
- liveness: 100
- freshness: 100
- provenance: 45
- drivers: +dns-namespace +reachable +uptime-100% +updated-20d-ago -no-repository
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 86/100 (good)

### protocol: 88 (weight 25)

- pass `protocol.modern`: supports 2026-07-28 (server/discover)
- pass `protocol.stateless`: answers without a session
- pass `protocol.transport`: streamable HTTP
- warn `protocol.list_ttl`: tools/list declares ttlMs 0, so clients re-fetch it on every use

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 78 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- fail `tools.annotations`: no tool declares readOnlyHint or destructiveHint, so clients cannot tell safe calls from risky ones
- fail `tools.directory_hints`: no tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: law_search (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); labor_calc (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); court_fee_calc (readOnlyHint, destructiveHint, idempotentHint, openWorldHint)
- pass `tools.token_cost`: about 832 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool names, descriptions, schemas or annotations
- pass `tools.poisoning`: no instructions aimed at the model in tool definitions

### stability: 100 (weight 15)

- pass `stability.changes`: no tool changes in 30 days
- pass `stability.rug_pull`: no tool changed its meaning under the same name
- pass `stability.new_links`: no tool change named a new site

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 3, about 832 tokens to load them all
- tool set hash: 27d202bd259f4bd1866083c64465ceb6
- badge: [![protogrid quality](https://protogrid.dev/badge/cn.pianam/legal-mcp.svg)](https://protogrid.dev/servers/cn.pianam/legal-mcp)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

_No changes to tool, prompt or resource template definitions recorded._

## Remotes

- https://pianam.cn/legal-mcp/mcp (streamable-http, auth none, reachable true, uptime30d 1)

## Packages

_none_

## Tools (3)

- `court_fee_calc`: 诉讼费计算器（纯本地计算，依据《诉讼费用交纳办法》国务院令第481号）。用 case_type 区分：case_type=property 财产案件受理费：传 amount（标的额，元），按分段累计输出明细（≤1万每件50元；1-10万部分2.5%；10-20万2%；20-50万1.5%；50-100万1%；100-200万0.9%；200-500万0.8%；500-1000万0.7%；1000-2000万0.6%；超2000万0.5%）；case_type=divorce 离婚案件：基础受理费50-300元/件，可选传 property_amount（财产分割总额，元），超20万元部分按0.5%加收；case_type=execution 申请执行费：传 amount（执行金额，元），分段累计（≤1万每件50元；1-50万1.5%；50-500万1%；500-1000万0.5%；超1000万0.1%），不传金额时说明50-500元/件。
- `labor_calc`: 劳动法计算器（纯本地计算）。用 action 区分子功能：action=severance 经济补偿/赔偿金：传 years（工作年限，年，可为小数）、monthly_salary（离职前12个月平均月工资）、local_avg_salary（可选，当地上年度职工月平均工资，用于三倍封顶与12年封顶）、termination_type（N=协商/法定经济补偿；N+1=无过失性辞退加代通知金；2N=违法解除赔偿金）；action=overtime 加班费：传 monthly_salary（月工资或约定基数）及 workday_hours（工作日延时小时）、restday_hours（休息日小时）、holiday_hours（法定节假日小时），或用 hours+overtime_type（1.5/2/3）单次计算；action=annual_leave 年休假：传 total_years（累计工作年限）返回应享年假天数（5/10/15天）；action=double_wage 未签合同二倍工资：传 months_since_entry（入职月数）与可选 monthly_salary，返回最多11个月的二倍工资差额规则说明与估算。
- `law_search`: 常用法律条文全文检索（本地 SQLite FTS5，共收录6部法律1796条）：《民法典》1260条、《劳动法》107条、《劳动合同法》98条、《消费者权益保护法》63条、《道路交通安全法》124条、《治安管理处罚法（2025修订，2026年施行）》144条。三种用法：① keyword 关键词全文检索（如『经济补偿』『三倍工资』『醉酒驾驶』，可加 law 限定法律）；② law + article_no 按法律名与条号直取条文（如 law=劳动合同法, article_no=47；条号可传阿拉伯数字或中文）；③ 不传参数返回收录法律目录。返回法律名、条号与条文原文。
