TW

techspawn/woocommerce-mcp-server

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

104 stars 53 forks Качество 70 Тренд 15MIT

techspawn/woocommerce-mcp-server — это кандидат на MCP-сервер, импортированный из https://github.com/techspawn/woocommerce-mcp-server.

Обзор

techspawn/woocommerce-mcp-server — это кандидат на MCP-сервер, импортированный из https://github.com/techspawn/woocommerce-mcp-server.

Обзор (машинный перевод)

Сервер Model Context Protocol (MCP) для интеграции с WooCommerce, совместим с Windows, macOS и Linux.

Обзор

Этот MCP-сервер позволяет взаимодействовать с магазинами WooCommerce через REST API WordPress. Он предоставляет комплексные инструменты для управления всеми аспектами товаров, заказов, клиентов, доставки, налогов, скидок и конфигурации магазинов с использованием протокола JSON-RPC 2.0.

Связанный проект

Покажите свой магазин WooCommerce 800+ миллионам пользователей ChatGPT! Обратите внимание на приложение WooCommerce ChatGPT — визуальный помощник для покупок, созданный с использованием MCP и ChatGPT SDK с красивым интерфейсом, отображающими товары, изображения, цены и описания. Просматривайте, ищите, фильтруйте и легко перемещайтесь в свой магазин — всё это внутри ChatGPT.

Установка - WooCommerce MCP Server

  1. Клонировать репозиторий

  2. Установка зависимостей:

  3. Постройте проект:

Конфигурация

Добавьте сервер в файл настроек MCP с переменными среды для учетных данных:

Переменные среды

Требуется для доступа к API WooCommerce:

  • WORDPRESS_SITE_URL: URL вашего сайта WordPress (WooCommerce — это плагин WordPress)
  • WOOCOMMERCE_CONSUMER_KEY: Потребительский ключ WooCommerce REST API

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

WooCommerce MCP Server

A Model Context Protocol (MCP) server for WooCommerce integration, compatible with Windows, macOS, and Linux.

Overview

This MCP server enables interaction with WooCommerce stores through the WordPress REST API. It provides comprehensive tools for managing all aspects of products, orders, customers, shipping, taxes, discounts, and store configuration using JSON-RPC 2.0 protocol.

Showcase your WooCommerce store to 800+ million ChatGPT users! Check out WooCommerce ChatGPT App - A visual shopping assistant built using MCP and ChatGPT SDK with beautiful UI displaying products, images, prices, and descriptions. Browse, search, filter, and seamlessly navigate to your store - all within ChatGPT.

Installation - WooCommerce MCP Server

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Build the project:
npm run build

Configuration

Add the server to your MCP settings file with environment variables for credentials:

{
  "mcpServers": {
    "woocommerce": {
      "command": "node",
      "args": ["path/to/build/index.js"],
      "env": {
        "WORDPRESS_SITE_URL": "https://your-wordpress-site.com",
        "WOOCOMMERCE_CONSUMER_KEY": "your-woocommerce-consumer-key",
        "WOOCOMMERCE_CONSUMER_SECRET": "your-woocommerce-consumer-secret",
        "WORDPRESS_USERNAME": "your-wordpress-username",
        "WORDPRESS_PASSWORD": "your-wordpress-password"
      }
    }
  }
}

Environment Variables

Required for WooCommerce API access:

  • WORDPRESS_SITE_URL: Your WordPress site URL (WooCommerce is a WordPress plugin)
  • WOOCOMMERCE_CONSUMER_KEY: WooCommerce REST API consumer key
  • WOOCOMMERCE_CONSUMER_SECRET: WooCommerce REST API consumer secret

Required only for WordPress API methods:

  • WORDPRESS_USERNAME: WordPress username with appropriate permissions
  • WORDPRESS_PASSWORD: WordPress password for authentication

You can also provide these credentials in the request parameters if you prefer not to use environment variables.

Authentication Options

WooCommerce Authentication

WooCommerce API access requires consumer keys that you can generate in your WordPress dashboard under WooCommerce → Settings → Advanced → REST API.

WordPress Authentication

For WordPress-specific methods (like managing posts), you need to provide:

  • Username/password credentials for basic authentication
  • The WordPress REST API must be enabled on your site

API Methods

The server supports both WordPress and WooCommerce API methods. Here’s a list of available methods grouped by category:

WordPress Content Management

These methods require WordPress username/password credentials and are independent of the WooCommerce API.

Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "woocommerce": { "command": "node", "args": ["path/to/build/index.js"], "env": { "WORDPRESS_SITE_URL": "https://your-wordpress-site.com", "WOOCOMMERCE_CONSUMER_KEY": "your-woocommerce-consumer-key", "WOOCOMMERCE_CONSUMER_SECRET": "your-woocommerce-consumer-secret", "WORDPRESS_USERNAME": "your-wordpress-username", "WORDPRESS_PASSWORD": "your-wordpress-password" } } } }