# Customs Declaration Consistency (npm · dsh-customs-mcp)

Read-only MCP server that checks a Chinese customs declaration ledger for internal inconsistency.

- Trust score: 69/100 (medium)
- Change this week: +3
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-11-05

## Components

- npm · `dsh-customs-mcp`: 69/100 (this document), [markdown](https://verifymcp.io/servers/perrylink-dsh-customs/dsh-customs-mcp.md), [page](https://verifymcp.io/servers/perrylink-dsh-customs/dsh-customs-mcp)

## Channel facts

- Registry: `npm`
- Package: `dsh-customs-mcp`
- Version: `0.1.0`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-11-05.

- **Supply Chain Security**: 100/100
  - No malware found by supply-chain analysis.
  - No known CVEs affecting this package version or its production dependencies.
  - No install/post-install scripts declared.
  - No production dependencies, so there is no dependency health to assess.
- **Provenance & Transparency**: 19/100
  - Repository check failed: no source repository is declared.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (Apache-2.0).
  - Actively maintained (last published 15 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 74/100
  - AI-judged instruction clarity (excellent).
  - Context-footprint check failed: tool/resource definitions use about 754 tokens (~188/item across 4 items; 4 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 53/100
  - Stability observed for 16 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Tool Safety**: 100/100
  - No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.
  - We read all 4 captured tool definition(s), and no name or description among them implies an irreversible operation.
  - An AI judge read all 4 captured unit(s) of tool text and found none that tries to manipulate the model reading it.
- **Capabilities**: 20/100
  - Spec-recency check failed: implements MCP spec 2024-11-05; the latest is 2026-07-28.

## Install

### How do I install the Customs Declaration Consistency MCP server?

Customs Declaration Consistency runs locally as an npm package, launched with npx -y dsh-customs-mcp. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

### Claude

```bash
claude mcp add perrylink-dsh-customs -- npx -y dsh-customs-mcp
```

### Cursor

```json
{
  "mcpServers": {
    "perrylink-dsh-customs": {
      "command": "npx",
      "args": [
        "-y",
        "dsh-customs-mcp"
      ]
    }
  }
}
```

### VS Code

```json
{
  "servers": {
    "perrylink-dsh-customs": {
      "command": "npx",
      "args": [
        "-y",
        "dsh-customs-mcp"
      ]
    }
  }
}
```

### Codex

```bash
codex mcp add perrylink-dsh-customs -- npx -y dsh-customs-mcp
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "perrylink-dsh-customs": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "dsh-customs-mcp"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add perrylink-dsh-customs --command npx --arg -y --arg dsh-customs-mcp
```

### Hermes

```yaml
mcp_servers:
  perrylink-dsh-customs:
    command: "npx"
    args: ["-y", "dsh-customs-mcp"]
```

### Netclaw

```json
{
  "McpServers": {
    "perrylink-dsh-customs": {
      "Transport": "stdio",
      "Command": "npx",
      "Arguments": [
        "-y",
        "dsh-customs-mcp"
      ]
    }
  }
}
```

### Vellum

```bash
assistant mcp add perrylink-dsh-customs -t stdio -c npx -a -y dsh-customs-mcp
```

### Other

```json
{
  "mcpServers": {
    "perrylink-dsh-customs": {
      "command": "npx",
      "args": [
        "-y",
        "dsh-customs-mcp"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-11-03 (score 69, +1)

No change was recorded against any check on this day. Stability & Change Management went from 43 to 47. That category is still filling its 30-day observation window: 13 days of observed history at the previous scan, 14 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-11-01 (score 68, +1)

No change was recorded against any check on this day. Stability & Change Management went from 37 to 40. That category is still filling its 30-day observation window: 11 days of observed history at the previous scan, 12 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-10-30 (score 67, +1)

No change was recorded against any check on this day. Stability & Change Management went from 30 to 33. That category is still filling its 30-day observation window: 9 days of observed history at the previous scan, 10 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-10-28 (score 66, +1)

No change was recorded against any check on this day. Stability & Change Management went from 23 to 27. That category is still filling its 30-day observation window: 7 days of observed history at the previous scan, 8 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-10-26 (score 65, +1)

No change was recorded against any check on this day. Stability & Change Management went from 17 to 20. That category is still filling its 30-day observation window: 5 days of observed history at the previous scan, 6 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-10-25 (score 64, +2)

- [functional improvement] Stability: unverified → 0.17

### 2026-10-21 (score 62, +15)

- [security improvement] Malware scan: unverified → pass

### 2026-10-20 (score 47)

First indexed and scored.

## MCP tools (4)

### `customs_check` (~312 tokens)

Check a declaration ledger for internal inconsistency

Run the customs declaration rule pack over a declaration ledger and return the findings as a Markdown report. The input is a JSON or YAML table: one row per document line, with columns such as 品名 (description), 商品编号 (HS code), 币制 (currency), 毛重/净重 (gross/net weight), 申报日期 (declaration date) and 总价 (total value). Call customs_schema for the exact field names and their aliases. The report lists only literal differences from the declared checks — an HS code that is not ten digits, a currency that is not a 3-letter code, gross weight below net weight, a duplicated document number, a date that does not parse or is in the future, an unfilled placeholder. Each finding carries the clause it rests on, or states that the clause text was not obtained. It does NOT decide whether a declaration is correct, whether goods are misclassified, or whether duty is owed. It performs no writes and needs no credentials. Read the "未执行的检查" (checks not executed) section at the end: it names every rule that did not run and why, and a report is only as complete as that list allows.

Input parameters:

- `material` (string, required): The ledger as JSON or YAML text. Either an object with a `rows` array, or a bare array of row objects.
- `onlyRules` (array): Run only these rule ids, e.g. ["CD-002"]. Omit to run the whole pack.

### `customs_read_docx` (~220 tokens)

Extract readable text from a .docx

Extract text from a .docx file so it can be turned into a ledger for customs_check. Paragraphs come out one per line; table rows come out as "| a | b | c |" lines. Merged cells are marked "↔", meaning "this cell is merged with the one to its left and holds no value of its own" — do not read it as a missing value. A vertically merged cell repeats the value above it, which is what a reader of the document sees. Reads exactly the one path given, opens it read-only, and refuses anything larger than 20 MB. No other file is touched, no network is used, nothing is written. Only a path ending in .docx is accepted: legacy .doc/.wps are a different binary format and PDF is not parsed on purpose — a PDF table loses its cell structure, and guessing it produces a ledger that is wrong in ways the check cannot detect.

Input parameters:

- `path` (string, required): Absolute or working-directory-relative path to the .docx file.

### `customs_schema` (~88 tokens)

Show the ledger column contract

Return the column contract for customs_check: the accepted field names, every alias each field answers to (for example 品名 / goodsName, 币制 / currency), and the header-level fields. Call this first when assembling a ledger, because a column name the reader does not recognise is silently dropped and the corresponding rule then reports nothing. Read-only, no parameters, no network, no writes.

### `customs_rulebook` (~134 tokens)

List the rules and how many can quote their source

Return every rule in the pack: id, title, severity, the basis kind (direct clause / derived from principle / local configuration), the document and clause it cites, and whether the pack actually holds the verbatim clause text. The `coverage` object states how many rules carry a verbatim clause and how many record that the clause was not obtained, so a reader can weigh the report instead of trusting it. This is the answer to "how much of this is actually backed by a quoted regulation" — the number is computed from the pack, not asserted. Read-only, no parameters, no network, no writes.

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/perrylink-dsh-customs/dsh-customs-mcp#diagnostics

## Score history

- 2026-11-05: 69
- 2026-11-04: 69
- 2026-11-03: 69
- 2026-11-02: 68
- 2026-11-01: 68
- 2026-10-31: 67
- 2026-10-30: 67
- 2026-10-29: 66
- 2026-10-28: 66
- 2026-10-27: 65
- 2026-10-26: 65
- 2026-10-25: 64
- 2026-10-24: 62
- 2026-10-23: 62
- 2026-10-22: 62
- 2026-10-21: 62
- 2026-10-20: 47

## Common questions

### What is the Customs Declaration Consistency MCP server?

Customs Declaration Consistency is an MCP server listed in the public MCP registry as io.github.PerryLink/dsh-customs. Read-only MCP server that checks a Chinese customs declaration ledger for internal inconsistency. This page covers its npm package (dsh-customs-mcp).

### Is the Customs Declaration Consistency MCP server safe to use?

Customs Declaration Consistency scores 69 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 5 November 2026. It declares no install or post-install scripts. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

### What tools does the Customs Declaration Consistency MCP server expose?

Customs Declaration Consistency exposes 4 tools: customs_check, customs_read_docx, customs_schema, customs_rulebook. Their descriptions and schemas cost roughly 754 tokens of context every time the server is loaded.

### Is the Customs Declaration Consistency MCP server still maintained?

Customs Declaration Consistency is still listed as active in the MCP registry. We last reached this channel on 5 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

### What licence is the Customs Declaration Consistency MCP server under?

Customs Declaration Consistency declares the Apache-2.0 licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.

### What did VerifyMCP test on the Customs Declaration Consistency MCP server?

VerifyMCP ran 16 checks on Customs Declaration Consistency, covering Malware scan, Known CVEs, Install scripts, Dependency health and 12 more. Endpoint Security and Transport & Reachability do not apply to an npm package, so they were not tested. The score does not measure everything, and the scoring documentation lists what it leaves out.

## Links

- npm package: https://www.npmjs.com/package/dsh-customs-mcp
- Socket report: https://socket.dev/npm/package/dsh-customs-mcp
- Changelog RSS feed: https://verifymcp.io/servers/perrylink-dsh-customs/dsh-customs-mcp.xml
- Changelog JSON feed: https://verifymcp.io/servers/perrylink-dsh-customs/dsh-customs-mcp/changelog.json
- Trust report (JSON): https://verifymcp.io/servers/perrylink-dsh-customs/dsh-customs-mcp.json
- HTML version of this page: https://verifymcp.io/servers/perrylink-dsh-customs/dsh-customs-mcp
