ebay-mcp 2.0.8 → 2.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,744 +1,232 @@
1
- <!-- Keywords: eBay MCP server, eBay Model Context Protocol, eBay API for AI assistants, eBay Sell API, Claude eBay integration, Cursor eBay, eBay inventory automation, eBay order management AI, eBay OAuth, eBay developer tools, MCP server for eBay -->
2
-
3
1
  <p align="center">
4
- <a href="https://github.com/YosefHayim/ebay-mcp"><img src=".github/readme/ebay-mcp-hero.png" alt="eBay MCP Server — connect Claude, Cursor, and any AI assistant to eBay's Sell APIs with one command (npm run setup)" width="820" /></a>
2
+ <a href="https://github.com/YosefHayim/ebay-mcp"><img src=".github/readme/ebay-mcp-hero.png" alt="eBay MCP server: connect Claude, Cursor and other AI assistants to eBay's Sell APIs" width="820" /></a>
5
3
  </p>
6
4
 
7
5
  <p align="center">
8
- <strong>The eBay MCP server — give Claude, Cursor, and any AI assistant full access to eBay's Sell APIs. 379 tools for inventory, orders, marketing, and analytics, running locally with your own keys.</strong>
6
+ <strong>A local MCP server that gives AI assistants 379 tools for the eBay Sell, Commerce and Developer APIs, running with your own keys.</strong>
9
7
  </p>
10
8
 
11
- <p align="center"><sub>Unofficial, open-source project — not affiliated with, authorized, or endorsed by eBay Inc.</sub></p>
9
+ <p align="center"><sub>Unofficial open-source project. Not affiliated with, authorized or endorsed by eBay Inc.</sub></p>
12
10
 
13
11
  <p align="center">
14
12
  <a href="https://www.npmjs.com/package/ebay-mcp"><img src="https://img.shields.io/npm/v/ebay-mcp?logo=npm&color=cb3837" alt="npm version" /></a>
15
13
  <a href="https://www.npmjs.com/package/ebay-mcp"><img src="https://img.shields.io/npm/dm/ebay-mcp?logo=npm&color=cb3837" alt="npm downloads per month" /></a>
16
14
  <a href="https://github.com/YosefHayim/ebay-mcp/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/YosefHayim/ebay-mcp/ci.yml?branch=main&logo=github&label=CI" alt="CI status" /></a>
17
15
  <a href="LICENSE"><img src="https://img.shields.io/npm/l/ebay-mcp?color=blue" alt="MIT license" /></a>
18
- <img src="https://img.shields.io/node/v/ebay-mcp?logo=node.js&color=339933" alt="Required Node.js version" />
19
- <img src="https://img.shields.io/badge/types-included-3178c6?logo=typescript&logoColor=white" alt="TypeScript types included" />
20
- </p>
21
-
22
- <p align="center">
23
16
  <img src="https://img.shields.io/badge/tools-379-8957e5?logo=ebay&logoColor=white" alt="379 eBay API tools" />
24
- <img src="https://img.shields.io/badge/Sell%20API%20coverage-100%25-success" alt="100% eBay Sell API coverage" />
25
- <img src="https://img.shields.io/badge/Model%20Context%20Protocol-compatible-000000" alt="Model Context Protocol compatible" />
26
- <img src="https://img.shields.io/badge/tests-1%2C000%2B%20passing-3fb950?logo=vitest&logoColor=white" alt="Over 1,000 passing tests" />
27
- <img src="https://img.shields.io/badge/runs-100%25%20local-blue" alt="Runs entirely on your machine" />
28
17
  </p>
29
18
 
30
19
  <p align="center">
31
- <a href="https://mseep.ai/app/yosefhayim-ebay-api-mcp-server"><img src="https://mseep.net/pr/yosefhayim-ebay-api-mcp-server-badge.png" alt="MseeP.ai Security Assessment Badge" height="40" /></a>
20
+ <a href="https://yosefhayim.github.io/ebay-mcp/">Website</a> ·
21
+ <a href="https://www.npmjs.com/package/ebay-mcp">npm</a> ·
22
+ <a href="https://github.com/YosefHayim/ebay-mcp/releases">Releases</a>
32
23
  </p>
33
24
 
