Back to MCP directory
publicPublicdnsLocal runtime

wordpress-mcp-full

一个基于Model Context Protocol的WordPress与WooCommerce REST API集成服务器,提供全面的内容管理、用户管理、商品订单处理、商店配置等自动化工具。

article

README

🚀 WordPress + WooCommerce MCP Server

这是一个全面的模型上下文协议(MCP)服务器,用于与WordPress和WooCommerce的REST API进行交互。该服务器提供了管理WordPress网站和WooCommerce商店各方面的工具。

✨ 主要特性

支持WordPress REST API

  • 文章:创建、读取、更新、删除文章,并支持完整的元数据
  • 页面:管理WordPress页面,包括层次结构
  • 用户:基于角色的访问控制进行用户管理
  • 分类与标签:对内容进行分类管理
  • 评论:评论审核与管理
  • 媒体:媒体库管理和文件操作
  • 菜单:导航菜单的访问与管理
  • 设置:网站设置配置
  • 搜索:对所有文章类型进行内容搜索

支持WooCommerce REST API

  • 产品:完整的产品管理,包括变体、分类和标签
  • 订单:订单处理、状态更新和订单备注
  • 客户:客户账户管理和数据
  • 优惠券:折扣代码的创建和管理
  • 报表:销售分析和商业智能
  • 评论:产品评论管理
  • 税务管理:税务类别和税率配置
  • 配送:配送区域和方式设置
  • 支付网关:支付方式配置
  • 系统状态:店铺健康监测和诊断工具
  • 设置:店铺配置管理
  • Webhook:事件驱动的集成

📦 安装指南

本MCP需要三个配置参数:

  • wordpressUrl:你的WordPress网站URL(例如,https://yourdomain.com
  • username:你的WordPress用户名
  • applicationPassword:WordPress应用密码(非常规密码)

设置WordPress应用密码

  1. 进入你的WordPress管理仪表盘
  2. 导航到“用户”→“个人资料”
  3. 向下滚动到“应用密码”
  4. 为你的应用输入一个名称(例如,“MCP Server”)
  5. 点击“添加新应用密码”
  6. 复制生成的密码,并将其用作applicationPassword

💻 使用示例

创建WordPress文章

{
  "tool": "wp_create_post",
  "arguments": {
    "title": "My New Blog Post",
    "content": "This is the content of my blog post.",
    "status": "publish",
    "categories": [1, 2],
    "tags": [3, 4]
  }
}

🔧 技术细节

可用工具

WordPress工具(wp_*)

  • 文章管理:wp_get_postswp_create_postwp_update_postwp_delete_post
  • 页面管理:wp_get_pageswp_create_pagewp_update_pagewp_delete_page
  • 用户管理:wp_get_userswp_create_userwp_update_userwp_delete_user
  • 分类管理:wp_get_categorieswp_create_categorywp_update_categorywp_delete_category
  • 标签管理:wp_get_tagswp_create_tagwp_update_tagwp_delete_tag
  • 评论管理:wp_get_commentswp_create_commentwp_update_commentwp_delete_comment
  • 媒体管理:wp_get_mediawp_get_media_itemwp_update_media_itemwp_delete_media_item
  • 菜单访问:wp_get_menuswp_get_menu
  • 设置:wp_get_settingswp_update_settings
  • 搜索:wp_search

WooCommerce工具(wc_*)

  • 产品管理:wc_get_productswc_create_productwc_update_productwc_delete_productwc_batch_update_products
  • 产品变体:wc_get_product_variationswc_create_product_variation
  • 产品分类:wc_get_product_categorieswc_create_product_category
  • 产品标签:wc_get_product_tagswc_create_product_tag
  • 订单管理:wc_get_orderswc_create_orderwc_update_orderwc_delete_orderwc_batch_update_orders
  • 订单备注:wc_get_order_noteswc_create_order_notewc_delete_order_note
  • 客户管理:wc_get_customerswc_create_customerwc_update_customerwc_delete_customer
  • 优惠券管理:wc_get_couponswc_create_couponwc_update_couponwc_delete_coupon
  • 报表:wc_get_sales_reportwc_get_top_sellers_report
  • 产品评论:wc_get_product_reviewswc_create_product_review
  • 税务管理:wc_get_tax_classeswc_get_tax_rates
  • 配送:wc_get_shipping_zoneswc_get_shipping_zone_methods
  • 支付网关:wc_get_payment_gatewayswc_update_payment_gateway
  • 系统状态:wc_get_system_statuswc_run_system_status_tool
  • 设置:wc_get_settingswc_update_setting_option
  • Webhook:wc_get_webhookswc_create_webhook
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client