Metadata-Version: 2.4
Name: rulinglens-mcp
Version: 0.1.0
Summary: RulingLens as an MCP server: the HS code with the CBP rulings behind it, for Claude, Cursor and any MCP client
License-Expression: MIT
Project-URL: Homepage, https://rulinglens.com
Project-URL: Source, https://github.com/kforkarim/RulingLens
Keywords: mcp,hs code,tariff,customs,classification
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Office/Business
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# rulinglens-mcp

RulingLens as an MCP server. Three tools over the RulingLens API, standard library only:

- `classify_product` — name and description → the six-digit HS subheading, the three most
  similar earlier CBP rulings and whether they carry the same code, and the eight-digit U.S.
  lines for a broker's review.
- `audit_entries` — a CSV, Excel or CBP 7501 PDF → every line re-classified and sorted,
  disagreements first.
- `usage` — the plan and what is left this period.

Needs an API key from a RulingLens account (Starter plan or above): Account → API keys.

```
pip install rulinglens-mcp        # or run without installing: uvx rulinglens-mcp
```

Claude Desktop (`claude_desktop_config.json`) or Cursor (`.cursor/mcp.json`):

```json
{ "mcpServers": { "rulinglens": { "command": "rulinglens-mcp", "env": { "RULINGLENS_API_KEY": "rl_live_..." } } } }
```

Claude Code: `claude mcp add rulinglens -e RULINGLENS_API_KEY=rl_live_... -- rulinglens-mcp`

Nothing here names a code to file: six digits are measured, the line is for review, and
the ten-digit suffix is the broker's. Source and the measurement record:
https://github.com/kforkarim/RulingLens
