Open-source B2B and marketplace ecommerce; new stores include an MCP server for AI agents.
WooCommerce MCP Server
ภาพรวม
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
101 tools for WooCommerce store management with field filtering and guided prompts.
สามเสาของ PopNx MCP
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
- เสียงผู้ใช้iยังไม่มีรีวิวรีวิวเปิดพร้อมระบบบัญชีในขั้นถัดไป
- ผลตรวจเบื้องต้นของเราiผ่าน 1 จาก 1 ข้อตรวจจากข้อมูลที่เปิดอยู่ ยังไม่ได้สแกนโค้ด
- การใช้งานiยังไม่ได้วัด★ –
ใช้ทำอะไรได้
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
- การเชื่อมต่อ: รันบนเครื่อง
- ช่องทาง (transport): stdio
- หมวด: ร้านค้าออนไลน์และรับเงิน
ติดตั้ง
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ก่อนติดตั้ง
- ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
- รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
- ทะเบียนไม่ได้ระบุ key ที่ต้องใส่
ต้องเตรียมก่อน
- npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"woocommerce": {
"command": "npx",
"args": [
"-y",
"@amitgurbani/mcp-server-woocommerce"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add woocommerce -- npx -y @amitgurbani/mcp-server-woocommerceหรือคัดลอกค่าตั้งเอง
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"woocommerce": {
"command": "npx",
"args": [
"-y",
"@amitgurbani/mcp-server-woocommerce"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
หรือคัดลอกค่าตั้งเอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"woocommerce": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@amitgurbani/mcp-server-woocommerce"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
ทำอะไรได้บ้าง
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
ผลตรวจเบื้องต้นi
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 8 พ.ย. 2569
- ✓ ผ่าน
ตัวตนผู้ทำตรงกับ repo
ชื่อใน registry ยืนยันด้วยบัญชี GitHub AmitGurbani ซึ่งเป็นเจ้าของ repo
- … ยังไม่ตรวจ
ยังมีคนดูแล
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
- … ยังไม่ตรวจ
มีสัญญาอนุญาต (license)
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
- – ไม่เกี่ยว
endpoint ตอบ
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
- – ไม่เกี่ยว
ล็อกอินแบบ OAuth
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
- … ยังไม่ตรวจ
คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับตัวอื่นในหมวด ร้านค้าออนไลน์และรับเงินi
- ดาวมากกว่า 0% ของอีก 2546 ตัวในหมวดนี้
- ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 2% ของอีก 2546 ตัวในหมวดนี้
- ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 2546 ตัวในหมวดนี้
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
คำถามที่พบบ่อย
WooCommerce MCP Server ปลอดภัยไหม?
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใช้กุญแจหรือรหัสอะไรบ้าง?
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
ตัวนี้รันบนเครื่องหรือบนคลาวด์?
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
ยังมีคนดูแลอยู่ไหม?
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.2.0) เข้า registry 8 เดือนที่ผ่านมา
ใช้กับโปรแกรมไหนได้บ้าง?
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
มีตัวไหนใช้แทนได้บ้าง?
ในหมวดเดียวกันมี Spree Commerce: open-source B2B and marketplace ecommerce, Stripe MCP, MCP Cn Commerce
ตัวที่ใช้แทนได้
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
Stripe MCP
server ทางการของ Stripe ให้ AI ดูและจัดการลูกค้า สินค้า การชำระเงิน และใบแจ้งหนี้ ต่อผ่านคลาวด์ของ Stripe และล็อกอินแบบ OAuth
MCP Cn Commerce
8 read-only MCP platform entries; support is operation-specific; merchant live acceptance pending
README จากผู้ทำ
เปิดอ่าน README
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
mcp-server-woocommerce
MCP server for managing WooCommerce stores through AI assistants like Claude. Provides 101 tools covering products, orders, customers, coupons, shipping, taxes, webhooks, settings, reports, and more.
Quick Start
1. Get WooCommerce API keys
In your WordPress admin: WooCommerce > Settings > Advanced > REST API > Add key with Read/Write permissions.
2. Add to your AI tool
No install needed — runs directly via npx:
Claude Code
Add to your project's .mcp.json:
{
"mcpServers": { "woocommerce": { "command": "npx", "args": ["-y", "@amitgurbani/mcp-server-woocommerce"], "env": { "WORDPRESS_SITE_URL": "https://store.example.com", "WOOCOMMERCE_CONSUMER_KEY": "ck_your_key", "WOOCOMMERCE_CONSUMER_SECRET": "cs_your_secret" } } } }
Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": { "woocommerce": { "command": "npx", "args": ["-y", "@amitgurbani/mcp-server-woocommerce"], "env": { "WORDPRESS_SITE_URL": "https://store.example.com", "WOOCOMMERCE_CONSUMER_KEY": "ck_your_key", "WOOCOMMERCE_CONSUMER_SECRET": "cs_your_secret" } } } }
Cursor
Install in Cursor (one-click) or add to .cursor/mcp.json in your project root:
{
"mcpServers": { "woocommerce": { "command": "npx", "args": ["-y", "@amitgurbani/mcp-server-woocommerce"], "env": { "WORDPRESS_SITE_URL": "https://store.example.com", "WOOCOMMERCE_CONSUMER_KEY": "ck_your_key", "WOOCOMMERCE_CONSUMER_SECRET": "cs_your_secret" } } } }
4. Start using it — ask your AI assistant things like:
"List all products that are out of stock"
"Create a 10% off coupon for orders over $50"
"Show me this week's sales report"
Features
- Full store management — CRUD operations for products, categories, tags, brands, orders, customers, and coupons
- Product taxonomy — attributes, attribute terms, and variations with batch support
- Shipping — zones, zone methods, and shipping classes
- Taxes — tax rates and tax classes
- Webhooks — create, manage, and monitor webhook subscriptions
- Settings — read and update store configuration
- Reports — sales reports, top sellers, order/product/customer totals
- Media management — list, delete, and cleanup orphaned media via WordPress REST API
- Token optimization — all tools support a
fieldsparam to return only specific fields, reducing response size by 60-97% - MCP resources — schema references for products, orders, coupons, refunds, and payment gateways that agents can read for context
- Guided prompts — multi-step workflows for variable product setup, order processing, and catalog overview
- Tool annotations —
readOnlyHint,destructiveHint, andidempotentHinton all 101 tools for safe agent behavior - Actionable errors — error responses include guidance on how to fix common issues
Safety
This server connects to a LIVE WooCommerce store. Every create, update, and delete operation affects real data. Use caution, especially on production stores.
Before You Start
- Back up your store before using destructive tools. Use a WordPress backup plugin or your host's backup feature.
- Test on staging first. Clone your production store to a staging environment and point this server at the staging URL.
- Use read-only mode when exploring. Set
WOOCOMMERCE_MCP_READ_ONLY=trueto block all write operations — only list, get, and report tools will work.
Irreversible Operations
Most delete operations move items to trash (recoverable). However, these are permanent and cannot be undone:
| Tool | Why it's irreversible |
|---|---|
delete_media | WordPress media deletions bypass trash entirely |
delete_tax_rate | Tax rates have no trash — deleted immediately |
delete_tax_class | Tax classes have no trash — rates become orphaned |
delete_attribute | Removes the attribute AND all its terms from every product |
delete_refund | Removes refund record (does not reverse payment) |
cleanup_orphaned_media | Permanently deletes all unattached media when delete=true |
run_system_tool | System maintenance actions (cache clears, DB updates) cannot be undone |
Cascading Effects
Some operations affect more than the single item being changed:
- Deleting an attribute removes it from all products — variable products may break
- Deleting an attribute term removes that option from all products and variations
- Deleting a shipping zone removes all methods and locations in that zone
- Batch operations (
batch_update_attribute_terms,batch_update_variations) can create, update, AND delete in a single call
API Key Permissions
For maximum safety, create WooCommerce API keys with only the permissions you need:
- Read-only exploration: Create a key with Read permissions only
- Full management: Use Read/Write permissions
Available Tools (101)
| Domain | Tools |
|---|---|
| Products | list, get, create, update, delete |
| Categories | list, get, create, update, delete |
| Tags | list, get, create, update, delete |
| Brands | list, get, create, update, delete |
| Attributes | list, get, create, delete |
| Attribute Terms | list, create, delete, batch update |
| Variations | list, get, create, update, batch update |
| Orders | list, get, create, update, delete |
| Order Refunds | list, create, delete |
| Order Notes | list, create, delete |
| Customers | list, get, create, update |
| Coupons | list, get, create, update, delete |
| Product Reviews | list, get, update, delete |
| Shipping Zones | list, get, create, update, delete |
| Shipping Zone Methods | list, get, create, update, delete |
| Shipping Classes | list, create |
| Tax Rates | list, get, create, update, delete |
| Tax Classes | list, create, delete |
| Webhooks | list, get, create, update, delete |
| Payment Gateways | list, get, update |
| Settings | list groups, get, update |
| System Status | get status, list tools, run tool |
| Data | list countries, list currencies |
| Reports | sales, top sellers, order/product/customer totals |
| Media | list, delete, cleanup orphaned |
Resources
The server exposes 7 MCP resources that provide schema references and guides for AI agents:
| URI | Description |
|---|---|
woo://schema/product | Product fields, types, statuses, and key rules |
woo://schema/order | Order fields, status lifecycle, and payment info |
woo://schema/coupon | Coupon types, limits, restrictions, and rules |
woo://schema/refund | Refund fields, reasons, line items, and processing rules |
woo://reference/product-types | When to use simple, variable, grouped, or external products |
woo://reference/order-statuses | Order status transitions and lifecycle diagram |
woo://reference/payment-gateways | Available payment gateways and their configuration options |
Resources are read-only context that agents can fetch to understand WooCommerce data structures before making API calls.
Prompts
5 guided workflow prompts that orchestrate multi-step operations:
| Prompt | Args | What it does |
|---|---|---|
setup_variable_product | product_name, attribute_name, variations | Creates a variable product end-to-end: attribute → terms → product → variations → publish |
process_order | order_id | Reviews an order's details and recommends the appropriate status transition |
catalog_overview | _(none)_ | Runs 5 tools in parallel to produce a store dashboard (products, orders, customers, categories, top sellers) |
handle_refund | order_id | Guides through refund processing: review order, select items, create refund, verify |
moderate_reviews | _(none)_ | Reviews pending product reviews and recommends approve/update/delete actions |
Tool Annotations
Every tool is annotated with behavior hints so AI agents can make safe decisions:
| Annotation | Meaning | Applied to |
|---|---|---|
readOnlyHint | No side effects, safe to call anytime | All list_*, get_*, and report tools (46) |
destructiveHint | Deletes or removes data | All delete_* tools + cleanup_orphaned_media + run_system_tool + batch_update_* (22) |
idempotentHint | Safe to retry, same result each time | All update_* tools (15) |
All tools also set openWorldHint: false — they only interact with WooCommerce, no external side effects.
Configuration
Environment Variables
| Variable | Required | Description |
|---|---|---|
WORDPRESS_SITE_URL | Yes | WordPress store URL (e.g. https://store.example.com) |
WOOCOMMERCE_CONSUMER_KEY | Yes | WooCommerce REST API consumer key (ck_...) |
WOOCOMMERCE_CONSUMER_SECRET | Yes | WooCommerce REST API consumer secret (cs_...) |
WORDPRESS_USERNAME | No | WordPress admin username (for media tools) |
WORDPRESS_APP_PASSWORD | No | WordPress Application Password (for media tools) |
MCP_TRANSPORT | No | Set to http for remote HTTP access (default: stdio) |
PORT | No | Platform-provided port (Hostinger, Railway); overrides MCP_PORT |
MCP_PORT | No | HTTP server port (default: 3000) |
MCP_AUTH_TOKEN | No* | Bearer token for HTTP auth (*required when MCP_TRANSPORT=http) |
WOOCOMMERCE_MCP_READ_ONLY | No | Set to true to block all write/delete operations (safe exploration mode) |
Using a .env file
Instead of inlining credentials, point to a directory with a .env file:
{
"mcpServers": { "woocommerce": { "command": "npx", "args": ["-y", "@amitgurbani/mcp-server-woocommerce"], "cwd": "/path/to/your/project" } } }
Multiple Stores
Use different server names to manage multiple stores from one project:
{
"mcpServers": { "store-a": { "command": "npx", "args": ["-y", "@amitgurbani/mcp-server-woocommerce"], "env": { "WORDPRESS_SITE_URL": "https://store-a.com", "..." } }, "store-b": { "command": "npx", "args": ["-y", "@amitgurbani/mcp-server-woocommerce"], "env": { "WORDPRESS_SITE_URL": "https://store-b.com", "..." } } } }
Token Optimization
All tools support an optional fields param (comma-separated) to return only specific fields:
# Browsing products — just names and prices
fields: "id,name,price"
Stock check
fields: "id,name,stock_status,stock_quantity"
Order overview
fields: "id,number,status,total"
This reduces response size by 60-97%, keeping AI context windows focused and costs low.
Development
git clone https://github.com/AmitGurbani/mcp-server-woocommerce.git
cd mcp-server-woocommerce pnpm install
pnpm dev # Watch mode
pnpm build # Build pnpm st
ตัดมาแค่ช่วงต้น อ่านต่อใน repo