xianyu-buyer-mcp
xianyu-buyer-mcp
闲鱼(Goofish) 구매자 측 가격 문의 MCP Server. 상품 검색, 대량 문의 메시지 전송, 판매자 응답 자동 수집 기능을 지원합니다.
기능
도구 | 설명 |
| 闲鱼 QR 코드 로그인 (최초에만 필요, 이후 쿠키 자동 재사용) |
| 로그인 상태 확인 |
| 상품 검색, 상품 목록 + 판매자 ID 반환 |
| 단일 판매자에게 문의 메시지 전송 |
| 문의 메시지 대량 전송 |
| IM 대화 목록 가져오기, 모든 판매자 응답 확인 |
| 특정 판매자와의 전체 채팅 기록 가져오기 |
Related MCP server: Goofish MCP Server
설치
사전 준비
Python 3.11+
闲鱼/淘宝 앱 (QR 코드 로그인용)
闲鱼 웹 버전/淘宝 데스크톱 버전 (메시지 수신 및 응답용)
절차
# 1. 克隆项目
git clone https://github.com/<your-username>/xianyu-buyer-mcp.git
cd xianyu-buyer-mcp
# 2. 安装依赖
pip install -e .
# 3. 安装 Chromium 浏览器
playwright install chromium선택 설정
환경 변수 템플릿을 복사하고 필요에 따라 수정하세요:
cp .env.example .env변수 | 기본값 | 설명 |
|
| 헤드리스 모드 여부 (QR 코드 로그인을 위해 false 유지 권장) |
| (비어 있음) | HTTP 프록시 주소 |
|
| 쿠키 저장 경로 |
|
| 闲鱼 홈페이지 URL |
MCP 클라이언트에서 사용
Claude Desktop / Cursor / QoderWork
MCP 구성 파일에 추가하세요:
{
"mcpServers": {
"xianyu-buyer": {
"command": "python",
"args": ["/path/to/xianyu-buyer-mcp/server.py"]
}
}
}최초 사용
AI 어시스턴트에서
login도구 호출브라우저 창에 闲鱼 로그인 페이지가 자동으로 열립니다.
闲鱼 또는 淘宝 앱으로 QR 코드 로그인
쿠키가
~/.xianyu-buyer-mcp/cookies.json에 자동 저장됩니다.이후에는 QR 코드 로그인을 반복할 필요가 없습니다.
일반적인 절차
# 1. 登录
login()
# 2. 搜索商品
search("MacBook Pro M1 16G 512G", max_price=5000)
# 3. 批量询价
batch_send_inquiry(
items='[{"itemId": "xxx", "sellerId": "yyy"}, ...]',
message="你好,还在吗?"
)
# 4. 查看回复
get_conversations()
# 5. 查看某个对话详情
get_conversation_detail(item_id="xxx", seller_id="yyy")기술 세부 사항
탐지 방지: playwright-stealth + 커스텀 UA + navigator 위장을 사용해 봇으로 식별되는 위험을 낮춥니다.
CAPTCHA 우회: 판매자 정보 조회는 IM 페이지의
lib.mtop.requestSDK를 통해 완료되므로 상품 상세 페이지에서 슬라이더 검증이 발생하지 않습니다.호출 빈도 제어: 대량 메시지 전송 간격을 2초로 유지하여 플랫폼의 리스크 관리가 실행되지 않도록 합니다.
스레드 안전: 모든 브라우저 작업은 단일 스레드 실행기에서 직렬화되어 실행됩니다.
참고 사항
闲鱼에는 크롤링 방지 메커니즘이 있으므로 잦은 호출이나 대규모 데이터 수집에 사용하지 마세요.
쿠키의 유효 기간이 제한되어 있으므로 만료된 후에는 다시 QR 코드 로그인이 필요합니다.
이 프로젝트는 학습 및 연구 목적으로만 제공되며 闲鱼 플랫폼의 이용 약관을 준수하시기 바랍니다.
라이센스igital MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityDmaintenanceAn MCP server that automates Xianyu marketplace operations through Playwright, allowing users to manage listings and conduct market research via natural language. It features integrated tools for generating AI-powered product descriptions and cover images using DashScope.1121
- FlicenseBqualityDmaintenanceEnables searching and monitoring of Goofish (闲鱼) items via Playwright automation, providing structured item details and keyword-based monitoring.47
- AlicenseBqualityBmaintenanceMCP server for automating Xianyu (Goofish) marketplace operations: publish, manage items, handle IM messages, and more via CLI or AI agents.417139Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to interact with Goofish (闲鱼) marketplace, supporting product search, batch inquiry messaging, and conversation management for buyers.3MIT
Related MCP Connectors
Managed LinkedIn MCP server for AI agents: search, connect, message and enrich on accounts you own.
First AI Agent e-commerce marketplace with 74+ AI products, MCP protocol, and Alipay payments
Shopping MCP for AI agents: search, compare, Amazon buy links. Auto-register.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/xhjiang1998/xianyu-buyer-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server