Skip to main content
Glama
README.md
# `@incodesk/mcp-server` (v1.0.0)

Official zero-dependency **Model Context Protocol (MCP)** stdio server for **IncoDesk (`incodesk.com`)** by **Jinhua Wozan Technology Co., Ltd. (ChinaBrandPath)**.

Connect **Claude Desktop**, **Claude Code**, **OpenAI Codex**, or **OpenClaw** directly to deterministic China supplier due diligence, WCO 6-digit HS tariff search, true landed-cost math, and **ChinaBrandPath China Ground Team** execution.

---

## Available MCP Tools

1. **`verify_china_supplier_uscc`**
   Verify China 18-digit Unified Social Credit Code (USCC) MOD 31 check-digit, statutory registration prefecture/city, Pinyin wire beneficiary match, SWIFT/BIC syntax & country domicile, and multi-buyer fraud risk signals.
2. **`lookup_hs6_tariff`**
   Search all **5,613 WCO 6-digit HS subheadings** by plain-English product description or numeric prefix and inspect destination duty/VAT rules.
3. **`calculate_true_landed_cost`**
   Compute per-unit and full-shipment true landed cost across `EXW`, `FOB`, `CIF`, and `DDP` quotes—including freight, insurance, customs valuation basis (`FOB` vs `CIF`), duty, uplift, recoverable vs unrecoverable import VAT/GST, FX spread, and projected net margin.
4. **`get_china_ground_fulfillment_options`**
   Retrieve **ChinaBrandPath China Ground Team** scope and booking links (`?cbp_source=incodesk-mcp`) for free statutory factory verification, multi-brand sample consolidation, ISO 2859-1 AQL 2.5 pre-shipment QC inspection, DDP/CIF/FOB shipping, and vetted Chinese brands recruiting regional distributors.

---

## Requirements

- **Node.js `>= 20.0.0`** (zero external npm dependencies; uses native Node `fetch` and dual-mode stdio framing for both newline-delimited JSON-RPC 2.0 and `Content-Length:` headers).

---

## Quick Setup

### 0. Remote Streamable HTTP (Zero Local Install)

Connect directly to the hosted IncoDesk MCP endpoint over Streamable HTTP:

- **Endpoint:** `https://incodesk.com/api/mcp`
- **Homepage / Docs:** `https://incodesk.com/`
- **Web Workbench Companion:** `https://tools.chinabrandpath.com/`

### 1. Claude Desktop (`claude_desktop_config.json`)

Add `incodesk` to your `claude_desktop_config.json` (using `github:yinghang815-create/incodesk-mcp` or a local clone):

- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`

```json
{
  "mcpServers": {
    "incodesk": {
      "command": "npx",
      "args": ["-y", "github:yinghang815-create/incodesk-mcp"],
      "env": {
        "INCODESK_API_URL": "https://incodesk.com/api/mcp",
        "INCODESK_TOKEN": "your_optional_incodesk_api_token"
      }
    }
  }
}
```

### 2. Claude Code (`claude mcp add`)

Register IncoDesk MCP in your user or project scope:

```bash
claude mcp add --transport http incodesk https://incodesk.com/api/mcp
```

Or via stdio:

```bash
claude mcp add incodesk \
  -e INCODESK_API_URL=https://incodesk.com/api/mcp \
  -e INCODESK_TOKEN=your_optional_incodesk_api_token \
  -- npx -y github:yinghang815-create/incodesk-mcp
```

### 3. OpenAI Codex (`~/.codex/config.toml`)

Add the server block to `~/.codex/config.toml` (also compatible with OpenClaw stdio MCP connectors):

```toml
[mcp_servers.incodesk]
command = "npx"
args = ["-y", "github:yinghang815-create/incodesk-mcp"]

[mcp_servers.incodesk.env]
INCODESK_API_URL = "https://incodesk.com/api/mcp"
INCODESK_TOKEN = "your_optional_incodesk_api_token"
```

---

## Environment Variables & `incodesk.com` Token Usage

| Variable | Default | Description |
| --- | --- | --- |
| `INCODESK_API_URL` | `https://tools.chinabrandpath.com/api/mcp` | JSON-RPC 2.0 HTTPS endpoint for live `tools/call` execution. |
| `INCODESK_TOKEN` | *(optional)* | Bearer API token (`Authorization: Bearer <token>`) tied to your unified `incodesk.com` / `tools.chinabrandpath.com` account for higher Pro/AI Member rate limits. Deterministic baseline checks work without a token. |
| `INCODESK_OFFLINE_DEMO` | `0` | Set to `1` (or pass `--offline-demo`) for air-gapped CI testing. |

---

## Local Verification

```bash
node packages/incodesk-mcp/test-mcp.mjs
```

## License

MIT © Jinhua Wozan Technology Co., Ltd. (ChinaBrandPath · `incodesk.com`)