MCP.so
登录

WordPress MCP Server

@stefans71

基本信息

分类

其他

传输方式

stdio

作者

stefans71

关于 WordPress MCP Server

This MCP server let you automate interactions with Wordpress

WordPress MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "wordpress": {
      "command": "node",
      "args": [
        "path/to/wordpress-server/build/index.js"
      ]
    }
  }
}

WordPress MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is WordPress MCP Server?

A Model Context Protocol (MCP) server that enables AI assistants to interact with WordPress sites through the WordPress REST API. It provides tools for managing WordPress content programmatically, including creating, retrieving, and updating posts. The server is designed for developers and site administrators who want to automate content management via AI.

How to use WordPress MCP Server?

Install Node.js v18+, clone the repository, install dependencies, and build the server. Configure MCP by adding the server to your MCP settings file (e.g., cline_mcp_settings.json) with the built index.js as the command. The server exposes three tools: create_post, get_posts, and update_post, each requiring your WordPress site URL, username, and an application password.

Key features of WordPress MCP Server

  • Create new WordPress posts with customizable title, content, and status
  • Retrieve WordPress posts with pagination support
  • Update existing posts with new content or status
  • Secure authentication using WordPress application passwords
  • Error handling with descriptive response messages
  • Supports draft, publish, and private post statuses

Use cases of WordPress MCP Server

  • AI assistant helping writers draft and publish blog posts
  • Automated content publishing from a headless CMS or script
  • Batch updating post metadata or status across a WordPress site
  • Creating private posts for internal documentation workflows
  • Integrating with AI coding tools to manage WordPress content

常见问题

1

What prerequisites are required?

Node.js v18 or higher, a WordPress site with the REST API enabled (default since WordPress 4.7+), and a WordPress application password for authentication.

2

How do I authenticate with WordPress?

Generate an application password from your WordPress admin panel (Users → Profile → Application Passwords). Use that password (with username and site URL) in each tool request. Never use your main WordPress password.

3

What tools does the server provide?

Three tools: `create_post` (create a new post), `get_posts` (retrieve posts with pagination), and `update_post` (update an existing post by ID). All require `siteUrl`, `username`, and `password`; optional parameters include `status`, `perPage`, `page`, `title`, and `content`.

4

How are responses formatted?

All tools return JSON with a `success` boolean. On success, `data` contains the WordPress API response. On failure, `error` provides a descriptive message covering invalid request, missing parameters, authentication failures, or network issues.

5

What security considerations should I follow?

Always use HTTPS URLs for your WordPress site. Use application passwords instead of your main password. Keep application passwords secure and do not share them. Consider limiting access with WordPress roles and capabilities. Regularly rotate application passwords.

评论

其他 分类下的更多 MCP 服务器