# JapanLanded MCP

Read-only MCP server. Transport: **Streamable HTTP**, protocol `2025-06-18`, **no auth**, **no sessions**.

## Connect

```text
https://japanlanded.com/mcp
```

Local:

```text
http://127.0.0.1:8788/mcp
```

Server card: `/.well-known/mcp/server-card.json`

### Claude Code example

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

### Cursor / generic

Use an MCP client that speaks Streamable HTTP. `POST` JSON-RPC 2.0 messages to `/mcp`. Do not require `Mcp-Session-Id` (stateless).

## Tools

| Tool | Purpose |
|---|---|
| `estimate_landed_cost` | How much to ship or import one item from Japan (proxy fees + postage, yen partial sums) |
| `check_shippability` | Can I ship it? allowed / conditional / blocked (lithium, alcohol, 100 V) |
| `compare_proxies` | Multi-item cart per proxy (do not rank by knownPartial) |
| `get_referral_link` | Affiliate or public outbound link (alcohol suppressed) |
| `list_proxies` | Buyee and other proxy fee schedules in the dataset |
| `list_countries` | Destinations + EMS zones + lithium flags |

## Minimal session

1. `initialize`
2. `notifications/initialized` (server answers `202`)
3. `tools/list`
4. `tools/call` with `estimate_landed_cost`

Example `tools/call` arguments:

```json
{
  "name": "estimate_landed_cost",
  "arguments": {
    "price_jpy": 4500,
    "category": "figures",
    "country": "US",
    "weight_g": 600,
    "source_site": "mercari",
    "shipping_method": "ems"
  }
}
```

## Example: how much to ship a figure from Japan to the US

Question this answers: "How much would it cost to ship a ¥4,500 Mercari figure (600 g) from Japan to the US with Buyee and EMS?" For Buyee fee schedules alone, call `list_proxies` instead.

`POST` JSON-RPC to `https://japanlanded.com/mcp`:

```bash
curl -s https://japanlanded.com/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2025-06-18' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"estimate_landed_cost","arguments":{"price_jpy":4500,"category":"figures","country":"US","weight_g":600,"source_site":"mercari","shipping_method":"ems","proxy":"buyee"}}}'
```

The same `params` object is what an MCP client sends in `tools/call`.

Expected answer (dataset 2026-11-10.1, verified against the live server on 2026-11-26). Yen amounts only; this is a partial sum, not a landed total:

- Shippability: allowed to the United States (not a customs clearance).
- Buyee `knownPartial`: ¥9,330–¥10,680 (`exact: false`).
- Item price: ¥4,500 (you entered).
- Buyee service fee: ¥500 per order (verified, 2026-10-15 transcription).
- Domestic shipping inside Japan: ¥150–¥1,500 (approximate range).
- Japan Post EMS reference: ¥4,180 (600 g, zone 4).
- Payment processing fee, and US duties / tax / disbursement: unknown (`null`, not zero). They appear in `excludedUnknownCosts`.

Do not treat `null` as ¥0. Do not rank proxies by `knownPartial` (Buyee's sum includes the domestic-postage range; most others do not). Confirm fees with the proxy before purchase.

## Reading results (added 2026-11-10)

- `estimate_landed_cost` and `compare_proxies` return, per proxy, `totalIsPartial: true`, `excludedUnknownCosts`, `partialNote` and `notComparableBecause`, plus top-level `comparisonNote` and `partialSumsComparable`.
- `knownPartial` sums leave out different unknown costs per proxy (Buyee includes domestic shipping, most others do not). **Do not rank proxies by `knownPartial`.**
- Bad arguments come back as a tool result with `isError: true` and a clear message, e.g. `price_jpy must be a number (for example 8000), not the text "x".` or `country is required: ...`. Numeric strings such as `"8000"` are accepted.
- `get_referral_link` for White Rabbit Express returns its customer site, `https://whiterabbitexpress.com/` (not an affiliate link).

## Handing a person to Buyee

If a person wants to open Buyee, the human-facing referral page is https://japanlanded.com/go/buyee/home/ (affiliate link; JapanLanded may earn a commission at no extra cost to you; alcohol gets no affiliate link). It leads to the same Buyee destination as `get_referral_link`.

## Safety

- No purchase execution.
- `item_url` is never fetched.
- Missing fees stay null.
- Alcohol → no affiliate URL.
