xShopping-MCP

AlanChiou/xShopping-MCP Checked 2 days ago

An open protocol built on MCP to standardize AI agents' interactions with e-commerce backends.

Shopping Agent Protocol (SAP) An open protocol for AI agents to interact with e-commerce platforms securely and seamlessly. The Shopping Agent Protocol (SAP) is an open, lightweight protocol that enables AI assistants (such as Grok, Claude, ChatGPT, Gemini, etc.) to act as fully capable shopping agents on behalf of users. By implementing a simple SAP server, any e-commerce platform can allow AI agents to:

Summary extracted from the README.

xShopping-MCP — Open Standard for Backend-Driven AI Commerce

Shopping Agent Protocol (SAP)

An open protocol for AI agents to interact with e-commerce platforms securely and seamlessly.

License: Apache 2.0 Version: 0.1.0 Spec Status: Draft

Overview

The Shopping Agent Protocol (SAP) is an open, lightweight protocol that enables AI assistants (such as Grok, Claude, ChatGPT, Gemini, etc.) to act as fully capable shopping agents on behalf of users.

By implementing a simple SAP server, any e-commerce platform can allow AI agents to:

  • Search and browse products
  • Retrieve personalized recommendations, pricing, and member-only offers
  • Manage shopping carts
  • Complete checkout and payment flows
  • Track orders and returns

—all directly within the AI conversation, without redirects or leaving the host application (e.g., X, messaging apps, or dedicated AI interfaces).

SAP is heavily inspired by the Model Context Protocol (MCP) and extends its tool-calling and authentication patterns with e-commerce-specific tools, schemas, and security best practices.

Why SAP?

  • Frictionless shopping experience: Users complete purchases by simply talking to an AI.
  • Cross-model compatibility: Works with any AI that supports structured tool calling.
  • Privacy-first design: OAuth 2.0 authorization with scoped permissions; no sharing of raw credentials.
  • Merchant advantages: Higher conversion rates, new AI-native traffic channels, and rich personalization opportunities.

Goals

  • Standardize a core set of e-commerce tools (search, product details, cart operations, checkout, order tracking).
  • Provide clear JSON schemas, request/response examples, and reference implementations.
  • Enable straightforward integration with existing membership, catalog, inventory, and payment systems.
  • Drive broad adoption across platforms (Shopify, WooCommerce, Magento, custom stores, marketplace partners, etc.).

Status

This specification is currently in Draft (v0.1.0).
Community feedback, contributions, and early implementations are strongly encouraged!

Documentation

Quick Start for Merchants

  1. Set up a SAP server that exposes the required and optional tools.
  2. Configure OAuth 2.0 endpoints for user authorization.
  3. Test integration using any MCP-compatible client or reference tooling.

Full implementation details are available in the Specification.

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for details on how to submit issues, propose changes, or add implementations.

License

This project is licensed under the Apache License, Version 2.0.

See the LICENSE file for details.

Disclaimer

This is a personal open-source project and is not affiliated with, endorsed by, or sponsored by my employer (Rakuten) or any other company.
The design is inspired by publicly observable features of various e-commerce platforms, including Rakuten Ichiba.
No confidential information or internal code has been used.


Built with ❤️ for the future of agentic commerce.
Let’s make shopping as natural as conversation. 🚀