MCP WooCommerce MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "WC_URL=${WC_URL}" -e "WC_CONSUMER_KEY=${WC_CONSUMER_KEY}" -e "WC_CONSUMER_SECRET=${WC_CONSUMER_SECRET}" -e "LLM_API_KEY=${LLM_API_KEY}" mcp-woocommerce-2f28 -- npx tsx src/mcp-server.ts
Required:WC_URLWC_CONSUMER_KEYWC_CONSUMER_SECRETLLM_API_KEY
README.md

Manage your WooCommerce store with AI via MCP or Telegram

MCP WooCommerce

Servidor MCP + Bot de Telegram para gestionar tu tienda WooCommerce con IA.

Dos modos de uso:

  • MCP Server — Conectá directamente desde Claude Desktop o Claude Code
  • Bot de Telegram — Gestioná tu tienda desde Telegram con lenguaje natural y voz

Features

  • 13 herramientas para gestionar productos, pedidos, clientes y reportes
  • Dual LLM — Un modelo para consultas (rápido/barato) y otro para edición (preciso)
  • Soporte de voz — Enviá audios por Telegram, se transcriben con Whisper
  • Multi-proveedor — Soporta Claude, OpenAI (GPT) y Gemini como LLM
  • Deploy en Cloudflare Workers — Gratis, siempre activo, sin servidor

Herramientas disponibles

Categoría Herramienta Descripción
Productos list_products Listar con filtros (búsqueda, categoría, estado)
get_product Detalle de un producto por ID
create_product Crear producto nuevo
update_product Editar precio, stock, descripción, estado
delete_product Eliminar producto
Pedidos list_orders Pedidos recientes con filtros
get_order Detalle de un pedido
update_order_status Cambiar estado del pedido
Clientes list_customers Buscar por nombre o email
get_customer Detalle y historial de compras
Reportes sales_report Ventas del día/semana/mes
top_products Productos más vendidos
revenue_summary Resumen de ingresos completo

Requisitos previos

  • Node.js 18+
  • Cuenta de WooCommerce con API REST habilitada
  • Para Telegram: Bot token de @BotFather
  • Para deploy: Cuenta de Cloudflare (gratis)
  • API key de al menos un proveedor LLM (OpenAI, Anthropic o Google)

Instalación

git clone https://github.com/tu-usuario/mcp-woocommerce.git
cd mcp-woocommerce
npm install

Obtener credenciales de WooCommerce

  1. En tu panel de WordPress: WooCommerce → Ajustes → Avanzado → REST API
  2. Click en "Agregar clave"
  3. Descripción: MCP Bot
  4. Permisos: Lectura/Escritura
  5. Click en "Generar clave API"
  6. Guardá el Consumer Key (ck_...) y Consumer Secret (cs_...)

Modo 1: MCP Server (Claude Desktop / Claude Code)

Conectá las herramientas de WooCommerce directamente a Claude sin intermediarios.

Configuración en Claude Desktop

