Trade Compliance MCP — the two questions an importer asks that the tariff
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
claude mcp add mcp-trade-compliance -- npx -y @pipeworx/mcp-trade-compliance{
"mcpServers": {
"mcp-trade-compliance": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-trade-compliance"]
}
}
}MCP Servers overview
# @pipeworx/trade-compliance
US import compliance — CBP customs ruling letters (CROSS) and antidumping / countervailing duty (AD/CVD) orders. Keyless, no auth.
Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 1576+ live data sources.
Answers the two questions the tariff schedule alone cannot: *how has Customs classified this product before* and *is there a trade-remedy duty on it from this country*.
## Tools
- `cross_search(query, hts?, since?, limit?)` — search CBP CROSS ruling letters for tariff classification precedent. Returns ruling number, date, subject, assigned HTS numbers, and whether the ruling was later modified or revoked.
- `cross_ruling(ruling_number, max_chars?)` — one ruling letter in full: the facts, CBP's analysis, and the holding.
- `adcvd_orders(product?, country?, hts?, limit?)` — AD/CVD orders by product and/or country, grouped per product-country pair with current status and case numbers.
- `adcvd_case(case_number | document_number)` — every Federal Register notice on file for one AD/CVD case.
## Auth
None. Both upstreams are public US government endpoints with no key and no registration.
## Two things that will bite you
**AD/CVD scope is set by scope language, not by HTS code.** The HTS numbers in an AD/CVD notice are advisory cross-references. Merchandise can be *in* scope under an HTS code that looks unrelated, or *out* of scope under one that looks like a match. Never conclude "not covered" because an HTS code is absent — read the scope language in the linked notice. Every `adcvd_orders` response carries this as `scope_note`.
**`adcvd_orders` reports recent order activity, not a census.** It searches the 100 most recent matching Federal Register notices, newest first. China has hundreds of AD/CVD orders in place; a country-only query returns the handful with recent order, continuation, or revocation notices. Treat an absence as *"no recent notice found"*, not *"no order exists"*. Every response carries this as `coverage_note`.
### Status values
`adcvd_orders` resolves a status per product-country pair:
| status | meaning |
|---|---|
| `in_place` | latest action was an order, continuation, or amendment |
| `in_place_revoked_in_part` | Commerce revoked the order for named companies or a carved-out subset — **still in force for everyone else** |
| `revoked` | order revoked in full |
The partial case is the common one and the dangerous one to flatten: reporting it as `revoked` would tell an importer a duty is gone when it still applies to them.
## Notes on the upstreams
- **CROSS returns HTTP 500 for a ruling number that does not exist**, not a 404, and serves its SPA's `index.html` with a 200 for any unknown path. `cross_ruling` therefore probes with a second search call to tell "no such ruling" (`reason: ruling_not_found`) from a genuine outage (`reason: upstream_error`), and every response is JSON-parsed rather than trusted by status.
- **CROSS search rows carry `tariffs`/`categories`; the detail endpoint returns them null.** `cross_ruling` merges the search row so tariff numbers are present either way.
- **AD/CVD case numbers come from the Federal Register list endpoint's `docket_ids`** — no per-document fetch needed. Elements are sometimes one code and sometimes several comma-joined in a single string, so codes are regexed out of the joined array rather than trusted per element.
- **Federal Register full-text search is noisy**: a query mentioning China returns notices about Japan. Product and country are parsed out of the notice *title* and filtered on the parsed values, never on the query terms.
- **Order type comes from case-number prefixes** (`A-` antidumping, `C-` countervailing), not title text — titles share "Duty" across a conjunction ("Antidumping and Countervailing Duty Orders"), which defeats naive phrase matching.
## Related packs
- `hts` — the duty *rates* themselves (MFN, FTA preferential, Section 301/232 add-ons).
- `sanctions-screening` — restricted-party and forced-labor screening, including the DHS UFLPA Entity List.
- `census-trade`, `comtrade` — trade *flows*.
## Data sources
- CBP CROSS: `https://rulings.cbp.gov/api/search`, `https://rulings.cbp.gov/api/ruling/<number>`
- Federal Register (International Trade Administration notices): `https://www.federalregister.gov/api/v1/documents.json`
## Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
```json
{
"mcpServers": {
"trade-compliance": {
"url": "https://gateway.pipeworx.io/trade-compliance/mcp"
}
}
}
```
### What this endpoint actually serves
`tools/list` at `https://gateway.pipeworx.io/trade-compliance/mcp` returns the tools in the table
above **plus the shared Pipeworx meta-tools** — `ask_pipeworx`,
`discover_tools`, `search_within`, `remember`/`recall` and the rest of the
gateway-wide set. So the tool count you see is larger than this table: a
single-pack endpoint currently lists roughly 30 shared tools alongside the
pack's own. The connection's `initialize` response states its exact scope, and
is the authoritative answer for a given day.
This is deliberate, not multiplexing by accident. The meta-tools are what let a
scoped connection answer a question this pack does not cover — via
`ask_pipeworx`, which routes across the whole catalog — without you adding a
second MCP server. There is currently no way to mount a pack endpoint without
them; if the extra schemas cost you more context than the routing is worth,
connect to the full gateway once rather than to several pack endpoints.
Or connect to the full Pipeworx gateway to get every pack's tools listed
directly, instead of just this one's:
```json
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
```
Both URLs reach the same gateway and the same 1576+ data sources. The
only difference is which pack's tools are listed **directly**; `ask_pipeworx`
reaches all of them from either one.
## Standalone (no gateway account)
This package also runs as a local stdio MCP server — no Pipeworx account, no
gateway round-trip:
```json
{
"mcpServers": {
"trade-compliance": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-trade-compliance"]
}
}
}
```
Or run it directly to confirm it starts:
```bash
npx -y @pipeworx/mcp-trade-compliance
```
It speaks MCP over stdin/stdout and answers `initialize`/`tools/list`/`tools/call`
for **only** this pack's tools — none of the shared meta-tools the gateway
connection above adds. Same source, same tools, no ask_pipeworx routing.
## Using with ask_pipeworx
Instead of calling tools directly, you can ask questions in plain English —
this works on the pack endpoint above as well as on the full gateway:
```
ask_pipeworx({ question: "your question about Trade Compliance data" })
```
The gateway picks the right tool and fills the arguments automatically.
## More
- [Docs and guides](https://pipeworx.io/docs)
- [pipeworx.io](https://pipeworx.io)
## License
MIT
What people ask about mcp-trade-compliance
What is pipeworx-io/mcp-trade-compliance?
+
pipeworx-io/mcp-trade-compliance is mcp servers for the Claude AI ecosystem. Trade Compliance MCP — the two questions an importer asks that the tariff It has 0 GitHub stars and its last recorded update is dated 2026-09-16.
How do I install mcp-trade-compliance?
+
You can install mcp-trade-compliance by cloning the repository (https://github.com/pipeworx-io/mcp-trade-compliance) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is pipeworx-io/mcp-trade-compliance safe to use?
+
Our security agent has analyzed pipeworx-io/mcp-trade-compliance and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains pipeworx-io/mcp-trade-compliance?
+
pipeworx-io/mcp-trade-compliance is maintained by pipeworx-io. The last recorded GitHub activity is dated 2026-09-16, with 0 open issues.
Are there alternatives to mcp-trade-compliance?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy mcp-trade-compliance to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/pipeworx-io-mcp-trade-compliance)<a href="https://claudewave.com/repo/pipeworx-io-mcp-trade-compliance"><img src="https://claudewave.com/api/badge/pipeworx-io-mcp-trade-compliance" alt="Featured on ClaudeWave: pipeworx-io/mcp-trade-compliance" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ
The fastest path to AI-powered full stack observability, even for lean teams.