Get the FREE Ultimate OpenClaw Setup Guide →

wordpress

This MCP server let you automate interactions with Wordpress

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio stefans71-wordpress-mcp-server node path/to/build/index.js \
  --env WORDPRESS_PASSWORD="your-app-password" \
  --env WORDPRESS_SITE_URL="https://your-wordpress-site.com" \
  --env WORDPRESS_USERNAME="your-username"

How to use

This MCP server provides a WordPress integration using the WordPress REST API and exposes JSON-RPC 2.0 compatible methods. It enables you to create, retrieve, and update WordPress posts from your MCP ecosystem. The server can read credentials from environment variables or accept them per-request, giving you flexibility in how you authenticate with your WordPress site. Typical usage involves starting the MCP server in your environment and then invoking the available methods (create_post, get_posts, update_post) through your MCP client or orchestrator, using either env-based credentials or explicit siteUrl, username, and password parameters in the request.

How to install

Prerequisites:

  • Node.js 20.0.0 or higher
  • npm (comes with Node.js)

Installation steps:

  1. Clone the repository: git clone <repository-url> cd wordpress-mcp-server

  2. Install dependencies: npm install

  3. Build the project (if applicable): npm run build

  4. Run the MCP server (example): node path/to/build/index.js

  5. Configure your MCP settings file to include the wordpress server configuration (see Configuration section in README) and restart your MCP environment to pick up the new server.

Additional notes

Tips and considerations:

  • For security, prefer WordPress application passwords rather than your main account password. You can generate them in WordPress under Users → Security → Application Passwords.
  • You can supply credentials via environment variables or pass them per-request (siteUrl, username, password) as documented in the methods.
  • Ensure the WordPress site URL is reachable from the MCP host and that the WordPress REST API is enabled.
  • When using get_posts, you can control pagination with perPage and page parameters. Be mindful of WordPress rate limits and authentication requirements for your site.
  • If you update credentials, restart the MCP server to ensure environment variables are reloaded (if using env-based auth).
  • The server expects the requests to follow JSON-RPC 2.0 format as shown in the examples in the README.

Related MCP Servers

Sponsor this space

Reach thousands of developers