WooCommerce MCP HTTP服务器

用于将WooCommerce与Manus AI集成的MCP HTTP服务器,支持产品、订单和客户管理,可轻松部署到Render、Railway和Fly.io。

  • by mamashyPAU
  • JavaScript
  • 本地部署
  • 更新于
在 GitHub 查看 mamashyPAU/woocommerce-mcp-http

使用说明

WooCommerce MCP HTTP 服务器

服务器MCP HTTP,用于将WooCommerce与Manus AI集成。

特点

  • ✅ 基于HTTP的MCP协议
  • ✅ 与WooCommerce REST API完全集成
  • ✅ 产品、订单及客户支持
  • ✅ 轻松部署到Render、Railway、Fly.io
  • ✅ 100%免费

本地安装

npm install

配置

Crea un file .env 这些变量包括:

WORDPRESS_SITE_URL=https://tuosito.com
WOOCOMMERCE_CONSUMER_KEY=ck_xxxxxxxxxxxxxxxxxxxxx
WOOCOMMERCE_CONSUMER_SECRET=cs_xxxxxxxxxxxxxxxxxxxxx
PORT=8000

本地启动

npm start

服务器将在 http://localhost:8000

在Render上部署

  1. 访问 https://render.com/
  2. 创建一个新的“Web 服务”
  3. 连接这个GitHub仓库
  4. 配置:
    • 构建命令: npm install
    • 启动命令: npm start
  5. 添加环境变量(不包括PORT)
  6. 部署!

在Railway上部署

  1. 请访问 https://railway.app/
  2. 创建一个新项目
  3. 连接这个GitHub仓库
  4. 添加环境变量
  5. 自动部署!

可用的终端点

健康检查

GET /

MCP协议

POST /mcp

REST API(Representational State Transfer Application Programming Interface,表述性状态传递应用程序编程接口)

GET /products          - Lista prodotti
GET /products/:id      - Dettagli prodotto
GET /orders            - Lista ordini
GET /orders/:id        - Dettagli ordine
GET /customers         - Lista clienti

与Manus的集成

  1. 在Render或Railway上部署服务器
  2. 复制公开URL(例如: https://woocommerce-mcp.onrender.com)
  3. 前往马努斯 → 连接器
  4. 创建新的MCP连接器
  5. 输入URL: https://woocommerce-mcp.onrender.com/mcp
  6. 救命啊!

测试

# Health check
curl https://your-url.onrender.com/

# Lista prodotti
curl https://your-url.onrender.com/products

# MCP endpoint
curl -X POST https://your-url.onrender.com/mcp \
  -H "Content-Type: application/json" \
  -d '{"method":"tools/list"}'

许可证

麻省理工学院(MIT)