Metadata-Version: 2.4
Name: rulinglens-mcp
Version: 0.1.4
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, with dollars, PSC and protest deadlines, and a private report link.
  Add the ACE ES-003 report (`ace_path`) to fill in entry and liquidation dates and values.
- `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
which rulinglens-mcp              # Windows: where rulinglens-mcp
```

Use the **full path** that `which` prints as the command: desktop apps do not search the same
folders as your terminal, so a bare `rulinglens-mcp` can fail with "server not found".

Claude Desktop (Settings → Developer → Edit Config) or Cursor (`.cursor/mcp.json`):

```json
{ "mcpServers": { "rulinglens": { "command": "/full/path/from/which/rulinglens-mcp", "env": { "RULINGLENS_API_KEY": "rl_live_..." } } } }
```

If the file already has an `mcpServers` section, add only the `rulinglens` entry, then quit the
app completely and reopen it. With `uv`: command = the full path of `uvx`, `"args": ["rulinglens-mcp"]`.

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
