Metadata-Version: 2.5
Name: findgoods-mcp-server
Version: 0.4.0
Summary: MCP Server for Japanese anime merchandise wholesale — powered by GoodsMart
Project-URL: Homepage, https://findgoods.ai
Project-URL: Repository, https://github.com/findgoods-ai/findgoods-mcp-server
License: MIT
Keywords: anime,b2b,japan,mcp,wholesale
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Requires-Dist: click>=8.1.0
Requires-Dist: fastmcp<4,>=3.1
Requires-Dist: httpx>=0.27.0
Requires-Dist: pydantic-settings>=2.0.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: python-dotenv>=1.0.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.24.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Description-Content-Type: text/markdown

# FindGoods MCP Server

MCP Server for Japanese anime merchandise wholesale, powered by [GoodsMart](https://findgoods.ai).

Exposes 59 tools for the GoodsMart Shop API — search products, manage the cart, place orders, request and track shipments (with overseas shipping estimates), pay with GM Pay, get business documents (invoices, receipts, delivery notes), and manage the account. A few web-only features (articles, newsletter, product feed subscriptions, order cancellation requests — use an inquiry instead) are not exposed as tools.

## Installation

```bash
pip install findgoods-mcp-server
```

## Usage

### As MCP Server (for AI clients like Claude Desktop)

Add to your MCP client config:

```json
{
  "mcpServers": {
    "findgoods": {
      "command": "python",
      "args": ["-m", "findgoods_mcp"],
      "env": {
        "WHOLESALE_SHOP_API_URL": "https://api.wholesale.goodsmart.jp"
      }
    }
  }
}
```

### As CLI (token-efficient, for AI agents like Claude Code)

```bash
findgoods login --email user@example.com --password xxx
findgoods search-products --keyword "フィギュア"
findgoods add-to-cart --goods-id "xxx" --quantity 6
# after the user confirmed the items, payment method and total (お支払い合計)
findgoods create-order --payment-method bank --expected-total-jpy 11000
findgoods --help
```

## Configuration

The API endpoint defaults to the official API. To change it, set an environment variable:

```
WHOLESALE_SHOP_API_URL=https://api.wholesale.goodsmart.jp
```

- MCP server mode over stdio (`python -m findgoods_mcp`) also reads `~/.findgoods/config.env`, or only the file given with `--env-file`; it does not read a `.env` in the working directory.
- MCP server mode over HTTP (`--transport streamable-http` / `sse`) also reads a `.env` file in the working directory, or only the file given with `--env-file`.
- CLI mode (`findgoods ...`) also reads `~/.findgoods/config.env`; it does not read a `.env` in the current directory.
- An endpoint other than the official API or localhost prints a warning to stderr, since logins and tokens are sent there.
- Unrelated keys in these files are ignored.

## Shipping

Ships worldwide via international express courier (except sanctioned destinations: North Korea, Iran, Syria, Cuba, Russia, Belarus); import duties are paid by the recipient. Adult items and items restricted by air-transport or import/export rules cannot be shipped outside Japan; overseas shipments can add optional declared-value coverage (declared value = goods amount).

## License

MIT
