cross-shop
Batch-first MCP server for product search, product detail, and anonymous shipping quotes across public storefronts and marketplaces, exposing search, product, quote, and images commands with compact JSON output for AI agents.
README
cross-shop
cross-shop is a batch-first CLI and Python library for product search, product detail, and anonymous destination shipping quotes across public storefronts and marketplaces. Its default JSON output is compact for AI agents: store constants are hoisted, empty fields disappear, search results contain handles instead of refs, and image URLs remain in the run cache.
Run
From this directory:
uv run cross-shop search '[{"store":"https://example.com","query":"bearing"}]'
uv run cross-shop product '["r1.1.1"]'
uv run cross-shop quote '[{"store":"https://example.com","lines":[{"item":"r1.1.1.2","quantity":3}]}]'
uv run cross-shop images r1.1.1 1:3
uv run cross-shop config show
uv run pytest
After installation, use the cross-shop console command. A source checkout runs the same command with uv run --project <path-to-this-directory> cross-shop … or uvx --from . cross-shop ….
MCP
The stdio MCP server exposes search, product, quote, and images with the same compact results as the CLI. Search results use r<run>.<s>.<i>[.<v>] handles so callers can chain search → product → quote.
Register it with Claude Code:
claude mcp add cross-shop -- uv run --project <package-dir> cross-shop-mcp
For Pi, install pi-mcp-adapter (pi install npm:pi-mcp-adapter), then declare the server in any standard MCP config the adapter reads (project .mcp.json, ~/.config/mcp/mcp.json, or ~/.agents/mcp.json):
{
"mcpServers": {
"cross-shop": {
"command": "uv",
"args": ["run", "--project", "<package-dir>", "cross-shop-mcp"]
}
}
}
Point every client at the same <package-dir> so one installation serves them all.
Commands
search <entries-json> [--limit 20] [--description-chars 300] [--redetect] [--debug]accepts 1–100{store,query}entries. Repeated stores share one session and detection and their products are deduplicated.product <items-json> [--description-chars 2000] [--redetect] [--debug]accepts 1–100 product URLs, run handles, or ref objects.quote <quotes-json> [--destination <json>] [--redetect] [--debug]accepts 1–20 stores with 1–20 lines each. One cart contains every line for a store entry.images <item-handle> [N|START:END]downloads at most ten cached product images and prints absolute paths.config set-destination <json>,config show, andconfig import-vendors <path>manage persistent configuration.config showreports whether credential blocks are configured without printing credential values or private-key paths.
Search and product write monotonic run IDs. r7.2.5 means item 5 from store 2 in run 7; r7.2.5.3 means its third variant. Handles expire seven days after creation even if garbage collection has not run. Product detail emits strict, self-contained durable refs such as {"platform":"shopify","store":"https://example.com","variant_id":"gid://shopify/ProductVariant/123"}. Product URLs with query strings or fragments are rejected because those components can carry product identity; use a durable ref instead.
Store workers run concurrently, up to five at a time. Operations for one store remain sequential in one isolated cookie jar. An unexpected adapter exception becomes an api_error for that store without aborting the other workers. Exit status is 1 when any entry has status:api_error.
Storefronts and marketplaces
Storefront adapters cover Shopify, WooCommerce, Magento GraphQL/HTML/guest REST, BigCommerce Stencil/Storefront REST, Squarespace, Wix, Ecwid, and Salesforce Commerce Cloud boundaries. Wix, Ecwid, and customized SFCC/OpenCart checkout remain explicit browser boundaries.
These pseudo-store origins use marketplace discovery without live platform detection:
| Origin | Backend | Detail/quote boundary |
|---|---|---|
https://shop.app |
Shopify Global Catalog UCP MCP | Detail preserves seller storefront/API domains and offer handoff links; quote a merchant offer |
https://www.aliexpress.com |
AliExpress Affiliate API | Affiliate search only; no quote |
https://shopping.google.com |
SerpApi Google Shopping | Unverified leads; quote the merchant |
https://www.amazon.com |
SerpApi Amazon | Unverified listings; no anonymous cart API |
https://www.ebay.com |
eBay Browse API | Detail includes shipping; checkout APIs are restricted-tier |
Google Shopping, Amazon, and AliExpress results are leads. Re-verify the exact merchant listing, variant, stock, and delivered price.
Data and settings
The default data directory comes from platformdirs.user_data_path("cross-shop"). Set CROSS_SHOP_DATA_DIR to override it. Runtime data never writes into the package tree.
settings.jsonstores destination and optional integrations.vendors.jsonis the atomic, lock-protected canonical-origin platform registry.run-counteris never reset; deleted runs cannot make old handles point at new data.runs/stores full seven-day result payloads, including refs and image URLs omitted from stdout.images/stores files downloaded byimages.
Destination precedence is --destination, then settings.json, then the built-in San Francisco address. country and postal_code are required; region, city, and address1 are optional.
Settings example:
{
"destination": {"country":"US","region":"CA","city":"San Francisco","address1":"747 Howard St","postal_code":"94103"},
"web_bot_auth": {"private_key_path":"/secure/private.pem","key_directory_url":"https://agent.example/keys.json"},
"ebay": {"client_id":"…","client_secret":"…"},
"shopify_global": {"profile_url":"https://agent.example/profile.json"}
}
Credentials
SERPAPI_API_KEY: SerpApi Google Shopping and Amazon engines.ALIEXPRESS_APP_KEYandALIEXPRESS_APP_SECRET: AliExpress Affiliate Product Query.settings.ebay.client_idandsettings.ebay.client_secret: eBay Developers Program production Browse API keyset. Production access requires eBay marketplace account-deletion notification compliance.settings.shopify_global.profile_url: public UCP agent profile URL required by Shopify's currenthttps://catalog.shopify.com/api/ucp/mcpGlobal Catalog contract.
Missing marketplace credentials produce a structured setup error only when that marketplace is requested.
Web Bot Auth
Shopify product URLs resolve through the public Ajax product endpoint; durable variant refs resolve through Storefront GraphQL. Unsigned Shopify HTTP is the default and normal public-tool behavior. settings.web_bot_auth opts into Ed25519 HTTP Message Signatures. The signer validates the key type and JWK thumbprint, creates fresh nonce and expiry material for every request, refuses pre-signed requests, and signs redirects only after the Shopify adapter verifies the same HTTPS authority and API path. A configured but missing or unreadable key is an api_error naming its path; the tool never silently falls back to unsigned traffic.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。