eBay MCP Server

eBay MCP Server

Enables AI assistants to search eBay listings, track item prices over time, and identify deals below market value using eBay's APIs. It provides tools for category browsing and retrieving detailed information for specific listings.

Category
Visit Server

README

eBay MCP Server

A Model Context Protocol (MCP) server for interacting with eBay's APIs. Enables AI assistants to search eBay listings, track prices, and find deals on homelab equipment and other items.

Features

āœ… Implemented (8 tools)

  • šŸ” Search eBay listings - Basic and advanced search with all filters
  • šŸ’° Price tracking - SQLite database tracks prices over time
  • šŸ“Š Deal detection - Analyzes market data to find bargains (15%+ below average)
  • šŸ“¦ Item details - Comprehensive info including seller reputation
  • šŸ“ˆ Price history - View trends with statistics (min/max/avg/median)
  • šŸ“‹ Watchlist - Track multiple items with custom alerts

🚧 Planned (12 tools)

  • šŸ·ļø Category browsing - Navigate eBay's category hierarchy
  • šŸ†• New listings - Fresh deals (last 6-24 hours)
  • ā° Ending soon - Auction sniper helper
  • šŸ“Š Market value - Price research tool

Status

🟢 MVP Complete - 8 core tools implemented and ready for testing!

See IMPLEMENTATION_STATUS.md for detailed progress.

Planned Tools

  • search_ebay - Search listings with filters (keywords, price, condition, category)
  • get_item_details - Get detailed information about a specific listing
  • track_price - Add an item to price tracking
  • get_price_history - View historical price data for tracked items
  • find_deals - Search for items below market value based on historical data

Requirements

  • Python 3.10+
  • eBay Developer Account (for API credentials)
  • MCP-compatible client (Claude Desktop, Cline, etc.)

Quick Start

  1. Get eBay API Credentials

    • Sign up at https://developer.ebay.com/
    • Create an application
    • Copy your App ID
  2. Install

    git clone https://github.com/hanku4u/ebay-mcp-server.git
    cd ebay-mcp-server
    pip install -e .
    
  3. Configure

    cp .env.example .env
    # Edit .env and add your EBAY_APP_ID
    
  4. Test

    python -m ebay_mcp
    # Server will start in stdio mode (MCP standard)
    

Configuration

Set your eBay API credentials as environment variables:

export EBAY_APP_ID="your-app-id"
export EBAY_CERT_ID="your-cert-id"
export EBAY_DEV_ID="your-dev-id"

Or create a .env file:

EBAY_APP_ID=your-app-id
EBAY_CERT_ID=your-cert-id
EBAY_DEV_ID=your-dev-id

Usage

With Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "ebay": {
      "command": "python",
      "args": ["-m", "ebay_mcp"],
      "env": {
        "EBAY_APP_ID": "your-app-id",
        "EBAY_CERT_ID": "your-cert-id",
        "EBAY_DEV_ID": "your-dev-id"
      }
    }
  }
}

Alternatively, use the FastMCP CLI:

```json
{
  "mcpServers": {
    "ebay": {
      "command": "fastmcp",
      "args": ["run", "path/to/ebay_mcp/server.py:mcp"],
      "env": {
        "EBAY_APP_ID": "your-app-id",
        "EBAY_CERT_ID": "your-cert-id",
        "EBAY_DEV_ID": "your-dev-id"
      }
    }
  }
}

With OpenClaw

Coming soon - will integrate with OpenClaw's MCP client capabilities.

HTTP Server (Remote Access)

Run as an HTTP server for remote access:

python -m ebay_mcp
# Or with FastMCP CLI:
fastmcp run src/ebay_mcp/server.py:mcp --transport http --port 8000

Then connect from any MCP client:

from fastmcp import Client

async with Client("http://localhost:8000/mcp") as client:
    result = await client.call_tool("search_ebay", {
        "keywords": "Dell PowerEdge R720",
        "max_price": 500
    })
    print(result)

eBay API Access

To use this server, you'll need eBay API credentials:

  1. Sign up for the eBay Developers Program
  2. Create a new application
  3. Generate your App ID, Cert ID, and Dev ID
  4. Choose the appropriate API: Finding API (for search) or Trading API (for account management)

Recurring Searches with OpenClaw

Example cron job for daily homelab equipment searches:

{
  "schedule": { "kind": "cron", "expr": "0 9 * * *", "tz": "America/Chicago" },
  "payload": {
    "kind": "agentTurn",
    "message": "Search eBay for homelab servers under $500 and summarize the best deals"
  },
  "sessionTarget": "isolated"
}

Architecture

Built using FastMCP - the fast, Pythonic way to build MCP servers. FastMCP powers 70% of MCP servers and makes it easy to create production-ready integrations with minimal boilerplate.

Example: Adding a Tool

Adding new tools is as simple as decorating a function:

from fastmcp import FastMCP

mcp = FastMCP("eBay MCP Server")

@mcp.tool
def search_ebay(
    keywords: str,
    max_price: float = None,
    condition: str = "New"
) -> dict:
    """Search eBay listings with filters"""
    # Implementation here
    return {...}

if __name__ == "__main__":
    mcp.run()  # Supports stdio and HTTP transports

FastMCP automatically:

  • Generates JSON schemas from type hints
  • Validates inputs with Pydantic
  • Handles MCP protocol serialization
  • Provides both stdio and HTTP transports

License

MIT

Contributing

Contributions welcome! This is an early-stage project focused on homelab deal hunting.

Author

Created by @hanku4u with AI assistance from RockLobster šŸ¦ž

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured