IntegrateIntegrate
Integrations

eBay Integration

Manage eBay browse, inventory, offers, orders, and fulfillment APIs

The eBay integration provides access to manage eBay browse, inventory, offers, orders, and fulfillment APIs through the Integrate MCP server.

Installation

The eBay integration is included with the SDK:

import { ebayIntegration } from "integrate-sdk/server";

Setup

1. Create an eBay OAuth App

  1. Create an OAuth application for eBay
  2. Configure your redirect URI
  3. Note your Client ID and Client Secret

2. Configure the Integration on Your Server

Add the eBay integration to your server configuration. The integration automatically reads EBAY_CLIENT_ID and EBAY_CLIENT_SECRET from your environment variables:

import { createMCPServer, ebayIntegration } from "integrate-sdk/server";

export const { client: serverClient } = createMCPServer({
  apiKey: process.env.INTEGRATE_API_KEY,
  integrations: [
    ebayIntegration({
      scopes: ["https://api.ebay.com/oauth/api_scope", "https://api.ebay.com/oauth/api_scope/sell.inventory", "https://api.ebay.com/oauth/api_scope/sell.fulfillment", "https://api.ebay.com/oauth/api_scope/sell.account"], // Optional
    }),
  ],
});

You can override the environment variables by passing explicit values:

ebayIntegration({
  clientId: process.env.CUSTOM_EBAY_ID,
  clientSecret: process.env.CUSTOM_EBAY_SECRET,
      scopes: ["https://api.ebay.com/oauth/api_scope", "https://api.ebay.com/oauth/api_scope/sell.inventory", "https://api.ebay.com/oauth/api_scope/sell.fulfillment", "https://api.ebay.com/oauth/api_scope/sell.account"], // Optional
});

3. Client-Side Usage

The default client automatically includes all integrations. You can use it directly:

import { client } from "integrate-sdk";

await client.authorize("ebay");
const result = await client.ebay.searchItems({});

console.log(result);

If you're using a custom client, add the integration to the integrations array:

import { createMCPClient, ebayIntegration } from "integrate-sdk";

const customClient = createMCPClient({
  integrations: [ebayIntegration()],
});

Configuration Options

Prop

Type

Default Scopes

These defaults are applied unless you override scopes in the integration config:

  • https://api.ebay.com/oauth/api_scope
  • https://api.ebay.com/oauth/api_scope/sell.inventory
  • https://api.ebay.com/oauth/api_scope/sell.fulfillment
  • https://api.ebay.com/oauth/api_scope/sell.account

Tools

ebay_search_items

Search items

Prop

Type

ebay_get_item

Get item

Prop

Type

ebay_get_privileges

Get privileges

No parameters.

ebay_list_inventory_items

List inventory items

Prop

Type

ebay_create_or_replace_inventory_item

Create or replace inventory item

Prop

Type

ebay_list_offers

List offers

Prop

Type

ebay_create_offer

Create offer

Prop

Type

ebay_list_orders

List orders

Prop

Type

ebay_get_order

Get order

Prop

Type

Notes

  • Category: Commerce
  • Authentication mode: OAuth

On this page