Mercari MCP Server

Mercari MCP Server

Automates Mercari resale marketplace operations, enabling AI assistants to search listings, manage selling inventory, view purchase/sales history, and create new listings via Playwright and Browserbase.

Category
Visit Server

README

@striderlabs/mcp-mercari

MCP (Model Context Protocol) server for automating Mercari resale marketplace operations using Playwright and Browserbase.

Overview

This server exposes Mercari functionality as MCP tools, enabling AI assistants to search listings, manage your selling inventory, view purchase/sales history, and create new listings.

Requirements

  • Node.js >= 18
  • A Browserbase account with CDP URL
  • Mercari account (for authenticated operations)

Installation

npm install @striderlabs/mcp-mercari

Or from tarball:

npm install ./striderlabs-mcp-mercari-1.0.0.tgz

Configuration

Set the following environment variable:

export BROWSERBASE_CDP_URL="wss://connect.browserbase.com?apiKey=YOUR_KEY&sessionId=YOUR_SESSION"

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "mercari": {
      "command": "npx",
      "args": ["@striderlabs/mcp-mercari"],
      "env": {
        "BROWSERBASE_CDP_URL": "wss://connect.browserbase.com?apiKey=YOUR_KEY&sessionId=YOUR_SESSION"
      }
    }
  }
}

Tools

search_listings

Search Mercari listings by keyword, category, and price range.

Parameters:

  • keyword (required): Search term
  • category (optional): Category filter (e.g. "Electronics", "Clothing")
  • min_price (optional): Minimum price in USD
  • max_price (optional): Maximum price in USD
  • condition (optional): new | like_new | good | fair | poor
  • limit (optional): Max results (default: 20)

Example:

{
  "keyword": "iPhone 14",
  "max_price": 600,
  "condition": "good",
  "limit": 10
}

get_listing_details

Get detailed information about a specific listing.

Parameters:

  • listing_id (required): Mercari item ID or full URL

Example:

{
  "listing_id": "m12345678"
}

get_my_listings

Get listings you're currently selling (requires authentication).

Parameters:

  • status (optional): on_sale | sold_out | all (default: on_sale)

create_listing

Create a new item listing on Mercari (requires authentication).

Parameters:

  • title (required): Item title
  • description (required): Item description
  • price (required): Price in USD
  • condition (required): new | like_new | good | fair | poor
  • category (optional): Item category
  • shipping_from (optional): State code (e.g. "CA")
  • images (optional): Array of local file paths to item images

Example:

{
  "title": "Nike Air Max 90 Size 10",
  "description": "Worn twice, great condition. No box.",
  "price": 85,
  "condition": "like_new",
  "shipping_from": "CA",
  "images": ["/path/to/shoe-front.jpg", "/path/to/shoe-side.jpg"]
}

get_purchases

View your purchase history (requires authentication).

Parameters:

  • limit (optional): Max items to return (default: 20)

get_sales

View your sales history (requires authentication).

Parameters:

  • limit (optional): Max items to return (default: 20)

Authentication

Authenticated tools (get_my_listings, create_listing, get_purchases, get_sales) require an active Mercari session in the Browserbase browser. To authenticate:

  1. Use Browserbase's live view to navigate to mercari.com and log in manually
  2. The session cookies will persist for subsequent tool calls

How It Works

This server uses Playwright to control a browser via Browserbase's CDP endpoint. Each tool call:

  1. Connects to the remote browser via CDP
  2. Navigates to the relevant Mercari page
  3. Extracts or fills in data using DOM selectors
  4. Returns structured JSON results

License

MIT

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
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

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