Spark Customer Agent MCP Server

Spark Customer Agent MCP Server

Enables natural language shopping through Walmart's backend API, supporting product discovery, cart management, coupon handling, and order history.

Category
访问服务器

README

Spark Customer Agent MCP Server

A Model Context Protocol (MCP) server for integrating with Walmart products backend API. This server enables customers to shop using natural language through AI-powered conversations, providing tools for product discovery, cart management, coupon handling, and order history access.

🛍️ Natural Language Shopping Experience

This MCP server transforms the traditional shopping experience by allowing customers to interact with Walmart's product ecosystem using conversational AI. Customers can simply ask questions like "Show me smartphones under $500" or "What's in my cart?" and get instant, personalized responses.

Features

  • 🤖 AI-Powered Shopping: Natural language interactions for seamless shopping experiences
  • 🔍 Product Search: Search products by category (smartphones, tv, shoes, healthcare, electronics, fitness)
  • 💰 Price Filtering: Filter smartphones by maximum price with conversational queries
  • 🛒 Cart Management: View current cart items through simple voice or text commands
  • 🎟️ Coupons: Access available discount coupons via natural language requests
  • 📋 Order History: Retrieve past order information through conversational interface

🚀 Reimagining Customer Experience with Emerging Technologies

In today's fast-paced, digital-first world, customer experience is the ultimate competitive advantage. With limitless options at their fingertips, modern shoppers expect seamless, intuitive and highly personalized interactions—whether they're browsing online, engaging via mobile or stepping into a physical store.

🔮 The Future of Retail Technology

This MCP server represents the convergence of several emerging technologies:

  • 🧠 AI-Powered Shopping Assistants: Conversational commerce that understands customer intent and provides personalized recommendations
  • 📊 Data-Driven Insights: Real-time analysis of shopping patterns to enhance customer engagement
  • 🎯 Hyper-Personalized Experiences: Every interaction feels effortless, engaging and deeply relevant
  • ⚡ Real-Time Commerce: Instant responses to customer queries about products, pricing, and availability
  • 🔄 Predictive Shopping: Anticipating customer needs through advanced analytics

Retailers that harness AI, data-driven insights and immersive technologies are redefining customer engagement. From hyper-personalized recommendations and predictive shopping experiences to dynamic pricing models and real-time conversational commerce, emerging technologies are creating deeper, more meaningful relationships between brands and consumers.

This project embodies Walmart's vision of leveraging emerging technologies to transform the way customers shop, offering ultra-personalized experiences that make every interaction feel effortless, engaging and deeply relevant. By combining the power of AI assistants with natural language processing, we're reimagining the future of retail to enhance customer experience, boost engagement and redefine convenience in shopping.

Available Tools

🛠️ Conversational Shopping Tools

Product Discovery:

  • get_products_by_category: Fetch products from a specific category using natural language
  • get_smartphones_by_price: Filter smartphones by maximum price through conversational queries

Cart Management:

  • get_cart_items: View shopping cart contents with simple voice or text commands
  • add_to_cart: Add products to cart with specified quantities
  • remove_from_cart: Remove products from cart (single item or all quantities)

Coupon & Discounts:

  • get_available_coupons: Get available discount codes via natural language requests
  • apply_coupon: Apply discount coupons to cart for savings
  • remove_coupon: Remove applied coupons from cart

Order Management:

  • get_order_history: Access order transaction history through conversational interface
  • place_order: Complete purchase with current cart items

💬 Example Natural Language Interactions

Product Discovery:

  • "Show me all smartphones under $300" → Uses get_smartphones_by_price
  • "What electronics do you have?" → Uses get_products_by_category

Cart Management:

  • "What's in my shopping cart?" → Uses get_cart_items
  • "Add iPhone 15 to my cart" → Uses add_to_cart
  • "Remove the Nike shoes from my cart" → Uses remove_from_cart

Coupons & Discounts:

  • "Do I have any coupons available?" → Uses get_available_coupons
  • "Apply coupon SAVE20 to my cart" → Uses apply_coupon
  • "Remove the coupon from my cart" → Uses remove_coupon

Order Management:

  • "Show me my recent orders" → Uses get_order_history
  • "Place my order now" → Uses place_order

Prerequisites

  • Node.js (v18 or higher)
  • pnpm package manager
  • Backend API running on http://localhost:3000

Installation

  1. Clone the repository:
git clone https://github.com/khushal1512/spark-mcp.git
cd spark-mcp
  1. Install dependencies:
pnpm install
  1. Build the project:
pnpm build

Development

Run in development mode with hot reload:

pnpm dev

Watch mode for continuous development:

pnpm watch

Production

Build and start the server:

pnpm build
pnpm start

Cursor Integration

To use this MCP server with Cursor, add the following configuration to your Cursor settings:

{
  "mcpServers": {
    "spark-customer-agent": {
      "command": "node",
      "args": ["path/to/spark-mcp/dist/index.js"]
    }
  }
}

Backend API Endpoints

The server expects the following endpoints to be available:

Product Discovery:

  • GET /products/{category} - Get products by category
  • GET /products/smartphones/{maxPrice} - Get smartphones under max price

Cart Management:

  • GET /cart - Get cart items
  • POST /cart/add - Add product to cart
  • DELETE /cart/remove - Remove product from cart

Coupon Management:

  • GET /coupons - Get available coupons
  • POST /cart/apply-coupon - Apply coupon to cart
  • DELETE /cart/remove-coupon - Remove coupon from cart

Order Management:

  • GET /orders - Get order history
  • POST /orders/place - Place new order

Project Structure

spark-mcp/
├── src/
│   └── index.ts          # Main MCP server implementation
├── dist/                 # Compiled JavaScript output
├── package.json          # Project configuration
├── tsconfig.json         # TypeScript configuration
└── README.md            # This file

Configuration

  • Backend URL: Configure BACKEND_BASE_URL in src/index.ts
  • Categories: Modify ALLOWED_CATEGORIES array for different product categories

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Make your changes
  4. Build and test: pnpm build
  5. Commit your changes: git commit -am 'Add some feature'
  6. Push to the branch: git push origin feature-name
  7. Submit a pull request

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Author

Khushal Agrawal

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选