---
title: "eBay Integration"
description: "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:

```typescript
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:

```typescript
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:

```typescript
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:

```typescript
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:

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

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

## Configuration Options

<AutoTypeTable
  path="../src/integrations/ebay.ts"
  name="EbayIntegrationConfig"
/>


## 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

<AutoTypeTable
  path="generated/tool-params/ebay.ts"
  name="EbaySearchItemsParams"
/>

### `ebay_get_item`

Get item

<AutoTypeTable
  path="generated/tool-params/ebay.ts"
  name="EbayGetItemParams"
/>

### `ebay_get_privileges`

Get privileges

_No parameters._

### `ebay_list_inventory_items`

List inventory items

<AutoTypeTable
  path="generated/tool-params/ebay.ts"
  name="EbayListInventoryItemsParams"
/>

### `ebay_create_or_replace_inventory_item`

Create or replace inventory item

<AutoTypeTable
  path="generated/tool-params/ebay.ts"
  name="EbayCreateOrReplaceInventoryItemParams"
/>

### `ebay_list_offers`

List offers

<AutoTypeTable
  path="generated/tool-params/ebay.ts"
  name="EbayListOffersParams"
/>

### `ebay_create_offer`

Create offer

<AutoTypeTable
  path="generated/tool-params/ebay.ts"
  name="EbayCreateOfferParams"
/>

### `ebay_list_orders`

List orders

<AutoTypeTable
  path="generated/tool-params/ebay.ts"
  name="EbayListOrdersParams"
/>

### `ebay_get_order`

Get order

<AutoTypeTable
  path="generated/tool-params/ebay.ts"
  name="EbayGetOrderParams"
/>

## Notes

- Category: Commerce
- Authentication mode: OAuth
