# AI assistants (MCP)

Connect an AI assistant to your Fulfillbot account. Our MCP server gives assistants such as ChatGPT, Claude, Claude Code, Cursor and VS Code a tool for every API endpoint, so you can check stock, place orders and follow shipments by asking in plain words.

## How it works

- The server address is `https://api.fulfillbot.com/mcp`. It uses MCP over Streamable HTTP.
- Anyone can try the public tools without an account. ChatGPT and Claude ask you to sign in, or create a free Fulfillbot account, the first time you use an account tool. Developer tools such as Claude Code, Cursor and VS Code use an API key, the same way as the API: `Authorization: Bearer <key>`. See [Authentication](https://docs.fulfillbot.com/developers/authentication).
- Accounts that turn on API access by connecting an AI app get basic access: the assistant can view your data and submit sourcing and reorder requests. To let it place orders, request full API access in **Settings → API access**.
- The assistant only gets the tools that its permissions allow. **Read only** and **Read and submit requests** are the safe choices. Choose **Read and create orders** only if you want the assistant to place orders that charge your wallet.
- Every tool call goes through the API, with the same permissions, rate limits, idempotency and charges. See [Charges and your wallet](https://docs.fulfillbot.com/developers/charges).

## Try it without an account

These tools work before you sign in:

- `get_fulfillbot_overview`: what Fulfillbot does, how pricing works and how to get started.
- `estimate_shipping_options`: the shipping channels and delivery times for a destination, weight and type of goods. Prices are shown after you sign up.

When you ask for a quote, the assistant asks you to sign in or create a free account, then sends your sourcing request.

## Connect ChatGPT or Claude

1. In ChatGPT or Claude, add a custom connector and enter `https://api.fulfillbot.com/mcp` as the server address.
2. When the app asks, sign in to your Fulfillbot account, or create one.
3. Choose what the app can do. The page preselects the access the app asks for: **Read only** by default, or **Read and submit requests** when it wants to send a sourcing request. Choose **Read and create orders** only if you want the app to place orders that charge your wallet. If your account turned on API access by connecting an AI app, it has basic access, so that choice needs full API access first. You can also pick **Custom**.
4. Select **Allow**. You go back to the app and its tools are ready.

In ChatGPT, placing and changing orders and confirming shipment quotes aren't available; do these in the portal.

The app's sign-in lasts 60 minutes and renews itself. If the app isn't used for 90 days, connect it again. You can connect up to 20 apps.

Your apps are listed under **Connected AI apps** in **Settings → API access**. Select **Disconnect** to remove an app's access at once. To change what an app can do, disconnect it and connect it again.

## Claude Code plugin

The Fulfillbot plugin for Claude Code adds the skill and connects the MCP server in one step. You sign in with your Fulfillbot account, so you don't need an API key.

```
/plugin marketplace add fulfillbot/product-sourcing-fulfillment
/plugin install fulfillbot@fulfillbot
```

Then run `/mcp`, choose the **fulfillbot** server and sign in. To get updates, run `/plugin marketplace update fulfillbot`. The plugin and the skill are on [GitHub](https://github.com/fulfillbot/product-sourcing-fulfillment).

## Connect a developer tool

Replace `YOUR_API_KEY` with your key. When you create a key in **Settings → API access**, the portal shows the Claude Code command with your key filled in.

### Claude Code

Run in a terminal:

```bash
claude mcp add --transport http fulfillbot https://api.fulfillbot.com/mcp --header "Authorization: Bearer YOUR_API_KEY"
```

### Cursor

Add to ~/.cursor/mcp.json:

```json
{
  "mcpServers": {
    "fulfillbot": {
      "url": "https://api.fulfillbot.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
```

### VS Code

Add to .vscode/mcp.json in your project:

```json
{
  "servers": {
    "fulfillbot": {
      "type": "http",
      "url": "https://api.fulfillbot.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
```

## Tools

| Tool | Endpoint | Permission | Changes data |
|---|---|---|---|
| `get_me` | [`GET /v1/me`](https://docs.fulfillbot.com/developers/reference/account#get-the-customer-and-api-key-for-this-request) | Any valid key | No |
| `get_wallet` | [`GET /v1/wallet`](https://docs.fulfillbot.com/developers/reference/wallet#get-the-wallet-balance) | `wallet:read` | No |
| `list_wallet_ledger` | [`GET /v1/wallet/ledger`](https://docs.fulfillbot.com/developers/reference/wallet#list-wallet-transactions) | `wallet:read` | No |
| `list_wallet_top_ups` | [`GET /v1/wallet/top-ups`](https://docs.fulfillbot.com/developers/reference/wallet#list-top-ups) | `wallet:read` | No |
| `list_products` | [`GET /v1/products`](https://docs.fulfillbot.com/developers/reference/products#list-your-products) | `catalog:read` | No |
| `get_product` | [`GET /v1/products/{id}`](https://docs.fulfillbot.com/developers/reference/products#get-one-of-your-products) | `catalog:read` | No |
| `create_sku_mapping` | [`POST /v1/sku-mappings`](https://docs.fulfillbot.com/developers/reference/sku-mappings#map-your-sku-to-one-of-your-products) | `catalog:write` | Yes |
| `list_inventory` | [`GET /v1/inventory`](https://docs.fulfillbot.com/developers/reference/inventory#list-your-stock) | `catalog:read` | No |
| `list_orders` | [`GET /v1/orders`](https://docs.fulfillbot.com/developers/reference/orders#list-orders) | `orders:read` | No |
| `get_order` | [`GET /v1/orders/{id}`](https://docs.fulfillbot.com/developers/reference/orders#get-an-order) | `orders:read` | No |
| `preview_order` | [`POST /v1/orders/preview`](https://docs.fulfillbot.com/developers/reference/orders#check-a-new-order-without-saving-it) | `orders:read` | No |
| `create_order` | [`POST /v1/orders`](https://docs.fulfillbot.com/developers/reference/orders#create-an-order) | `orders:write` | Yes |
| `update_order` | [`PATCH /v1/orders/{id}`](https://docs.fulfillbot.com/developers/reference/orders#change-an-order-that-needs-attention) | `orders:write` | Yes |
| `cancel_order` | [`POST /v1/orders/{id}/cancel`](https://docs.fulfillbot.com/developers/reference/orders#cancel-an-order-that-needs-attention) | `orders:write` | Yes |
| `list_purchase_orders` | [`GET /v1/purchase-orders`](https://docs.fulfillbot.com/developers/reference/purchase-orders#list-purchase-orders) | `purchase_orders:read` | No |
| `get_purchase_order` | [`GET /v1/purchase-orders/{id}`](https://docs.fulfillbot.com/developers/reference/purchase-orders#get-a-purchase-order) | `purchase_orders:read` | No |
| `list_shipments` | [`GET /v1/shipments`](https://docs.fulfillbot.com/developers/reference/shipments#list-shipments) | `shipments:read` | No |
| `get_shipment` | [`GET /v1/shipments/{id}`](https://docs.fulfillbot.com/developers/reference/shipments#get-a-shipment) | `shipments:read` | No |
| `estimate_shipment` | [`POST /v1/shipments/estimate`](https://docs.fulfillbot.com/developers/reference/shipments#estimate-shipping-for-a-shipment-from-your-stock) | `shipments:read` | No |
| `create_shipment` | [`POST /v1/shipments`](https://docs.fulfillbot.com/developers/reference/shipments#request-a-shipment-from-your-stock) | `shipments:write` | Yes |
| `cancel_shipment` | [`POST /v1/shipments/{id}/cancel`](https://docs.fulfillbot.com/developers/reference/shipments#cancel-a-shipment-you-requested) | `shipments:write` | Yes |
| `confirm_shipment` | [`POST /v1/shipments/{id}/confirm`](https://docs.fulfillbot.com/developers/reference/shipments#confirm-a-shipment-s-freight-quote) | `shipments:write` | Yes |
| `list_requests` | [`GET /v1/requests`](https://docs.fulfillbot.com/developers/reference/requests#list-sourcing-and-reorder-requests) | `requests:read` | No |
| `get_request` | [`GET /v1/requests/{id}`](https://docs.fulfillbot.com/developers/reference/requests#get-a-sourcing-or-reorder-request) | `requests:read` | No |
| `create_sourcing_request` | [`POST /v1/requests/sourcing`](https://docs.fulfillbot.com/developers/reference/requests#ask-us-to-source-new-products) | `requests:write` | Yes |
| `create_reorder_request` | [`POST /v1/requests/reorder`](https://docs.fulfillbot.com/developers/reference/requests#ask-us-to-restock-products-at-your-agreed-prices) | `requests:write` | Yes |
| `list_quotes` | [`GET /v1/quotes`](https://docs.fulfillbot.com/developers/reference/quotes#list-quotes) | `quotes:read` | No |
| `get_quote` | [`GET /v1/quotes/{id}`](https://docs.fulfillbot.com/developers/reference/quotes#get-a-quote) | `quotes:read` | No |

## Placing orders

The assistant must check an order before it creates it:

1. `preview_order` checks the order and returns the shipping option, the estimated shipping, the fees, any problems and a `previewToken`.
2. The assistant shows you the result and asks you to confirm.
3. `create_order` creates exactly that order. It needs the `previewToken`. If the order or its prices changed since the preview, it returns `preview_changed` and the assistant has to preview again.

Write tools take an `idempotencyKey` argument. The assistant makes up a new value for each new action and reuses it only when it retries the same action, so a retry never creates an order twice. See [Idempotency](https://docs.fulfillbot.com/developers/idempotency).

## Errors

A failed tool call returns a message that starts with the error code, for example `order_not_editable: …`, followed by the details. The codes are the same as the API's. See [Errors](https://docs.fulfillbot.com/developers/errors).

## Rate limits

Each tool call counts as one API request against your limits. Other MCP messages, such as connecting and listing tools, count as one read each. `create_order` also counts one read for its check. See [Rate limits](https://docs.fulfillbot.com/developers/rate-limits).

## The Fulfillbot skill

A skill teaches the assistant our rules and the usual tasks: previewing before ordering, idempotency keys, which actions charge your wallet, and how to handle errors.

- Claude and Claude Desktop: [download the skill](/skills/fulfillbot-sourcing-fulfillment.zip) and upload the zip as a custom skill in Claude's settings.
- Claude Code: install the plugin above, or save the skill to your skills folder.
- Other assistants: copy the skill from [GitHub](https://github.com/fulfillbot/product-sourcing-fulfillment).

```bash
mkdir -p ~/.claude/skills/fulfillbot-sourcing-fulfillment
curl -fsSL https://docs.fulfillbot.com/skills/fulfillbot-sourcing-fulfillment/SKILL.md -o ~/.claude/skills/fulfillbot-sourcing-fulfillment/SKILL.md
```

## Find us in MCP directories

The Fulfillbot MCP server is listed in these directories, where you can read about it and connect it:

- [Official MCP Registry](https://registry.modelcontextprotocol.io/v0.1/servers?search=com.fulfillbot/sourcing-fulfillment) (`com.fulfillbot/sourcing-fulfillment`)
- [Glama](https://glama.ai/mcp/connectors/com.fulfillbot/sourcing-fulfillment), with a tool quality score and a browser test
- [mcp.so](https://mcp.so/servers/fulfillbot-china-sourcing-dropshipping-38990b)