34
- ---
35
-
36
- **eBay MCP** is a local [Model Context Protocol](https://modelcontextprotocol.io) server that connects AI assistants — [Claude Desktop](https://claude.ai/download), [Claude Code](https://code.claude.com/docs/en/overview), [Cursor](https://cursor.com/), [Cline](https://cline.bot/), [Windsurf](https://windsurf.com/), [Zed](https://zed.dev/), [Continue.dev](https://docs.continue.dev/), [Roo Code](https://roocode.com/), and [Amazon Q Developer](https://aws.amazon.com/q/developer/) — directly to **[eBay's Sell APIs](https://developer.ebay.com/api-docs/sell/static/overview.html)**. It exposes **379 tools** spanning **100% of the eBay Sell, Commerce and Developer APIs it tracks** (356 unique endpoints) for inventory management, order fulfillment, promoted-listings marketing, analytics, and developer tooling. Everything runs on your machine over STDIO or local HTTP — **no cloud relay**, and your eBay credentials never leave your computer.
37
-
38
- > **Disclaimer:** Unofficial, third-party project — **not affiliated with or endorsed by eBay Inc.** Provided "as is" without warranty. You are responsible for complying with [eBay's API License Agreement](https://developer.ebay.com/join/api-license-agreement) and [data-handling requirements](https://developer.ebay.com/api-docs/static/data-handling-update.html), keeping your credentials secure, and staying within rate limits. Test in sandbox before production. See [LICENSE](LICENSE).
39
-
40
- ## Table of contents
41
-
42
- - [Features](#features)
43
- - [Capability map](#capability-map)
44
- - [eBay MCP vs. the raw eBay API](#ebay-mcp-vs-the-raw-ebay-api)
45
- - [One-click AI setup](#one-click-ai-setup)
46
- - [Quick start](#quick-start)
47
- - [Demo](#demo)
48
- - [Configuration](#configuration)
49
- - [Available tools](#available-tools)
50
- - [Interactive UI (MCP Apps) — beta](#interactive-ui-mcp-apps)
51
- - [Usage examples](#usage-examples)
52
- - [Scope and safety](#scope-and-safety)
53
- - [Logging & troubleshooting](#logging--troubleshooting)
54
- - [FAQ](#faq)
55
- - [Contributing](#contributing)
56
- - [Resources](#resources)
57
- - [License](#license)
58
- - [Contributors](#contributors)
59
-
60
- ## Features
61
-
62
- - **379 eBay API tools** — 100% coverage of the eBay Sell APIs across inventory, orders, marketing, analytics, metadata, taxonomy, and developer tooling.
63
- - **9 AI clients, auto-configured** — Claude Desktop, Cursor, Zed, Cline, Continue.dev, Windsurf, Roo Code, Claude Code CLI, and Amazon Q Developer.
64
- - **OAuth 2.0 built in** — full user-token management with automatic refresh, and smart fallback from user tokens (10k–50k req/day) to client credentials (1k req/day).
65
- - **Resilient by default** — automatic retry with exponential backoff on `429` rate limits, and consistent, loud error surfacing.
66
- - **Type-safe** — [TypeScript](https://www.typescriptlang.org/) end to end, [Zod](https://zod.dev/)-validated tool inputs, and [OpenAPI](https://www.openapis.org/)-generated types.
67
- - **Local-first & private** — runs over STDIO or local HTTP; your credentials and data never leave your machine.
68
- - **Sandbox and production** — switch environments with a single variable.
69
- - **One-command setup** — `npm run setup` configures credentials, OAuth, and your MCP client, with a browser auto-opened for the OAuth flow.
70
- - **Well tested** — 1,000+ automated tests run in CI on every change through [GitHub Actions](https://docs.github.com/en/actions).
71
-
72
- ## Capability map
73
-
74
- Use this map when deciding which tool family to expose, or when asking an assistant what it can do. The family names match `EBAY_MCP_TOOLS`, so you can run with all tools, dynamic discovery, or only the families needed for a specific workflow.
75
-
76
- | Family | What it unlocks | Good first request |
77
- | --- | --- | --- |
78
- | `account` | Business policies, fulfillment policies, payment policies, return policies, sales tax, subscriptions, programs, rate-table shipping costs, payout settings, combined shipping rules, and user preferences (Account API v2) | "Show my eBay fulfillment policies." |
79
- | `finances` | Payouts, payout summaries, transactions, transfers, seller funds, billing activity, and order earnings | "Summarize my payouts from the last 30 days." |
80
- | `inventory` | Inventory items, offers, inventory locations, item groups, bulk offer flows, and SKU/location mapping | "List my active inventory items and their available quantity." |
81
- | `feed` | Asynchronous order, inventory, and customer-service-metric report tasks, recurring schedules, and feed file upload/download | "Create an order report task for the last 10 days." |
82
- | `stores` | eBay Store details, store categories (add, rename, move, delete), and category task status | "Show my eBay Store category tree." |
83
- | `fulfillment` | Orders, shipping fulfillments, refunds, payment disputes, and dispute evidence | "Show unfulfilled orders from the last 7 days." |
84
- | `logistics` | Shipping quotes, label purchase, shipments, and label download (limited-release Logistics API) | "Get shipping rate quotes for this order." |
85
- | `browse` | Active listing search and item details (Browse API) for market research | "What similar items are listed right now?" |
86
- | `marketing` | Promoted Listings campaigns, ads, promotions, bidding, and marketing reports | "List my active promoted listing campaigns." |
87
- | `analytics` | Traffic reports, seller standards, and customer-service metrics | "Show my seller standards profile." |
88
- | `communication` | Buyer-seller messaging, negotiations, notifications, and feedback | "Show recent buyer messages that need a response." |
89
- | `metadata` / `taxonomy` | Category trees, aspects, item conditions, return-policy metadata, tax jurisdictions, vehicle compatibility, shipping carriers/services/locations, handling times, expired categories, bulk aspect export, and charitable organizations | "Find required item aspects for this category." |
90
- | `other` | Identity, VeRO, translation, and international shipping support APIs | "Show my current seller identity details." |
91
- | `developer` / `token-management` | Rate limits, signing keys, OAuth URLs, token refresh, and diagnostics | "Check my eBay API rate limits." |
92
- | `trading` | Legacy XML listing create, revise, relist, and end operations for fixed-price listings and auctions | "Create a fixed-price listing draft from this SKU." |
93
- | `connector` | ChatGPT connector search/fetch tools over the eBay MCP catalogue | "Search the eBay tool catalogue for order tools." |
94
-
95
- ### Listing preflight: required item specifics
96
-
97
- Before calling `ebay_create_or_replace_inventory_item`, `ebay_create_offer`, or
98
- `ebay_get_listing_fees`, fetch the live requirements for the selected category:
99
-
100
- `ebay_get_default_category_tree_id` → `ebay_get_category_suggestions` →
101
- `ebay_get_item_aspects_for_category`
102
-
103
- The aspects response identifies required and recommended item specifics. Put every
104
- required aspect on the inventory item before creating its offer. Requirements vary by
105
- category and marketplace, so re-run the lookup when either changes; do not rely on
106
- examples or a fixed global fallback value.
107
-
108
- ### Auction offers
109
-
110
- `ebay_create_offer`, `ebay_update_offer`, and `ebay_bulk_create_offer` accept both
111
- listing formats through the same Inventory model:
112
-
113
- | Field | `FIXED_PRICE` | `AUCTION` |
114
- | --- | --- | --- |
115
- | `pricingSummary.price` | Listing price | Optional Buy It Now price, at least 30% above the opening bid |
116
- | `pricingSummary.auctionStartPrice` | — | Opening bid |
117
- | `pricingSummary.auctionReservePrice` | — | Optional; must exceed the opening bid and carries an eBay fee |
118
- | `listingDuration` | `GTC` | Day count such as `DAYS_7` (never `GTC`) |
119
- | `availableQuantity` | Any | Omit or `1` — an auction sells a single unit |
120
- | Best Offer | Allowed | Allowed where the category supports it, but not together with a Buy It Now price |
121
- | `quantityLimitPerBuyer` / `eBayPlusIfEligible` | Allowed | Not allowed |
122
- | `listingStartDate` | Only when a scheduled start was explicitly requested (eBay may charge a fee) | Same |
123
-
124
- Check `ebay_get_listing_type_policies` for the formats and durations a category allows,
125
- then `ebay_get_listing_fees` before `ebay_publish_offer`. Bodies that mix the two formats
126
- are rejected locally, before any request reaches eBay.
127
-
128
- #### Auctions on the Trading (XML) path
129
-
130
- The legacy tools take the same switch as a top-level `format` argument (`FIXED_PRICE` by
131
- default). `ebay_create_listing`, `ebay_revise_listing`, `ebay_end_listing`, and
132
- `ebay_relist_item` with `format: "AUCTION"` use the auction-capable calls (`AddItem`,
133
- `ReviseItem`, `EndItem`, `RelistItem`) instead of the `*FixedPriceItem` family, and
134
- `ebay_create_listing` adds `ListingType: "Chinese"` to the `Item` for you:
135
-
136
- | Trading `Item` field | `FIXED_PRICE` | `AUCTION` |
137
- | --- | --- | --- |
138
- | `StartPrice` | Listing price | Opening bid (required on create) |
139
- | `ReservePrice` | Not allowed | Optional; must exceed `StartPrice` (a reserve carries an eBay fee) |
140
- | `BuyItNowPrice` | Not allowed | Optional; at least 30% above `StartPrice` |
141
- | `ListingDuration` | `GTC` (the only fixed-price duration eBay accepts) | Day count such as `Days_7` (required on create; never `GTC`) |
142
- | `Quantity` | Any | Omit or `1` |
143
- | `BestOfferDetails.BestOfferEnabled` | Allowed | Allowed where the category supports it, but not together with `BuyItNowPrice` |
144
- | `ebay_end_listing` reason `SellToHighBidder` | Not allowed | Ends an auction with bids |
145
-
146
- Mixed payloads are rejected locally. When the format of an existing item is unknown, read
147
- its `ListingType` with `ebay_get_listing` first (`Chinese` = auction).
148
-
149
- ### Photos and videos from local files
150
-
151
- An offer cannot be published without at least one picture. The media tools upload local
152
- files through eBay's Media API and return what the Inventory API needs:
153
-
154
- | Tool | What it does |
155
- | --- | --- |
156
- | `ebay_upload_images` | Uploads pictures to eBay Picture Services (`createImageFromFile`) and returns the EPS URLs in order for `product.imageUrls` |
157
- | `ebay_upload_video` | Runs the video lifecycle (`createVideo` → `uploadVideo` → `getVideo`) and returns the `videoId` for `product.videoIds` |
158
- | `ebay_get_video` | Re-checks a video that was still `PROCESSING` |
159
- | `ebay_attach_media_to_inventory_item` | Reads the item, uploads the files, and rewrites only `product.imageUrls` / `product.videoIds` — never publishes, and leaves the item untouched if any upload fails unless `allowPartial` is set |
160
-
161
- Local file access is off until you allow it: set `EBAY_MCP_MEDIA_DIRS` (path-delimited
162
- directories) and/or `EBAY_MCP_MEDIA_ROOT` (one directory that also resolves
163
- `media://<relative-path>` references). Symlinks are resolved before the containment
164
- check; anything outside the allowed directories is refused before any upload. Supported:
165
- JPG, PNG, GIF, BMP, TIFF, WEBP, AVIF, HEIC up to 12 MB; MP4/MOV up to 150 MB. Unused
166
- uploads expire on eBay's side; they become permanent once a listing uses them.
167
-
168
- ### Image URLs and documents
169
-
170
- These eight tools are also in the `inventory` family:
171
-
172
- | Tool | What it does |
173
- | --- | --- |
174
- | `ebay_create_image_from_url` | Sends an HTTPS source URL to eBay and returns `imageId`, `location`, and the complete `image` response with EPS URLs |
175
- | `ebay_create_document` | Stages a listing document using `documentType` and `languages` |
176
- | `ebay_create_document_from_url` | Creates a listing document directly from `documentUrl` (HTTPS) and metadata |
177
- | `ebay_upload_document` | Uploads a local file to a staged `documentId` |
178
- | `ebay_get_document` | Returns listing document status and metadata |
179
- | `ebay_upload_post_order_document` | Uploads a file with `documentUsageType`, `entityType`, and `entityId`; returns `documentId` and `location` |
180
- | `ebay_download_post_order_document` | Returns an embedded PDF MCP resource, with base64 bytes; does not write local files |
181
- | `ebay_remove_post_order_document` | Deletes a submitted post-order document |
182
-
183
- For a listing manual, call `ebay_create_document` with
184
- `{"documentType":"USER_GUIDE_OR_MANUAL","languages":["ENGLISH"]}`, then
185
- `ebay_upload_document` with the returned `documentId` and
186
- `"path":"media://manual.pdf"`. Alternatively, call `ebay_create_document_from_url`
187
- with the same metadata and `"documentUrl":"https://example.com/manual.pdf"`.
188
- Use `ebay_get_document` to check for `ACCEPTED` before associating the ID with a
189
- listing. These calls require user consent for `sell.inventory`, including the read.
190
-
191
- Listing documents accept PDF, JPEG/JPG and PNG up to **10 MiB (10,485,760 bytes)**.
192
- Post-order documents additionally accept BMP and GIF, with a **5 MiB (5,242,880 bytes)**
193
- limit. Local uploads use the same media allowlist above, with extension and file
194
- signature checks. Animated/multi-page PNG is unsupported; use PDF for multi-page
195
- content. eBay enforces usage-specific PDF page limits.
196
-
197
- For a return label, call `ebay_upload_post_order_document` with
198
- `{"path":"media://label.pdf","documentUsageType":"RETURN_SHIPPING_LABEL","entityType":"RETURNS","entityId":"YOUR_RETURN_ID"}`.
199
- The initial state is `SUBMITTED`; publication requires a separate eBay GraphQL
200
- mutation, outside these tools. Submitted downloads are owner-only; published
201
- downloads require authorization in the post-order flow. Published documents cannot
202
- be deleted, and expired documents are unavailable.
203
-
204
- Post-order tools require an eligible keyset and user consent for
205
- `https://api.ebay.com/oauth/api_scope/commerce.post_order.document`.
206
- Add it to your existing `EBAY_OAUTH_SCOPES` list and repeat OAuth setup/consent.
207
- The variable replaces the requested scope list, so retain the other scopes you need.
208
- Token refresh does not grant additional scopes. This scope is recognized but is
209
- not added to default consent requests. All Media API POST operations are subject
210
- to eBay's user-level limit of 50 requests per five seconds; rate-limit errors are
211
- returned to the caller.
212
-
213
- See eBay's [Media API overview](https://developer.ebay.com/api-docs/commerce/media/static/overview.html)
214
- and [release notes](https://developer.ebay.com/api-docs/commerce/media/static/release-notes.html).
215
-
216
- ### Finances, feeds, stores, and shipping labels
217
-
218
- These families cover the rest of the Sell APIs: Finances, Feed, Stores, Logistics, and Account
219
- v2, plus the Metadata shipping, Taxonomy, and Charity endpoints that were missing:
220
-
221
- | Family | What it adds |
222
- | --- | --- |
223
- | `finances` | Read-only payouts, payout and transaction summaries, transactions, transfers, seller funds, billing activity, and order earnings |
224
- | `feed` | Order, inventory, and customer-service-metric report tasks; LMS and Seller Hub upload tasks; recurring schedules and templates; input and result files |
225
- | `stores` | eBay Store details and store category changes (add, rename, move, delete) with task polling |
226
- | `logistics` | Shipping quotes, postage purchase, shipments, cancellation, and PDF labels |
227
- | `account` | Account API v2 rate tables, split payouts (mainland China sellers), combined shipping rules, and user preferences |
228
- | `metadata` / `taxonomy` | Shipping carriers, services, locations, and handling times; expired categories; the bulk aspect export; charity organization lookup |
229
-
230
- **Asynchronous changes.** Feed tasks and store category changes return a `taskId` read from
231
- eBay's `Location` header (feed schedules return a `scheduleId`). Poll `ebay_get_feed_task` or
232
- `ebay_get_store_task` until the task finishes, then fetch any result file. eBay allows one store
233
- category change in flight at a time.
234
-
235
- **Files in and out.** Downloads (feed input, result, and schedule files, shipping labels, and the
236
- Taxonomy aspect export) come back as embedded MCP resources with base64 bytes; nothing is written
237
- to disk. A file over **25 MiB** fails with an error as soon as its size is known, without reading
238
- the rest. The aspect export for large marketplaces such as `EBAY_US` exceeds that limit, so use
239
- `ebay_get_item_aspects_for_category` per category there. `ebay_upload_feed_task_file` reads a local
240
- `.xml`, `.csv`, `.zip`, or `.gz` file of up to 15 MiB (eBay's data file limit) through the same
241
- `EBAY_MCP_MEDIA_DIRS` / `EBAY_MCP_MEDIA_ROOT` allowlist as the media tools.
242
-
243
- **Money moves.** `ebay_create_shipment_from_shipping_quote` buys postage and charges the seller's
244
- billing agreement; `ebay_cancel_shipment` refunds it while the label is unused.
245
-
246
- **Optional scopes.** Two scopes are recognized but never requested by default:
247
-
248
- - `https://api.ebay.com/oauth/api_scope/sell.finances.earnings.read` for the three order-earnings
249
- tools.
250
- - `https://api.ebay.com/oauth/api_scope/sell.logistics` for every Logistics tool; the API is limited
251
- release.
252
-
253
- Eligible keysets add the scope to `EBAY_OAUTH_SCOPES`, keeping the other scopes they need, and
254
- repeat OAuth consent.
255
-
256
- **Digital signatures (EU/UK sellers).** eBay requires
257
- [Digital Signatures](https://developer.ebay.com/develop/guides/digital-signatures-for-apis) on every
258
- Finances API call and on `issueRefund` for sellers domiciled in the EU or UK; without them eBay
259
- answers `403 Missing x-ebay-signature-key header`. To enable signing:
260
-
261
- 1. Run `ebay_create_signing_key` (ED25519 is recommended) and keep the response — eBay never shows
262
- the private key again.
263
- 2. Set `EBAY_SIGNING_KEY_JWE` to its `jwe` and `EBAY_SIGNING_PRIVATE_KEY` to its `privateKey`
264
- (the base64 value as returned, or a PEM key), then restart the server.
265
-
266
- Those calls then carry the `x-ebay-signature-key`, `Content-Digest`, `Signature-Input`, and
267
- `Signature` headers (RFC 9421). Other calls are never signed, and nothing changes while the two
268
- variables are unset. Behind `EBAY_MCP_API_BASE_URL`, calls are signed for the eBay host and path
269
- they reach (`api.ebay.com` or `apiz.ebay.com`), so the proxy must forward eBay's `Host` header and
270
- the original eBay path.
271
-
272
- ## eBay MCP vs. the raw eBay API
273
-
274
- Both talk to the same eBay endpoints — the difference is everything you'd otherwise build yourself.
275
-
276
- | | **eBay MCP Server** | **Raw eBay REST API** |
277
- | --- | --- | --- |
278
- | Interface | Natural language through your AI assistant | Hand-written HTTP requests and JSON parsing |
279
- | OAuth & token refresh | Built in, with automatic refresh | You implement and maintain it |
280
- | Rate-limit handling | Automatic retry with exponential backoff | Manual `429` handling and backoff |
281
- | Input validation | Zod schemas + TypeScript types on every tool | None — you validate your own payloads |
282
- | Setup | One wizard (`npm run setup`) | Per-call auth, headers, and marketplace wiring |
283
- | AI client support | 9 clients auto-configured | Not applicable |
284
- | API coverage | 379 tools across 100% of the Sell APIs, ready to call | Build each request from the docs |
285
- | Hosting | Runs locally, no cloud relay | Your own infrastructure |
286
-
287
- ## One-click AI setup
288
-
289
- > **Let your AI assistant set this up for you.** Copy the prompt below and paste it into Claude, ChatGPT, or any AI assistant with MCP support.
290
-
291
- <details>
292
- <summary><strong>Click to copy the AI setup prompt</strong></summary>
293
-
294
- ```
295
- I want to set up the eBay MCP Server for my AI assistant. Please help me:
296
-
297
- 1. Install the eBay MCP server:
298
- npm install -g ebay-mcp
299
-
300
- 2. I need to configure it for [Claude Desktop / Cursor / Cline / Zed / Continue.dev / Windsurf / Claude Code CLI / Amazon Q] (choose one)
25
+ ## What it does
301
26
 
302
- 3. My eBay credentials are:
303
- - Client ID: [YOUR_CLIENT_ID]
304
- - Client Secret: [YOUR_CLIENT_SECRET]
305
- - Environment: [sandbox / production]
306
- - Redirect URI (RuName): [YOUR_REDIRECT_URI]
307
-
308
- Please:
309
- - Create the appropriate config file for my MCP client
310
- - Set up the environment variables
311
- - Help me complete the OAuth flow to get a refresh token for higher rate limits
312
- - Test that the connection works
313
-
314
- If I don't have eBay credentials yet, guide me through creating a developer account at https://developer.ebay.com/
315
- ```
316
-
317
- </details>
27
+ - Connects Claude Desktop, Claude Code, Cursor, Cline, Windsurf, Zed, Continue.dev, Roo Code and Amazon Q Developer to eBay. Any MCP client can connect.
28
+ - Covers inventory, orders, fulfillment, finances, feeds, stores, shipping labels, promoted listings, analytics, taxonomy, messaging and the legacy Trading API.
29
+ - Handles OAuth 2.0 with automatic token refresh, and retries `429` rate limits with backoff.
30
+ - Validates every tool input with Zod and uploads local photos and videos through the Media API.
31
+ - Runs on your machine over STDIO or HTTP. There is no cloud relay and your credentials stay local.
32
+ - Works with the eBay sandbox and production. One variable switches between them.
318
33
 
319
34
  ## Quick start
320
35
 
321
- ### 1. Get eBay credentials
36
+ ### 1. Get eBay keys
322
37
 
323
- 1. Create a free [eBay Developer Account](https://developer.ebay.com/).
324
- 2. Generate application keys in the [Developer Portal](https://developer.ebay.com/my/keys).
325
- 3. Save your **Client ID** and **Client Secret**.
38
+ Create a free [eBay Developer Account](https://developer.ebay.com/). In the [Developer Portal](https://developer.ebay.com/my/keys), copy the **App ID (Client ID)** and **Cert ID (Client Secret)**.
326
39
 
327
- ### 2. Install
40
+ ![Step 1: copy the Client ID and Client Secret from the eBay Developer Portal](.github/readme/setup-step-1-copy-client-id-and-secret.png)
328
41
 
329
- ```bash
330
- npm install -g ebay-mcp # from npm (recommended)
331
- ```
42
+ In your app's **User Tokens** settings, copy the **RuName** (the eBay redirect URL).
332
43
 
333
- Or from source:
44
+ ![Step 2: copy the RuName redirect URL](.github/readme/setup-step-2-copy-redirect-url.png)
334
45
 
335
- ```bash
336
- git clone https://github.com/YosefHayim/ebay-mcp.git
337
- cd ebay-mcp && npm install && npm run build
338
- ```
46
+ ### 2. Run the setup wizard
339
47
 
340
- ### 3. Run the setup wizard
48
+ Needs [Node.js](https://nodejs.org/) 24 or newer.
341
49
 
342
50
  ```bash
343
- npm run setup
51
+ npm install -g ebay-mcp
52
+ npx ebay-mcp setup # or: npm run setup, from a source checkout
344
53
  ```
345
54
 
346
- The wizard configures your eBay credentials, sets up OAuth (for higher rate limits), auto-detects and configures your MCP client, and saves everything automatically.
55
+ The wizard saves your credentials, opens the browser for eBay sign-in and configures your MCP client.
347
56
 
348
- ### 4. Verify with a read-only request
57
+ ![Step 3: sign in to eBay during the OAuth flow](.github/readme/setup-step-3-run-setup-and-oauth-login.png)
349
58
 
350
- Restart your MCP client and ask:
59
+ Paste the authorization code from the callback URL when it asks.
351
60
 
352
- > "Check my eBay API rate limits."
61
+ ![Step 4: paste the authorization code into the setup wizard](.github/readme/setup-step-4-paste-into-setup-wizard.png)
353
62
 
354
- That should call `ebay_get_rate_limits` or `ebay_get_user_rate_limits` and confirms the server, credentials, and MCP client wiring without changing seller data.
63
+ Watch the [video tutorial](.github/readme/video-tutorial.mp4) for the full flow.
355
64
 
356
- ### 5. Use
65
+ ### 3. Verify with a read-only request
357
66
 
358
- Start managing eBay through your AI assistant. Begin with read-only questions, then move to mutating inventory, order, or campaign tools after you have confirmed the target environment is sandbox or production.
67
+ Restart your MCP client and ask: "Check my eBay API rate limits." This calls `ebay_get_rate_limits` and proves the server, credentials and client wiring work without changing seller data.
359
68
 
360
- <details>
361
- <summary><strong>📸 Visual setup walkthrough (eBay Developer Portal)</strong></summary>
69
+ ### 4. Use it
362
70
 
363
- <br />
71
+ Start with read-only questions. Move to tools that change data only after you confirm whether you are on sandbox or production.
364
72
 
365
- The setup wizard (`npm run setup`) handles OAuth automatically. Here's where to find your credentials in the eBay Developer Portal:
366
-
367
- **Step 1** — In the [Developer Portal](https://developer.ebay.com/my/keys), copy your **App ID (Client ID)** and **Cert ID (Client Secret)**:
368
-
369
- ![Step 1 - Copy Client ID and Client Secret from the eBay Developer Portal](.github/readme/setup-step-1-copy-client-id-and-secret.png)
370
-
371
- **Step 2** — In your app's **User Tokens** settings, copy the **RuName** (eBay Redirect URL):
372
-
373
- ![Step 2 - Copy the RuName redirect URL from eBay sign-in settings](.github/readme/setup-step-2-copy-redirect-url.png)
374
-
375
- **Step 3** — Run `npm run setup`. It opens your browser for OAuth login and guides you through eBay sign-in:
376
-
377
- ![Step 3 - Sign in to eBay during the OAuth flow started by npm run setup](.github/readme/setup-step-3-run-setup-and-oauth-login.png)
378
-
379
- **Step 4** — Paste the authorization code from the callback URL when prompted:
380
-
381
- ![Step 4 - Paste the authorization code into the eBay MCP setup wizard](.github/readme/setup-step-4-paste-into-setup-wizard.png)
382
-
383
- The wizard exchanges the code for tokens, saves them, and configures your MCP client. You now have user-token authentication (10k–50k requests/day instead of the default 1k/day).
384
-
385
- </details>
386
-
387
- ## Demo
388
-
389
- See the eBay MCP Server in action with Claude Desktop:
390
-
391
- https://github.com/user-attachments/assets/0173c8df-221c-4943-a4ce-cd20bce79f4b
392
-
393
- ## Configuration
394
-
395
- <details open>
396
- <summary><strong>Environment variables, tool exposure, auth &amp; client compatibility</strong></summary>
397
-
398
- > `npm run setup` writes the `.env` for you; the variables below are for reference.
73
+ To add the server by hand, use the Claude Code one-liner:
399
74
 
400
75
  ```bash
401
- EBAY_CLIENT_ID=your_client_id
402
- EBAY_CLIENT_SECRET=your_client_secret
403
- EBAY_ENVIRONMENT=sandbox # or "production"
404
- EBAY_REDIRECT_URI=your_runame
405
- EBAY_MARKETPLACE_ID=EBAY_US # default marketplace (overridable per tool)
406
- # EBAY_SITE_ID=0 # Trading API site override; defaults from EBAY_MARKETPLACE_ID
407
- EBAY_CONTENT_LANGUAGE=en-US # default request content language
408
- EBAY_USER_REFRESH_TOKEN=your_token # for higher rate limits
409
- # EBAY_SIGNING_KEY_JWE=<jwe> # Digital Signatures for EU/UK sellers (jwe from ebay_create_signing_key)
410
- # EBAY_SIGNING_PRIVATE_KEY=<key> # privateKey from the same response (base64 PKCS#8 or PEM)
411
- EBAY_MCP_UI=on # interactive MCP Apps views (beta); "off" forces plain JSON
412
- EBAY_MCP_TOOLS=all # tool exposure: "all", "dynamic", or a family list (see below)
413
- EBAY_READ_ONLY=false # when true, only register read-only tools (gets/lists/searches)
414
- # Local photo/video upload (optional — off until a directory is allowed):
415
- # EBAY_MCP_MEDIA_DIRS=/srv/media # path-delimited directories the media and feed upload tools may read
416
- # EBAY_MCP_MEDIA_ROOT=/srv/media # root for media://<relative-path> references (also allowed)
417
- # HTTP deploy (optional — Docker / Railway / self-hosted):
418
- # MCP_HOST=0.0.0.0 # default is 0.0.0.0 when PORT is set
419
- # MCP_PORT=3000 # preferred over platform PORT
420
- # MCP_AUTH_TOKEN=secret # static Bearer for HTTP MCP (skips OAuth verifier)
421
- # MCP_CORS_ORIGINS=https://app.example.com # browser origins allowed cross-origin (comma-separated); default: loopback origins only
76
+ claude mcp add ebay --env EBAY_CLIENT_ID=your_client_id --env EBAY_CLIENT_SECRET=your_client_secret --env EBAY_ENVIRONMENT=sandbox -- npx -y ebay-mcp
422
77
  ```
423
78
 
424
- ### Tool exposure (`EBAY_MCP_TOOLS`)
425
-
426
- By default all tools are advertised to the agent at once. On a long conversation that catalogue is a meaningful slice of the context window, so two opt-in modes let you shrink it:
427
-
428
- | Value | Behavior | Works on |
429
- | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
430
- | `all` _(default, or unset)_ | Every tool advertised at startup. | every host |
431
- | `dynamic` | Only three discovery tools are visible (`list_ebay_tools`, `enable_ebay_tools`, `disable_ebay_tools`). The agent searches the catalogue and loads only the tools it needs; they then appear natively. | hosts that honor `tools/listChanged` (e.g. Claude) |
432
- | `inventory,fulfillment,…` | Registers **only** the named families (listed below), frozen for the session. | every host (incl. ChatGPT, Cursor) |
433
-
434
- The family list is literal — you get exactly what you name. ChatGPT connectors need the `connector` family (its `search`/`fetch` tools); add it explicitly, e.g. `EBAY_MCP_TOOLS=connector,inventory`. An unknown family name fails fast at startup with the valid list. Valid families: `connector`, `token-management`, `account`, `finances`, `inventory`, `feed`, `stores`, `fulfillment`, `logistics`, `marketing`, `analytics`, `metadata`, `taxonomy`, `communication`, `browse`, `other`, `developer`, `trading`.
435
-
436
- ### Authentication & rate limits
437
-
438
- | Mode | Daily limit | Best for | Setup |
439
- | -------------------------------- | --------------- | ----------------------- | --------------------------------- |
440
- | **Client credentials** (default) | 1,000 req/day | Development, testing | Automatic with Client ID + Secret |
441
- | **User token** (recommended) | 10k–50k req/day | Production, high volume | OAuth via `npm run setup` |
442
-
443
- User-token limits vary by account tier (Individual 10k · Commercial 25k · Enterprise 50k+). On a `429`, the server retries with exponential backoff and surfaces the error. Monitor usage in the [Developer Portal](https://developer.ebay.com/my/api_usage).
444
-
445
- ### MCP client compatibility
446
-
447
- Auto-configured by `npm run setup`. Requires [Node.js](https://nodejs.org/en) ≥ 24 and MCP protocol 1.0+ over STDIO (default) or HTTP.
448
-
449
- | Client | Platform | Config path |
450
- | ---------------------- | --------------------- | ---------------------------------------------------------------------------- |
451
- | **Claude Desktop** | macOS, Windows, Linux | `~/Library/Application Support/Claude/claude_desktop_config.json` |
452
- | **Cursor IDE** | macOS, Windows, Linux | `~/.cursor/mcp.json` |
453
- | **Zed Editor** | macOS, Windows, Linux | `~/.config/zed/settings.json` |
454
- | **Cline** | VS Code extension | `~/...globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json` |
455
- | **Continue.dev** | VS Code, JetBrains | `~/.continue/config.json` |
456
- | **Windsurf (Codeium)** | macOS, Windows, Linux | `~/.codeium/windsurf/mcp_config.json` |
457
- | **Roo Code** | VS Code extension | `~/...globalStorage/rooveterinaryinc.roo-cline/settings/mcp_settings.json` |
458
- | **Claude Code CLI** | Terminal | `~/.claude.json` |
459
- | **Amazon Q Developer** | AWS | `~/.aws/amazonq/mcp.json` |
460
-
461
- </details>
462
-
463
- ## Available tools
464
-
465
- <details open>
466
- <summary><strong>379 tools by category (100% Sell API coverage)</strong></summary>
467
-
468
- **379 tools**, 100% Sell API coverage, organized by category. Each link points to the tool definitions and handlers in the per-family folders under [`src/ebay-apis/`](src/ebay-apis/):
469
-
470
- | Category | What you can do |
471
- | --- | --- |
472
- | [Connector](src/server/connectorTools.ts) | ChatGPT connector search/fetch tools over the eBay MCP catalogue |
473
- | [Account](src/ebay-apis/account/accountTools.ts) | Business, fulfillment, payment, and return policies; programs; subscriptions; sales tax; rate tables, payout settings, combined shipping rules, and user preferences ([`accountV2.ts`](src/ebay-apis/account/accountV2Tools.ts), Account API v2) |
474
- | [Finances](src/ebay-apis/finances/financesTools.ts) | Payouts, transactions, transfers, seller funds, billing activity, order earnings |
475
- | [Inventory](src/ebay-apis/inventory/inventoryTools.ts) | Inventory items, offers, locations, item groups, bulk operations, SKU/location mapping, and local photo/video upload ([`media.ts`](src/ebay-apis/inventory/mediaTools.ts), Media API) |
476
- | [Feed](src/ebay-apis/feed/feedTools.ts) | Order, inventory, and customer-service-metric feed tasks; schedules and templates; feed file upload/download |
477
- | [Stores](src/ebay-apis/stores/storesTools.ts) | eBay Store details, store categories, category tasks |
478
- | [Fulfillment](src/ebay-apis/fulfillment/fulfillmentTools.ts) | Orders, shipping, refunds, disputes, payment-dispute evidence |
479
- | [Logistics](src/ebay-apis/logistics/logisticsTools.ts) | Shipping quotes, label purchase, shipments, label download (limited release) |
480
- | [Marketing](src/ebay-apis/marketing/marketingTools.ts) | Promoted-listings campaigns, ads, promotions, bidding, bulk operations |
481
- | [Analytics](src/ebay-apis/analytics/analyticsTools.ts) | Traffic reports, seller standards, customer-service metrics |
482
- | [Communication](src/ebay-apis/communication/communicationTools.ts) | Buyer–seller messaging, negotiations, notifications, feedback |
483
- | [Metadata](src/ebay-apis/metadata/metadataTools.ts) | Return policies, sales-tax jurisdictions, automotive compatibility, shipping carriers/services/locations, handling times |
484
- | [Taxonomy](src/ebay-apis/taxonomy/taxonomyTools.ts) | Category trees, item aspects, item conditions, expired categories, bulk aspect export, and charitable organizations ([`charity.ts`](src/ebay-apis/taxonomy/charityTools.ts), Charity API) |
485
- | [Other](src/ebay-apis/other/otherTools.ts) | Identity, VeRO, translation, and international shipping support APIs |
486
- | [Trading (legacy XML)](src/ebay-apis/trading/tradingTools.ts) | Fixed-price and auction listing create, revise, relist, end |
487
- | [Developer](src/ebay-apis/developer/developerTools.ts) | Rate limits, signing keys, client registration |
488
- | [Token Management](src/auth/tokenManagementTools.ts) | OAuth URL generation and token management |
489
-
490
- **Example tools:** `ebay_get_inventory_items`, `ebay_get_offers_by_skus`, `ebay_get_orders`, `ebay_create_offer`, `ebay_get_campaigns`, `ebay_get_oauth_url`.
491
-
492
- For the complete machine-readable index, see [llms.txt](llms.txt).
493
-
494
- </details>
495
-
496
- ## Interactive UI (MCP Apps)
497
-
498
- <details open>
499
- <summary><strong>Interactive table, card, chart &amp; stat views (beta)</strong></summary>
500
-
501
- > **Beta** — this feature is new and evolving alongside the MCP Apps spec, and host support is still rolling out. It is opt-in and falls back to plain JSON, so it never breaks existing clients. Toggle it with `EBAY_MCP_UI` (see [Configuration](#configuration)).
502
-
503
- On hosts that support [MCP Apps](https://modelcontextprotocol.io), common read tools render their results as interactive views instead of raw JSON — a sortable **table**, a detail **card**, a **chart**, or a **stat grid** — using the host's own theme. Everywhere else, the exact same tools return plain JSON, so nothing breaks. It is built on the official [MCP Apps SDK (`@modelcontextprotocol/ext-apps`)](https://github.com/modelcontextprotocol/ext-apps), the extension that lets MCP servers ship interactive UI to conversational clients.
79
+ Or add this to any MCP client config:
80
+
81
+ ```json
82
+ {
83
+ "mcpServers": {
84
+ "ebay": {
85
+ "command": "npx",
86
+ "args": ["-y", "ebay-mcp"],
87
+ "env": {
88
+ "EBAY_CLIENT_ID": "your_client_id",
89
+ "EBAY_CLIENT_SECRET": "your_client_secret",
90
+ "EBAY_ENVIRONMENT": "sandbox",
91
+ "EBAY_REDIRECT_URI": "your_runame",
92
+ "EBAY_USER_REFRESH_TOKEN": "your_refresh_token"
93
+ }
94
+ }
95
+ }
96
+ }
97
+ ```
504
98
 
505
- - **Opt-in and host-gated.** Views are advertised only to clients that announce the MCP Apps capability (e.g. Claude). Hosts without it (e.g. Cursor) silently get JSON.
506
- - **Kill-switch.** Set `EBAY_MCP_UI=off` to force plain JSON everywhere, even on capable hosts.
507
- - **Token-cheap.** Each view's HTML is fetched once by the host out of band (never into the model's context); the model only ever sees a one-line summary plus the structured data it would have received anyway.
508
- - **Read-only.** Views only ever trigger read tools (drill into a row, page, refresh) — they never mutate your eBay data.
99
+ ## Configuration
509
100
 
510
- 15 core-workflow tools opt in today, across four archetypes:
101
+ The setup wizard writes the variables for you. See [`.env.example`](.env.example) for the full list.
511
102
 
512
- | Archetype | Tools |
103
+ | Variable | Default | What it does |
104
+ | --- | --- | --- |
105
+ | `EBAY_CLIENT_ID`, `EBAY_CLIENT_SECRET` | none | Your eBay app keys. |
106
+ | `EBAY_ENVIRONMENT` | `sandbox` | `sandbox` or `production`. |
107
+ | `EBAY_REDIRECT_URI` | none | The RuName used for OAuth sign-in. |
108
+ | `EBAY_USER_REFRESH_TOKEN` | none | User token for higher rate limits. |
109
+ | `EBAY_OAUTH_SCOPES` | default scopes | Replaces the requested scope list. Keep the scopes you need. |
110
+ | `EBAY_MARKETPLACE_ID` | `EBAY_US` | Default marketplace, overridable per tool. |
111
+ | `EBAY_SITE_ID` | from marketplace | Trading API site override. |
112
+ | `EBAY_CONTENT_LANGUAGE` | `en-US` | Default request content language. |
113
+ | `EBAY_MCP_TOOLS` | `all` | Which tools are advertised. See below. |
114
+ | `EBAY_READ_ONLY` | `false` | When `true`, only read-only tools are registered. |
115
+ | `EBAY_MCP_UI` | `on` | `off` forces plain JSON instead of interactive views. |
116
+ | `EBAY_MCP_MEDIA_DIRS`, `EBAY_MCP_MEDIA_ROOT` | none | Directories the media and feed upload tools may read. Off until set. |
117
+ | `EBAY_SIGNING_KEY_JWE`, `EBAY_SIGNING_PRIVATE_KEY` | none | Digital Signatures for EU and UK sellers. Both come from `ebay_create_signing_key`. |
118
+ | `MCP_PORT`, `MCP_HOST`, `MCP_AUTH_TOKEN`, `MCP_CORS_ORIGINS` | none | HTTP mode settings. See [Run over HTTP](#run-over-http). |
119
+
120
+ ### Tool exposure
121
+
122
+ A full catalogue takes a lot of context window. `EBAY_MCP_TOOLS` shrinks it:
123
+
124
+ | Value | Behavior |
513
125
  | --- | --- |
514
- | **Table** | `ebay_get_orders`, `ebay_get_shipping_fulfillments`, `ebay_get_offers`, `ebay_get_inventory_items`, `ebay_get_inventory_locations`, `ebay_get_payment_dispute_summaries` |
515
- | **Card** | `ebay_get_order`, `ebay_get_offer`, `ebay_get_inventory_item`, `ebay_get_payment_dispute`, `ebay_get_seller_standards_profile` |
516
- | **Chart** | `ebay_get_traffic_report`, `ebay_get_customer_service_metric` |
517
- | **Stat** | `ebay_get_rate_limits`, `ebay_get_user_rate_limits` |
518
-
519
- The views build into self-contained HTML with `pnpm build` (or `pnpm build:mcp-apps`); they ship in the published package and load with no network access of their own.
520
-
521
- </details>
522
-
523
- ## Usage examples
524
-
525
- Common tasks, phrased as you'd ask your AI assistant:
526
-
527
- - **Set up OAuth** — *"Help me set up OAuth for my eBay account."* → generates an authorization URL via `ebay_get_oauth_url`, then configures the refresh token. Unlocks 10k–50k req/day.
528
- - **Manage inventory** — *"Show me all my active listings."* → `ebay_get_inventory_items` returns SKUs, quantities, and status.
529
- - **Add photos to a listing** — *"Attach the three photos in ~/listings/megadrive to SKU MD-001."* → `ebay_attach_media_to_inventory_item` uploads them to eBay Picture Services and updates `product.imageUrls` (with `EBAY_MCP_MEDIA_DIRS` allowing that folder).
530
- - **Run an auction** — *"List this SKU as a 7-day auction starting at $9.99 with a $25 reserve."* → `ebay_create_offer` with `format: "AUCTION"`, `auctionStartPrice`, `auctionReservePrice`, and `listingDuration: "DAYS_7"`, then `ebay_publish_offer`. On the legacy path, `ebay_create_listing` with `format: "AUCTION"` and a Trading `Item` (`StartPrice`, `ReservePrice`, `ListingDuration: "Days_7"`).
531
- - **Look up offers** — `ebay_get_offers` returns offers for one required SKU. To enumerate offers across the inventory, call `ebay_get_inventory_items` first, then call `ebay_get_offers` once per SKU.
532
- - **Manage fulfillment policies** — *"Create a shipping policy, then update its handling time."* → `ebay_create_fulfillment_policy` creates the reusable policy ID and `ebay_update_fulfillment_policy` replaces its settings.
533
- - **Process orders** — *"Get all unfulfilled orders from the last 7 days."* → `ebay_get_orders` with date and fulfillment-status filters.
534
- - **Create campaigns** — *"Create a promoted-listing campaign for electronics."* → `ebay_create_campaign` and related marketing tools.
535
- - **Bulk operations** — *"Apply a 10% discount to all 'Vintage Watches' items."* → `ebay_get_inventory_items` + `ebay_update_offer` across matches.
536
-
537
- ## Scope and safety
538
-
539
- - **Unofficial project.** This is not an eBay product and does not grant any additional API rights beyond your own eBay Developer account.
540
- - **Local server, live APIs.** The MCP server runs on your machine, but tools still call eBay's sandbox or production APIs over the internet.
541
- - **Mutating tools can change seller data.** Inventory, fulfillment, marketing, account, feed, stores, and Trading tools may create, revise, refund, end, or otherwise update eBay records, and `ebay_create_shipment_from_shipping_quote` purchases postage. Test in sandbox first.
542
- - **Tool exposure is configurable.** Use `EBAY_MCP_TOOLS=dynamic` or a family list when you want a smaller, workflow-specific tool surface.
543
- - **Interactive views are read-only.** MCP Apps views can page, refresh, and drill into read tools, but they do not mutate eBay data.
544
- - **Compliance remains yours.** Keep credentials secure, monitor rate limits, and follow eBay's API terms and data-handling rules.
545
-
546
- ## Logging & troubleshooting
547
-
548
- - **Logging** — Winston-based, written to stderr (MCP-safe) with optional file output.
549
- - **Troubleshooting** — server not appearing, auth errors, rate limits, empty results. Start with `npm run diagnose`.
550
-
551
- ## FAQ
552
-
553
- <details>
554
- <summary><strong>What is the eBay MCP server?</strong></summary>
555
-
556
- A local [Model Context Protocol](https://modelcontextprotocol.io) server that exposes **379 tools** covering **100% of the eBay Sell, Commerce and Developer APIs it tracks** (356 endpoints) to AI assistants — inventory, order fulfillment, marketing, analytics, and developer tools.
557
-
558
- </details>
559
-
560
- <details>
561
- <summary><strong>Is this an official eBay product?</strong></summary>
562
-
563
- No. This is an unofficial, third-party open-source project. It is **not affiliated with, authorized, or endorsed by eBay Inc.**
564
-
565
- </details>
566
-
567
- <details>
568
- <summary><strong>Which AI assistants and MCP clients are supported?</strong></summary>
569
-
570
- Nine clients are auto-configured by `npm run setup`: Claude Desktop, Cursor, Zed, Cline, Continue.dev, Windsurf, Roo Code, Claude Code CLI, and Amazon Q Developer. Any MCP-compatible client can connect.
571
-
572
- </details>
573
-
574
- <details>
575
- <summary><strong>Can I use it with Claude, ChatGPT, or Cursor?</strong></summary>
576
-
577
- Yes. It works with Claude Desktop and Claude Code out of the box, with Cursor and other MCP-enabled IDEs, and with any assistant that supports the Model Context Protocol. The one-click setup prompt above works with ChatGPT and other assistants too.
578
-
579
- </details>
580
-
581
- <details>
582
- <summary><strong>Why don't I see the interactive tables and charts?</strong></summary>
583
-
584
- Interactive [MCP Apps](#interactive-ui-mcp-apps) views only appear on hosts that announce the capability (e.g. Claude); other clients get the same data as plain JSON. Also confirm you have not set `EBAY_MCP_UI=off` and that the views are built (`pnpm build` runs `build:mcp-apps`).
585
-
586
- </details>
587
-
588
- <details>
589
- <summary><strong>How many eBay APIs and tools does it cover?</strong></summary>
126
+ | `all` (default) | Every tool is advertised at startup. |
127
+ | `dynamic` | Three discovery tools (`list_ebay_tools`, `enable_ebay_tools`, `disable_ebay_tools`). The agent loads only the tools it needs. Needs a host that supports `tools/listChanged`, such as Claude. |
128
+ | `inventory,fulfillment` | Only the named families, fixed for the session. Works on every host. |
590
129
 
591
- 379 tools across 356 unique endpoints — 100% of the eBay Sell, Commerce and Developer APIs it tracks.
130
+ The family list is literal. ChatGPT connectors need the `connector` family, for example `EBAY_MCP_TOOLS=connector,inventory`. An unknown family name fails at startup and prints the valid names.
592
131
 
593
- </details>
132
+ ### Read-only mode
594
133
 
595
- <details>
596
- <summary><strong>Is it free and open source?</strong></summary>
134
+ Set `EBAY_READ_ONLY=true` to register only tools that read data (gets, lists, searches). Use it for first runs and for reporting assistants.
597
135
 
598
- Yes. It is released under the [MIT license](LICENSE).
136
+ ### Authentication and rate limits
599
137
 
600
- </details>
601
-
602
- <details>
603
- <summary><strong>Does it run locally or in the cloud?</strong></summary>
604
-
605
- It runs entirely on your machine over STDIO (or local HTTP). There is no cloud relay — your eBay credentials never leave your computer.
606
-
607
- </details>
608
-
609
- <details>
610
- <summary><strong>What do I need to get started?</strong></summary>
611
-
612
- Node.js ≥ 24, a free [eBay Developer Account](https://developer.ebay.com/) (Client ID + Client Secret), then run `npm run setup`.
613
-
614
- </details>
615
-
616
- <details>
617
- <summary><strong>What are the eBay API rate limits?</strong></summary>
618
-
619
- Client credentials (the default) allow about 1,000 requests/day. Authenticating with a user token via OAuth raises this to 10,000–50,000 requests/day depending on your account tier.
620
-
621
- </details>
622
-
623
- <details>
624
- <summary><strong>Does it support both sandbox and production?</strong></summary>
625
-
626
- Yes. Switch with the `EBAY_ENVIRONMENT` variable (`sandbox` or `production`).
627
-
628
- </details>
629
-
630
- <details>
631
- <summary><strong>Are my credentials and data secure?</strong></summary>
632
-
633
- Credentials are stored locally in your `.env` file and used only to call eBay directly.
634
-
635
- </details>
636
-
637
- <details>
638
- <summary><strong>How is this different from calling the eBay API directly?</strong></summary>
639
-
640
- You interact in natural language through your AI assistant. OAuth token management, automatic retries with backoff, and type-safe Zod validation are built in. See the [comparison table](#ebay-mcp-vs-the-raw-ebay-api) above.
641
-
642
- </details>
138
+ | Mode | Daily limit | Setup |
139
+ | --- | --- | --- |
140
+ | Client credentials (default) | 1,000 requests | Automatic with Client ID and Secret. |
141
+ | User token (recommended) | 10,000 to 50,000 requests, by account tier | OAuth through the setup wizard. |
643
142
 
644
- <details>
645
- <summary><strong>Can it upload my photos and videos?</strong></summary>
143
+ On a `429` the server retries with exponential backoff, then reports the error. Track usage in the [Developer Portal](https://developer.ebay.com/my/api_usage).
646
144
 
647
- Yes. `ebay_upload_images`, `ebay_upload_video`, and `ebay_attach_media_to_inventory_item` read local files (absolute paths or `media://` references) and upload them through eBay's Media API, returning EPS image URLs and video IDs for `product.imageUrls` / `product.videoIds`. `ebay_upload_feed_task_file` uploads local feed files the same way. Filesystem access is opt-in: nothing is readable until `EBAY_MCP_MEDIA_DIRS` or `EBAY_MCP_MEDIA_ROOT` names the directories. See [Photos and videos from local files](#photos-and-videos-from-local-files).
145
+ ## Tools
648
146
 
649
- </details>
147
+ Each family below is a valid `EBAY_MCP_TOOLS` value. The table is generated from the tool registry with `pnpm readme:tools`.
650
148
 
651
- <details>
652
- <summary><strong>Does it support auction listings?</strong></summary>
149
+ <!-- tool-families:start -->
150
+ | Family (`EBAY_MCP_TOOLS` key) | Title | Tools | Example tool |
151
+ | --- | --- | --- | --- |
152
+ | `connector` | Connector | 2 | `search` |
153
+ | `token-management` | Token Management | 10 | `ebay_get_oauth_url` |
154
+ | `account` | Account | 51 | `ebay_get_custom_policies` |
155
+ | `finances` | Finances | 11 | `ebay_get_order_earnings` |
156
+ | `inventory` | Inventory | 49 | `ebay_get_document` |
157
+ | `feed` | Feed | 23 | `ebay_get_order_tasks` |
158
+ | `stores` | Stores | 8 | `ebay_get_store` |
159
+ | `fulfillment` | Fulfillment | 17 | `ebay_get_cancellation_requests` |
160
+ | `logistics` | Logistics | 6 | `ebay_get_shipping_quote` |
161
+ | `marketing` | Marketing | 81 | `ebay_get_ads` |
162
+ | `analytics` | Analytics | 4 | `ebay_get_traffic_report` |
163
+ | `metadata` | Metadata | 27 | `ebay_get_exclude_shipping_locations` |
164
+ | `taxonomy` | Taxonomy | 8 | `ebay_fetch_item_aspects` |
165
+ | `communication` | Communication | 33 | `ebay_find_eligible_items` |
166
+ | `browse` | Browse | 2 | `ebay_find_active_items` |
167
+ | `other` | Other | 34 | `ebay_get_user` |
168
+ | `developer` | Developer | 7 | `ebay_get_api_status` |
169
+ | `trading` | Trading | 6 | `ebay_get_active_listings` |
170
+ <!-- tool-families:end -->
653
171
 
654
- Yes, through the REST Inventory offer tools: create the offer with `format: "AUCTION"`, an `auctionStartPrice`, an optional `auctionReservePrice`, and a day-count `listingDuration`, then publish it. See [Auction offers](#auction-offers). The legacy Trading API tools take the same switch: `ebay_create_listing` with `format: "AUCTION"` sends `AddItem` with `ListingType` Chinese, an opening-bid `StartPrice`, and a day-count `ListingDuration`.
172
+ The full searchable tool list is on the [website](https://yosefhayim.github.io/ebay-mcp/).
655
173
 
656
- </details>
174
+ Local media uploads support JPG, PNG, GIF, BMP, TIFF, WEBP, AVIF and HEIC up to 12 MB, and MP4 or MOV up to 150 MB. Files outside `EBAY_MCP_MEDIA_DIRS` or `EBAY_MCP_MEDIA_ROOT` are refused, and symlinks are checked before any upload.
657
175
 
658
- <details>
659
- <summary><strong>Does it support eBay's legacy Trading API (XML)?</strong></summary>
176
+ ## MCP Apps (interactive UI cards)
660
177
 
661
- Yes. Listing create, revise, relist, and end operations are supported through the Trading API tools, for fixed-price listings (`AddFixedPriceItem` family, the default) and for auctions (`format: "AUCTION"` → `AddItem`, `ReviseItem`, `EndItem`, `RelistItem`).
178
+ On hosts that support [MCP Apps](https://modelcontextprotocol.io), 15 core read tools show their results as sortable tables, detail cards, charts and stat grids instead of raw JSON. Other hosts get the same data as plain JSON. Set `EBAY_MCP_UI=off` to turn the views off. The views are read-only and are built by `pnpm build`.
662
179
 
663
- </details>
180
+ ## Run over HTTP
664
181
 
665
- <details>
666
- <summary><strong>How do I get higher rate limits?</strong></summary>
182
+ The Docker image starts the HTTP server (`node build/serverHttp.js`) on port 3000. Set `MCP_AUTH_TOKEN` to require a static Bearer token. Set `MCP_CORS_ORIGINS` to allow browser origins other than loopback. See the [Dockerfile](Dockerfile) and [docker-compose.yml](docker-compose.yml).
667
183
 
668
- Complete the OAuth flow with `npm run setup` to authenticate with a user token (10k–50k requests/day instead of the default 1k).
184
+ ## Safety and scope
669
185
 
670
- </details>
186
+ - Test in the sandbox first. Tools that create, revise, refund, end or buy (for example postage) change real eBay records in production.
187
+ - Use `EBAY_READ_ONLY=true` or a short `EBAY_MCP_TOOLS` list to limit what the assistant can do.
188
+ - Your credentials stay on your machine and go only to eBay.
189
+ - You must follow the [eBay API License Agreement](https://developer.ebay.com/join/api-license-agreement) and the [data-handling requirements](https://developer.ebay.com/api-docs/static/data-handling-update.html), and stay within rate limits.
190
+ - The software is provided "as is" without warranty. See [LICENSE](LICENSE).
671
191
 
672
- <details>
673
- <summary><strong>What is it built with?</strong></summary>
192
+ ## Troubleshooting
674
193
 
675
- TypeScript and Node.js (ESM), using the official MCP SDK, Zod schemas for tool inputs, Effect for typed async errors, and OpenAPI-generated types.
194
+ Run `npm run diagnose` first. Logs go to stderr so they never break the MCP stream.
676
195
 
677
- </details>
196
+ - **Server not listed in the client:** restart the client and check the config path the wizard printed.
197
+ - **Auth errors:** check the keys, the environment and the RuName. Run the setup wizard again to refresh tokens.
198
+ - **`403 Missing x-ebay-signature-key`:** EU and UK sellers need Digital Signatures. Set both signing variables.
199
+ - **Empty results:** check `EBAY_MARKETPLACE_ID` and whether you are on sandbox or production.
200
+ - **No interactive views:** the host must support MCP Apps, and `EBAY_MCP_UI` must not be `off`.
678
201
 
679
- <details>
680
- <summary><strong>How do I update to the latest version?</strong></summary>
202
+ ### FAQ
681
203
 
682
- Run `npm install -g ebay-mcp@latest` (or `npm update -g ebay-mcp`).
204
+ **Does it work offline?** No. The server runs locally but calls eBay's live APIs.
683
205
 
684
- </details>
206
+ **Sandbox and production?** Both. Switch with `EBAY_ENVIRONMENT`.
685
207
 
686
- <details>
687
- <summary><strong>Does it work offline?</strong></summary>
208
+ **Can I use it with ChatGPT?** Yes, with the `connector` family. See Tool exposure.
688
209
 
689
- No. "Runs locally" means the server process runs on your machine — it still needs an internet connection and valid credentials to reach eBay's live APIs.
210
+ **Does it support auctions and the Trading API?** Yes. Offers take `format: "AUCTION"`, and the `trading` family covers legacy XML listings.
690
211
 
691
- </details>
212
+ **How do I update?** Run `npm install -g ebay-mcp@latest`.
692
213
 
693
214
  ## Contributing
694
215
 
695
- Contributions welcome. Fork → branch → add tests → run the checks below → commit with [Conventional Commits](https://www.conventionalcommits.org/) → open a PR.
216
+ Fork, branch, add tests, run the checks, then open a PR with [Conventional Commits](https://www.conventionalcommits.org/).
696
217
 
697
218
  ```bash
698
- pnpm typecheck && pnpm typecheck:mcp-apps # TypeScript (server + MCP Apps views)
699
- pnpm check:ci # Biome lint + format
700
- pnpm test && pnpm test:integration # Vitest unit + integration
701
- pnpm build # Build to build/
219
+ pnpm lint && pnpm typecheck && pnpm typecheck:mcp-apps
220
+ pnpm test && pnpm build
221
+ pnpm readme:tools # regenerate the tool family table
702
222
  ```
703
223
 
704
- To run the CI gate locally in Docker before pushing, use [act](https://nektosact.com): `act workflow_dispatch -W .github/workflows/ci.yml`. The machine `~/.actrc` selects the runner, architecture and shared caches.
705
-
706
- ## Resources
707
-
708
- Project docs:
709
-
710
- - [llms.txt](llms.txt) — a compact project summary for AI agents.
711
- - [Releases](https://github.com/YosefHayim/ebay-mcp/releases) and the [Issue Tracker](https://github.com/YosefHayim/ebay-mcp/issues).
712
-
713
- Official specs and tooling:
714
-
715
- - [eBay Developer Portal](https://developer.ebay.com/), [Sell API docs](https://developer.ebay.com/api-docs/sell/static/overview.html), [API License Agreement](https://developer.ebay.com/join/api-license-agreement), [Data Handling Requirements](https://developer.ebay.com/api-docs/static/data-handling-update.html), and [API Status](https://developer.ebay.com/support/api-status).
716
- - [Model Context Protocol](https://modelcontextprotocol.io/) and the [MCP Apps SDK](https://github.com/modelcontextprotocol/ext-apps).
717
- - [Node.js](https://nodejs.org/en), [npm package](https://www.npmjs.com/package/ebay-mcp), [TypeScript](https://www.typescriptlang.org/), [Zod](https://zod.dev/), [Effect](https://effect.website/docs), [Biome](https://biomejs.dev/), [Vitest](https://vitest.dev/), and [GitHub Actions](https://docs.github.com/en/actions).
718
- - [Claude Code](https://code.claude.com/docs/en/overview) and [llms.txt](https://llmstxt.org/).
719
-
720
224
  ## License
721
225
 
722
- MIT — see [LICENSE](LICENSE).
226
+ MIT. See [LICENSE](LICENSE).
723
227
 
724
- ## Contributors
725
-
726
- Thanks to everyone who has helped make this project better! 🎉
727
-
728
- <a href="https://github.com/YosefHayim/ebay-mcp/graphs/contributors">
729
- <img src="https://contrib.rocks/image?repo=YosefHayim/ebay-mcp" alt="eBay MCP contributors" />
730
- </a>
731
-
732
- ---
228
+ eBay is a trademark of eBay Inc. This project is not affiliated with or endorsed by eBay Inc.
733
229
 
734
230
  <div align="center">
735
-
736
- <a href="https://www.buymeacoffee.com/yosefhayim" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="48" /></a>
737
-
738
- <br /><br />
739
-
740
- **[Support this project](https://www.buymeacoffee.com/yosefhayim)** · Created by [Yosef Hayim Sabag](https://github.com/YosefHayim)
741
-
742
- <sub>eBay MCP server · Model Context Protocol for eBay Sell APIs · connect Claude, Cursor, and any AI assistant to eBay inventory, orders, marketing, and analytics.</sub>
743
-
231
+ <a href="https://www.buymeacoffee.com/yosefhayim"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="48" /></a>
744
232
  </div>
@@ -203,7 +203,7 @@ export const createHttpMcpApp = async (config) => {
203
203
  app.use(express.json());
204
204
  app.use(helmet({ xPoweredBy: false }));
205
205
  app.use(createRequestLogger());
206
- app.use('/icons', express.static(join(config.projectRoot, 'public', 'icons')));
206
+ app.use('/icons', express.static(join(config.projectRoot, 'assets', 'icons')));
207
207
  app.use(createMetadataRouter({
208
208
  resourceServerUrl: serverUrl,
209
209
  authServerMetadata: getAuthServerMetadataUrl(config),
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "ebay-mcp",
3
- "version": "2.0.8",
3
+ "mcpName": "io.github.YosefHayim/ebay-mcp",
4
+ "version": "2.0.10",
4
5
  "description": "Model Context Protocol (MCP) server that exposes 100% of the eBay Sell, Commerce and Developer APIs it tracks (379 tools across 356 endpoints) to AI assistants like Claude, Cursor, and Cline, covering inventory, order fulfillment, marketing, analytics, and developer tools with OAuth authentication and refresh-token support.",
5
6
  "type": "module",
6
7
  "main": "build/index.js",
@@ -111,6 +112,7 @@
111
112
  "sync": "tsx scripts/devSync.ts",
112
113
  "diagnose": "node build/cli/diagnostics.js",
113
114
  "typecheck": "tsc --noEmit --incremental --tsBuildInfoFile node_modules/.cache/tsc/src.tsbuildinfo && tsc -p tsconfig.scripts.json --noEmit && tsc -p site/tsconfig.json --noEmit",
115
+ "readme:tools": "tsx scripts/buildReadmeToolTable.ts",
114
116
  "catalog": "tsx scripts/buildToolCatalog.ts build/tool-catalog.json",
115
117
  "typecheck:mcp-apps": "tsc -p src/mcp-apps/tsconfig.json --noEmit",
116
118
  "check": "turbo run lint typecheck typecheck:mcp-apps test build --output-logs=errors-only",