Crossly MCP server
Latest: v1.0.0
Initial release
Use the Crossly MCP server
@crossly/mcp (0.3.0) is a stdio MCP server with one tool per seller API endpoint, about 2,900 tools. The token's scopes decide what the agent can do; scopes are enforced by the API, not by the server. Shoppers' apps use the separate @crossly/buyer-mcp.
Setup
- Create a free Crossly account: https://crossly.net/register
- Create a personal access token at https://crossly.net/settings/api/tokens/new (guide: https://crossly.net/guides/personal-access-tokens). Use a
crossly_pat_test_token against the sandbox while building. - Export it as
CROSSLY_PATand send it asAuthorization: Bearer $CROSSLY_PATtohttps://crossly.net/api/v1/*. Full docs: https://crossly.net/docs
Install
This plugin already wires the server: enter a personal access token for the plugin's pat option when you enable it. Elsewhere:
crossly mcp install # @crossly/cli: detects Claude Desktop, Cursor or Claude Code, mints a scoped token, writes the config
claude mcp add crossly --env CROSSLY_PAT=crossly_pat_live_… -- npx -y @crossly/mcp
Any MCP client (Claude Desktop claude_desktop_config.json, Cursor ~/.cursor/mcp.json, Cline, Continue):
{
"mcpServers": {
"crossly": {
"command": "npx",
"args": ["-y", "@crossly/mcp"],
"env": { "CROSSLY_PAT": "crossly_pat_live_…" }
}
}
}
| Variable | Required | Meaning |
|---|---|---|
CROSSLY_PAT | yes | A seller personal access token (Settings → API & webhooks). A crossly_pat_test_… token works against the sandbox. An Atlas OAuth access token (a JWT) is also accepted |
CROSSLY_API_BASE_URL | no | Defaults to https://crossly.net/api; set https://sandbox.crossly.net/api for the sandbox. No trailing slash |
CROSSLY_STOREFRONT_ID | no | On a multi-store account, the store every call acts on (sent as X-Storefront-Id); else the default store |
Pick scopes deliberately
- Read-only assistant:
inventory:read,listings:read,orders:read,sales:read,analytics:read. - Crossposting agent: add
inventory:write,listings:write. - Fulfilment agent:
orders:read,fulfillment:write. - Inbox agent:
inbox:read,inbox:write. *only for an agent that genuinely runs your whole store, on your own token.
The token lives in the MCP config on your machine; don't commit that file, and rotate the token if it leaks.
Working with the tools
- Start with
get_me: it returns the user, plan,patPrefixandscopes, so you know what will be refused before you try. - Read before writing:
list_listings,get_listing,list_orders(filterstatus, e.g.needs_fulfillment),get_order,list_sales,list_inventory. - Write with an
idempotencyKeyon every mutation you might retry (crosspost_listing,update_listing,delist,submit_tracking,issue_refund,register_webhook). The API replays the first response for 24 h, so a retried call doesn't double-list or double-refund. crosspost_listingis asynchronous: it returns the listing plus a job per platform. Pass an existinginventoryItemId(ordatawithcreateInventoryItem: true), then pollget_listinguntil each platform row isactiveorfailed, and report per platform.- Automations:
get_automation_catalogfirst, thenvalidate_automation_recipe, thenimport_automation_recipes(rules arrive paused unlessactivate: true). - Webhooks:
register_webhookreturns the signingsecretonce. Hand it to the user to store; never echo it into logs or commit it.
Errors come back as a tool error text such as Crossly API 403 (insufficient_scope): …. A 403 means the token needs another scope (the message names it): ask the user for a wider token instead of retrying. A 429 means wait for Retry-After.
Confirm before acting
Ask the user before anything that spends money or is hard to undo: buying a label (order_label), refunds (issue_refund), cancelling orders, delisting everywhere, bulk price changes, enabling an imported automation. Read-only tools need no confirmation.
The same tools from a terminal
@crossly/cli exposes every MCP tool as a command, by its stable tool name: crossly api submit_tracking --id <uuid> --carrier usps --tracking-number …; crossly api --list --json prints every tool with its JSON Schema. --json output, --dry-run, --idempotency-key; exit code 5 means the token lacks a scope.
Docs: https://crossly.net/docs/mcp-agent · Source: https://github.com/crossly-dev/crossly-mcp
