WordPress MCP Server logo

WordPress MCP Server

by Leonelberio

The WordPress MCP Server enables interaction with WordPress sites through the WordPress REST API. It provides tools for creating, retrieving, and updating posts using JSON-RPC 2.0 protocol.

View on GitHub

Last updated: N/A

What is WordPress MCP Server?

This is a Model Context Protocol (MCP) server designed to facilitate communication with WordPress sites. It allows you to manage WordPress posts programmatically using the WordPress REST API and JSON-RPC 2.0.

How to use WordPress MCP Server?

  1. Clone the repository. 2. Install dependencies using npm install. 3. Build the project using npm run build. 4. Configure the server in your MCP settings file, providing WordPress credentials either as environment variables or in the request parameters. 5. Use the available methods (create_post, get_posts, update_post) with appropriate parameters to interact with your WordPress site.

Key features of WordPress MCP Server

  • Create WordPress posts

  • Retrieve WordPress posts

  • Update WordPress posts

  • JSON-RPC 2.0 protocol support

  • Environment variable or request parameter based authentication

  • Cross-platform compatibility (Windows, macOS, Linux)

Use cases of WordPress MCP Server

  • Automated content creation

  • Remote WordPress management

  • Integration with other systems

  • Building custom WordPress applications

  • Programmatic post updates

FAQ from WordPress MCP Server

What is an application password in WordPress?

An application password is a secure alternative to your main WordPress password, allowing specific applications to access your WordPress site without compromising your primary account.

How do I enable the WordPress REST API?

The WordPress REST API is enabled by default in recent versions of WordPress. No specific configuration is usually required.

Can I use my main WordPress password instead of an application password?

While possible, it's strongly discouraged for security reasons. Application passwords limit the scope of access and can be revoked independently.

What happens if I don't provide WordPress credentials?

The server will likely return an authentication error. You must provide valid WordPress credentials either through environment variables or in the request parameters.

What Node.js version is required?

Node.js version 20.0.0 or higher is required.