Skip to content

Menu

eBay MCP Server logo

eBay MCP Server

Published

At a glance

GitHub repository
eBay/npm-public-api-mcp
Watch out for
Against production, REST access is limited to GET requests and GraphQL to queries, so it cannot create or edit listings, orders or anything else.

eBay publishes this server itself, under its own GitHub organization and as the npm package @ebay/npm-public-api-mcp. It gives an AI assistant a way to find and call eBay's public marketplace APIs, both the REST APIs described by eBay's OpenAPI specs and the GraphQL API, without the developer having to know which endpoint does what.

It runs locally over stdio, launched with npx or from a source build, and needs Node.js 22 or newer. You supply an eBay application's Client ID and Client Secret, and the server handles OAuth token generation and refreshes the token roughly every two hours.

The design is deliberately cautious. Against production it only issues REST GET requests and GraphQL queries, so in this release it reads marketplace data and does not change listings or orders. Two token modes decide what it can see: an application token for public data such as item search, or a user token, built from a refresh token, for an account's private data.

How it connects

Your AI app

An assistant or agent that supports MCP

eBay MCP Server

Runs as

  • npx (Node.js)

Gives the agent

  • REST API discovery
  • REST API calls
  • GraphQL schema discovery
  • GraphQL queries
  • Request interpretation prompts
  • Token handling

eBay

Signs in with

  • OAuth / browser sign-in
  • App credentials
Your AI app talks to eBay MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

REST API discovery
query_ebay_api searches eBay's OpenAPI specifications from a plain-language prompt, for example to find which API handles item search or what parameters the Browse API's getItem endpoint takes.
REST API calls
call_ebay_api executes the request against eBay's live APIs and returns the data, usually after query_ebay_api has picked the endpoint.
GraphQL schema discovery
query_ebay_graphql searches eBay's GraphQL schema for queries, types and fields, such as the fields available on the Order type.
GraphQL queries
call_ebay_graphql runs a GraphQL query and returns live marketplace data, for instance a listing's title, price and seller.
Request interpretation prompts
Two MCP prompts, interpret_user_request and interpret_graphql_request, take the user's request as user_input and help the client decide whether to search the spec first or call a known endpoint.
Token handling
EBAY_TOKEN_TYPE switches between application and user tokens; in application mode EBAY_REQUIRED_SCOPES sets the OAuth scopes, and in user mode the scopes come from the refresh token.

Setting it up

Create an application at developer.ebay.com/my/keys to get a Client ID and Client Secret. For Claude Code in application token mode the README gives: claude mcp add --scope user ebay-api -e EBAY_CLIENT_ID=your_client_id -e EBAY_CLIENT_SECRET=your_client_secret -e EBAY_TOKEN_TYPE=application -e EBAY_REQUIRED_SCOPES=your_required_scopes -e EBAY_API_ENV=production -- npx -y @ebay/npm-public-api-mcp. For a user's private data, set EBAY_TOKEN_TYPE=user and pass EBAY_REFRESH_TOKEN instead of the scopes; the refresh token comes from eBay's OAuth authorization code grant. Clients that use a JSON config, such as Claude Desktop or Cursor, get an mcpServers entry named ebay-api with command npx, args ["-y", "@ebay/npm-public-api-mcp"] and the same variables in env. If EBAY_REQUIRED_SCOPES is left out it defaults to https://api.ebay.com/oauth/api_scope. To run from source, clone the repo, run npm install and npm run build, and point the client at node with dist/index.js. Restart the client afterwards.

Run in a terminal
claude mcp add ebay -- npx -y @ebay/npm-public-api-mcp

Runs the @ebay/npm-public-api-mcp package from npm. Add any API keys, environment variables or extra arguments the setup notes above list. Combine several servers in the MCP config generator

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Search eBay for a product by keyword and summarise the top listings with prices.
  • Pull full details for a specific item ID while researching a listing or a competitor.
  • Work out which eBay API and parameters a planned integration needs before writing any code.
  • Check a seller account's orders and their status through a user token.
  • Browse eBay's taxonomy categories to pick the right category for a product.

Limitations and things to watch

  • Against production, REST access is limited to GET requests and GraphQL to queries, so it cannot create or edit listings, orders or anything else.
  • The README says the sandbox environment is not supported in this release, even though EBAY_API_ENV exists.
  • What the agent can reach depends on your OAuth scopes or refresh token, and a user token exposes that account's private data to the assistant.
  • It needs Node.js 22 or higher and an eBay developer account with its own keys.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…