Editá tu archivo de configuración de Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "woocommerce": {
      "command": "npx",
      "args": ["tsx", "src/mcp-server.ts"],
      "cwd": "/ruta/a/mcp-woocommerce",
      "env": {
        "WC_URL": "https://tu-tienda.com",
        "WC_CONSUMER_KEY": "ck_xxxxxxxxxxxxxxxxxxxxx",
        "WC_CONSUMER_SECRET": "cs_xxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

Configuración en Claude Code

claude mcp add woocommerce \
  -e WC_URL=https://tu-tienda.com \
  -e WC_CONSUMER_KEY=ck_xxxxxxxxxxxxxxxxxxxxx \
  -e WC_CONSUMER_SECRET=cs_xxxxxxxxxxxxxxxxxxxxx \
  -- npx tsx src/mcp-server.ts

Probar localmente

WC_URL=https://tu-tienda.com \
WC_CONSUMER_KEY=ck_xxx \
WC_CONSUMER_SECRET=cs_xxx \
npm run mcp

Modo 2: Bot de Telegram

Bot interactivo que responde mensajes de texto y voz usando IA.

Arquitectura

Telegram (vos) → Cloudflare Worker (webhook) → LLM (tool calling) → WooCommerce API
       ← respuesta formateada ← datos/confirmación ←

Crear bot de Telegram

  1. Abrí @BotFather en Telegram
  2. Enviá /newbot y seguí las instrucciones
  3. Guardá el token que te da
  4. Mandá un mensaje a tu bot nuevo (un "hola")
  5. Visitá https://api.telegram.org/bot<TOKEN>/getUpdates para obtener tu Chat ID

Variables de entorno

Copiá el archivo de ejemplo:

cp .dev.vars.example .dev.vars

Editá .dev.vars con tus credenciales:

# Telegram
TELEGRAM_BOT_TOKEN=tu-token
TELEGRAM_CHAT_ID=tu-chat-id

# WooCommerce
WC_URL=https://tu-tienda.com
WC_CONSUMER_KEY=ck_xxx
WC_CONSUMER_SECRET=cs_xxx

# LLM - Modo simple (un solo proveedor)
LLM_PROVIDER=openai
LLM_API_KEY=sk-xxx

# LLM - Modo dual (recomendado)
LLM_QUERY_PROVIDER=openai      # Para consultas: rápido y barato
LLM_QUERY_API_KEY=sk-xxx
LLM_EDIT_PROVIDER=claude       # Para edición: preciso y confiable
LLM_EDIT_API_KEY=sk-ant-xxx

Sistema Dual LLM

El bot puede usar dos LLMs diferentes según el tipo de operación:

Tipo Proveedor recomendado Modelo Para qué
Consultas OpenAI gpt-4o-mini / gpt-5.3 Listar, buscar, reportes
Edición Anthropic claude-sonnet-4 Crear, actualizar, eliminar

El routing es automático: detecta si tu mensaje contiene palabras como "crear", "editar", "cambiar precio", etc.

Si configurás solo LLM_PROVIDER y LLM_API_KEY, usa un único modelo para todo.

Soporte de voz (Whisper)

Enviá un mensaje de voz a

Tools (13)

list_productsList products with filters like search, category, or status
get_productGet detailed information for a specific product by ID
create_productCreate a new product in the store
update_productEdit product details such as price, stock, description, or status
delete_productRemove a product from the store
list_ordersList recent orders with filtering options
get_orderRetrieve details for a specific order
update_order_statusChange the status of an existing order
list_customersSearch for customers by name or email
get_customerGet customer details and purchase history
sales_reportGenerate sales reports for the day, week, or month
top_productsIdentify the best-selling products
revenue_summaryGet a complete summary of store revenue

Environment Variables

WC_URLrequiredThe base URL of your WooCommerce store
WC_CONSUMER_KEYrequiredWooCommerce REST API Consumer Key
WC_CONSUMER_SECRETrequiredWooCommerce REST API Consumer Secret
LLM_API_KEYrequiredAPI key for the chosen LLM provider

Configuration

claude_desktop_config.json
{"mcpServers": {"woocommerce": {"command": "npx", "args": ["tsx", "src/mcp-server.ts"], "cwd": "/ruta/a/mcp-woocommerce", "env": {"WC_URL": "https://tu-tienda.com", "WC_CONSUMER_KEY": "ck_xxxxxxxxxxxxxxxxxxxxx", "WC_CONSUMER_SECRET": "cs_xxxxxxxxxxxxxxxxxxxxx"}}}}

Try it

List all products that are currently out of stock.
What were the total sales for the last month?
Update the price of product ID 123 to 49.99.
Find the customer who placed the most recent order.
Change the status of order 555 to completed.

Frequently Asked Questions

What are the key features of MCP WooCommerce?

13 specialized tools for managing products, orders, customers, and reports. Dual LLM support to separate query tasks from editing tasks. Voice command support via Telegram using Whisper transcription. Multi-provider LLM support including Claude, OpenAI, and Gemini. Cloudflare Workers deployment for serverless, always-on operation.

What can I use MCP WooCommerce for?

Quickly checking inventory levels or sales performance while on the go via Telegram. Automating repetitive product updates using natural language commands in Claude Desktop. Generating instant revenue summaries without logging into the WordPress dashboard. Managing order fulfillment status updates through voice commands.

How do I install MCP WooCommerce?

Install MCP WooCommerce by running: git clone https://github.com/tu-usuario/mcp-woocommerce.git && cd mcp-woocommerce && npm install

What MCP clients work with MCP WooCommerce?

MCP WooCommerce works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep MCP WooCommerce docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare