mcp-buy123-vendor
Read-only MCP server for buy123 vendor portal, enabling AI assistants to query orders, returns, shipments, products, inventory, and more.
README
mcp-buy123-vendor
mcp-buy123-vendor is an open-source Model Context Protocol (MCP) server for the buy123 vendor portal. It gives AI clients such as Claude Desktop, Claude Code, and other MCP-compatible agents read-only tools for querying vendor operations data, including orders, returns, shipments, products, bundles, channels, inventory, permissions, and vendor profile records.
This project is useful when you want an AI assistant to inspect buy123 vendor data through structured MCP tools instead of manually browsing the vendor portal.
Legal prerequisite: This tool requires a legitimate vendor account on the buy123 platform. You must hold a valid vendor identity and comply with the platform's terms of service. Unauthorized access is not supported.
Unofficial project: This repository is community-maintained and is not an official product of, or endorsed by, buy123.
Traditional Chinese documentation is available in README.zh-TW.md.
Highlights
- MCP server for buy123 vendor portal data access
- Read-only query tools for vendor operations workflows
- Claude Desktop and Claude Code compatible local MCP configuration
- Interactive on-demand login flow with local token storage
- Offline unit test suite for safe local development
Provided Tools
59 AI-callable tools — all query-only. Every tool returns the upstream API response envelope: { success, msg, data, pagination? }.
General Enumerations (no login required — 14 tools)
list_banks, list_bundle_types, list_bundle_delivery_notes, list_bundle_delivery_statuses, list_delivery_types, list_packaging_types, list_invoice_types, list_product_statuses, list_event_product_statuses, list_gross_profit_statuses, list_review_statuses, list_announcement_notify_levels, list_announcement_notify_scopes, list_announcement_notify_types
Query Tools (login required — 45 tools)
| Category | Tools |
|---|---|
| User info | get_current_user, get_my_menu |
| Abnormal orders | list_abnormal_orders |
| Returns | list_returns, list_uncollected_cvs_returns |
| Bundles | list_bundles, get_bundle, list_bundle_items, get_bundle_item, list_pricing_channels |
| Channels | list_channels, list_channel_products |
| Inventory | list_item_option_inventories |
| Shipments | list_shipments, list_cvs_shipment_details, list_home_delivery_shipment_details |
| Permission management | list_vendor_actions, list_vendor_roles, list_vendor_role_actions |
| Vendor management | get_vendor, get_vendor_profile, list_vendor_attachments, list_vendor_categories, check_vendor_tax_number, get_vendor_return_address, list_vendor_store_pickup_return_dc, list_vendor_store_pickup_return_mode, list_vendor_store_pickups, get_vendor_store_pickup, list_vendor_users, check_vendor_user_email |
| Product management | list_item_selection, list_items, get_item, list_item_history, list_item_options, list_item_options_selection, list_products, get_product, list_product_annotation_logs, list_product_bundle_prices, list_product_bundles, list_product_versions, list_commodity_categories, get_template_category_form |
Not Supported
- Write operations (POST / PUT / DELETE)
- Attachment preview or download
- Excel or other binary file downloads
- Shipping label printing
Usage
Requirements
- Python 3.10+
- A legitimate vendor account on the buy123 platform
Install
git clone https://github.com/asgard-ai-platform/mcp-buy123-vendor.git
cd mcp-buy123-vendor
python3 -m venv .venv
./.venv/bin/pip install -e .
cp .env.example .env
# Edit .env and fill in your vendor credentials
Run as an MCP Server
./.venv/bin/python mcp_server.py
Claude Desktop Configuration
Edit ~/Library/Application Support/Claude/claude_desktop_config.json and replace <PROJECT_DIR> with the absolute path to this project:
{
"mcpServers": {
"buy123-vendor": {
"command": "<PROJECT_DIR>/.venv/bin/python",
"args": ["<PROJECT_DIR>/mcp_server.py"]
}
}
}
Restart Claude Desktop. The buy123-vendor server should appear as running under Settings → Developer.
Claude Code CLI
A .mcp.json is included at the project root. Running claude from this directory will pick it up automatically.
Authentication
The server uses on-demand login. When a query requires authentication and no valid token is cached, the MCP client will be prompted to complete the login flow interactively. A desktop environment (windowed display) is required for the login step.
Development
Install Dev Dependencies
./.venv/bin/pip install -e '.[dev]'
Run Tests
Tests run offline and do not require a real API connection:
./.venv/bin/python -m pytest tests/
Integration tests that require a live API connection are opt-in and must be triggered manually after configuring valid credentials in .env.
Environment Variables
See .env.example for all configurable fields. The authentication token is managed automatically by the login flow and does not need to be set manually.
License
See LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。