ebay-mcp

ebay-mcp

Enables interaction with eBay APIs for account verification, item search, and browsing via OAuth 2.0 authentication, with support for token refresh and sandbox/production environments.

Category
Visit Server

README

ebay-mcp

eBay Developers ProgramOAuth 2.0(User access token) で呼び出す REST API を、Cursor / Claude から使うための Model Context Protocol サーバーです。

実行には Python 3.10 以上が必要です。macOS の /usr/bin/python3 が 3.9 の場合は、/opt/homebrew/bin/python3.11 -m venv .venv のように新しいランタイムで仮想環境を作成してください。

対応していること

  • Commerce Identity — サインインしたアカウントのプロフィール検証(GET /commerce/identity/v1/user/
  • Buy Browseitem_summary/search と単品 item/{id} の取得
  • トークン更新EBAY_REFRESH_TOKEN があれば 401 時に自動でリフレッシュを試行(プロセス内のみ)
  • OAuth 補助ebay-mcp-auth で Authorization Code を取得し、mcp.json 用の env 断片を表示

環境変数(秘密情報はコードに書かない)

変数 例 / 説明
EBAY_ENV sandbox(既定)または production
EBAY_CLIENT_ID Developer Portal の App Id(OAuth Client Id)
EBAY_CLIENT_SECRET Cert Id(Client Secret)。漏洩したら Dev Console で Rotate / 再発行 してください
EBAY_ACCESS_TOKEN User access token(ebay-mcp-auth の出力)。未設定でも可 — App/Cert のみなら自動で OAuth application token(client_credentials)を取得して Browse を叩きます
EBAY_REFRESH_TOKEN 推奨(User モード時)。application のみ運用では不要
EBAY_ALLOW_APPLICATION_TOKEN true(既定)/ falsefalse にすると User トークン必須にできます
EBAY_APPLICATION_SCOPE application token 用 scope(既定 https://api.ebay.com/oauth/api_scope
EBAY_MARKETPLACE_ID 既定 EBAY_US(Browse 系でヘッダに付与)
EBAY_DEVELOPER_ID 任意。将来の Notification 等で使う場合に
EBAY_OAUTH_SCOPE ebay-mcp-auth 用。未指定なら Identity + ベーススコープ
EBAY_REDIRECT_URI ebay-mcp-auth 用。Dev Console に登録した Ru Name / Redirect URL と完全一致
EBAY_OAUTH_LOCAL_PORT 既定 8765(ローカルコールバック待受)

ユーザーがチャットなどに貼った Cert Id は無効化(ローテーション)済みとして扱いmcp.json の env のみへ再設定することを強く推奨します。

初回: ユーザートークンの取得(ebay-mcp-auth

  1. Keys → User Tokens (OAuth)Ru Name に次と一致する Redirect URL を登録
    (例)https://127.0.0.1:8765/callback
  2. 端末から:
cd projects/ebay-mcp
python -m venv .venv && source .venv/bin/activate
pip install -e .

export EBAY_ENV=sandbox
export EBAY_CLIENT_ID="<App Id>"
export EBAY_CLIENT_SECRET="<Cert Id>"
export EBAY_REDIRECT_URI="https://127.0.0.1:8765/callback"

python -m ebay_mcp.auth

ブラウザで eBay にサインインし、許可後に自動で localhost に戻ります。表示された mcp.json フラグメントenv を Cursor の MCP 設定へマージします。

コードだけ貼った場合は、リダイレクト URL に含まれる code= を次のように渡します。

ebay-mcp-auth --code '<code の値のみ>'

Browse 検索などで権限エラーになる場合は、Dev Console で 追加の OAuth scope に対応した Ru Name / アプリ権限があるか確認し、EBAY_OAUTH_SCOPE を拡張してください。

疎通

EBAY_ENV=sandbox EBAY_CLIENT_ID=... EBAY_CLIENT_SECRET=... EBAY_ACCESS_TOKEN=... EBAY_REFRESH_TOKEN=... \\
  ebay-mcp-check

成功時末尾に OK: end-to-end eBay access works. が表示されます。

Cursor 登録

examples/cursor_mcp_config.example.json を参考にしてください。公開前は uvx --from /abs/path/to/projects/ebay-mcp でローカルパス指定もできます。


MIT License © 2026 taka392

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
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
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
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
Qdrant Server

Qdrant Server

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

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