Seamlessly integrate eBay's APIs into your AI assistant workflow. This MCP server enables Claude Desktop, Cursor, Cline, and other AI tools to discover and call eBay marketplace APIs directly.
This MCP server gives your AI assistant superpowers to:
- π Search for eBay APIs - Find the right endpoint for any marketplace need
- π Browse API documentation - Get detailed specs, parameters, and examples
- π Make real API calls - Execute live requests to eBay's production or sandbox APIs
- π¬ Natural language interface - Just describe what you want, no need to memorize endpoints
You'll need an eBay developer account and API token. Get one by running:
curl -v https://api.ebay.com/identity/v1/oauth2/token \
-H "Accept: application/json" \
-H "Accept-Language: en_US" \
-u "YOUR_CLIENT_ID:YOUR_CLIENT_SECRET" \
-d "grant_type=client_credentials&scope=scopes"scopes must be URL encoded value of space seperated scope values
For sandbox testing, use https://api.sandbox.ebay.com/identity/v1/oauth2/token
The easiest way to use this server is via npx:
EBAY_CLIENT_TOKEN='your_token_here' EBAY_API_ENV='production' npx @ebay/npm-public-api-mcp@latestThat's it! The server is now running and ready to be connected to your AI assistant.
Add to your Claude Desktop configuration:
{
"mcpServers": {
"ebay-api": {
"command": "npx",
"args": [
"-y",
"@ebay/npm-public-api-mcp@latest"
],
"env": {
"EBAY_CLIENT_TOKEN": "YOUR_ACCESS_TOKEN",
"EBAY_API_ENV": "production"
}
}
}
}Create .vscode/mcp.json in your project:
{
"servers": {
"ebay-api": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ebay/npm-public-api-mcp@latest"
],
"env": {
"EBAY_API_ENV": "production",
"EBAY_CLIENT_TOKEN": "YOUR_ACCESS_TOKEN"
}
}
}
}Configure in Cursor's MCP settings using the same JSON structure as Claude Desktop.
Once connected, ask your AI assistant things like:
-
"Find eBay APIs for listing products"
- Discovers endpoints for creating and managing listings
-
"Search for order management APIs"
- Returns APIs for processing orders, shipping, and fulfillment
-
"Get details about the findItemsByKeywords endpoint"
- Shows parameters, response format, and usage examples
-
"Call the getItem API for item ID 123456789"
- Makes a real API call and returns the item details
-
"What APIs can I use for inventory management?"
- Finds all relevant inventory APIs with documentation
| Variable | Description | Default |
|---|---|---|
EBAY_CLIENT_TOKEN |
Your eBay API access token (required) | - |
EBAY_API_ENV |
API environment: "sandbox" or "production" | "production" |
This server provides access to eBay's complete API ecosystem:
- Selling APIs: Listings, inventory, orders, fulfillment
- Buying APIs: Shopping, checkout, bidding
- Commerce APIs: Catalog, taxonomy, translation
- Marketing APIs: Promotions, campaigns, analytics
- Developer APIs: Analytics, metadata, notifications
- Verify your token hasn't expired (tokens typically last 2 hours)
- Ensure you're using the correct environment (sandbox vs production)
- Check that your app has the necessary scopes
- Some APIs may be restricted based on your eBay developer account type
- Verify the API name and try searching with different keywords
- Make sure npx is installed and working:
npx --version - Check that Node.js version 22+ is installed:
node --version - Verify environment variables are set correctly
- eBay API Documentation: developer.ebay.com
- MCP Protocol: modelcontextprotocol.io
- Issues: Open an issue in this repository
Apache 2.0 - See LICENSE for more information.