Mercari MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Mercari MCP Serversearch for vintage cameras under $200"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@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.
Related MCP server: mcp-ebay
Requirements
Node.js >= 18
A Browserbase account with CDP URL
Mercari account (for authenticated operations)
Installation
npm install @striderlabs/mcp-mercariOr from tarball:
npm install ./striderlabs-mcp-mercari-1.0.0.tgzConfiguration
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 termcategory(optional): Category filter (e.g. "Electronics", "Clothing")min_price(optional): Minimum price in USDmax_price(optional): Maximum price in USDcondition(optional):new|like_new|good|fair|poorlimit(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 titledescription(required): Item descriptionprice(required): Price in USDcondition(required):new|like_new|good|fair|poorcategory(optional): Item categoryshipping_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:
Use Browserbase's live view to navigate to mercari.com and log in manually
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:
Connects to the remote browser via CDP
Navigates to the relevant Mercari page
Extracts or fills in data using DOM selectors
Returns structured JSON results
License
MIT
Available Tools
6 toolscreate_listingB
Create a new listing on Mercari
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | Listing price in USD | |
| title | Yes | Item title | |
| images | No | Local file paths or URLs of item images | |
| category | No | Item category | |
| condition | Yes | Item condition | |
| description | Yes | Item description | |
| shipping_from | No | Ship from state code (e.g. 'CA') |
get_listing_detailsB
Get detailed information about a specific Mercari listing
| Name | Required | Description | Default |
|---|---|---|---|
| listing_id | Yes | Mercari listing ID or full URL |
get_my_listingsA
Get listings the authenticated user is currently selling
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Filter by listing status (default: on_sale) |
get_purchasesA
View purchase history for the authenticated user
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max purchases to return (default 20) |
get_salesA
View sales history for the authenticated user
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max sales to return (default 20) |
search_listingsC
Search Mercari listings by keyword, category, and price range
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results to return (default 20) | |
| keyword | Yes | Search keyword | |
| category | No | Category filter (e.g. 'Electronics', 'Clothing') | |
| condition | No | Item condition filter | |
| max_price | No | Maximum price in USD | |
| min_price | No | Minimum price in USD |
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
6 tool updates
v1.0.0- First observed
create_listing - First observed
get_listing_details - First observed
get_my_listings - First observed
get_purchases - First observed
get_sales - First observed
search_listings
TDQS
Scored across 6 tools
Each tool targets a distinct action: viewing own listings, purchases, sales, searching, getting details, and creating listings. No overlap in purpose.
All tools follow a consistent verb_noun pattern (e.g., get_my_listings, search_listings, create_listing), making the set predictable.
With 6 tools covering core marketplace operations (search, view, create), the count is well-scoped and not excessive.
Missing update and delete for listings, which are common lifecycle operations. The set covers creation and reading but not full CRUD.
Maintenance
Related MCP Connectors
Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to iā¦
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Playwright browser automation ā navigate, click, fill forms, extract, screenshot ā 17 agent tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search products, manage cart, place orders, and track shipments on Amazon via browser automation.9 npm2MIT
- AlicenseAqualityDmaintenanceEnables AI agents to search products, view item details, track and place bids, make Buy It Now purchases, view order history, and track shipments on eBay via browser automation with Playwright.77 npmMIT
- AlicenseAqualityDmaintenanceEnables AI assistants to perform browser automation using Playwright, including navigation, content extraction, screenshot analysis, and custom script execution.520 npmMIT
- AlicenseAqualityBmaintenanceEnables AI agents to search and monitor Dutch and Belgian classifieds (Marktplaats and 2dehands) for listings, seller profiles, and categories.848 PyPI4MIT