WordPress MCP Server

by leonelberio

1 stars
116 downloads
Not rated
GitHub

About

Enables direct interaction with WordPress sites for creating, retrieving, and updating posts through the WordPress REST API

Details

Author
leonelberio
Repository
Leonelberio/the-wordpress-mcp-server
GitHub stars
1
Downloads
116
License
MIT License
Categories
Developer Tools, Other, Productivity, Design, AI, Infrastructure, API
Tags
#wordpress, #cms, #content-creation, #integration, #mobile

- Create, retrieve, and update WordPress posts.
- Supports both environment‑variable and per‑request authentication.
- Uses WordPress application passwords for secure access.
- Cross‑platform: Windows, macOS, and Linux.
- JSON‑RPC 2.0 protocol for standardized communication.
- Optional status parameters for posts (draft, publish, private).

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name WordPress MCP Server
    Command (node, npx, python, etc.) node
    Arguments
    • Argument 1 path/to/build/index.js
    Environment
    • WORDPRESS_PASSWORD your-app-password
    • WORDPRESS_SITE_URL https://your-wordpress-site.com
    • WORDPRESS_USERNAME your-username

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Add the server to your MCP settings file with environment variables for WordPress credentials:

{
  "mcpServers": {
    "wordpress": {
      "command": "node",
      "args": ["path/to/build/index.js"],
      "env": {
        "WORDPRESS_SITE_URL": "https://your-wordpress-site.com",
        "WORDPRESS_USERNAME": "your-username",
        "WORDPRESS_PASSWORD": "your-app-password"
      }
    }
  }
}

The environment variables are:
- WORDPRESS_SITE_URL: Your WordPress site URL
- WORDPRESS_USERNAME: WordPress username
- WORDPRESS_PASSWORD: WordPress application password

You can also provide these credentials in the request parameters if you prefer not to use environment variables.

create_post

Creates a new WordPress post. Parameters: siteUrl (optional), username (optional), password (optional), title (string), content (string), status (optional, 'draft' | 'publish' | 'private', default: 'draft')

get_posts

Retrieves WordPress posts. Parameters: siteUrl (optional), username (optional), password (optional), perPage (optional, default: 10), page (optional, default: 1)

update_post

Updates an existing WordPress post. Parameters: siteUrl (optional), username (optional), password (optional), postId (string), title (optional, string), content (optional, string), status (optional, 'draft' | 'publish' | 'private')

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "wordpress mcp server": {
            "env": {
                "WORDPRESS_PASSWORD": "your-app-password",
                "WORDPRESS_SITE_URL": "https://your-wordpress-site.com",
                "WORDPRESS_USERNAME": "your-username"
            },
            "args": [
                "path/to/build/index.js"
            ],
            "command": "node"
        }
    }
}

Linux

{
    "env": {
        "WORDPRESS_PASSWORD": "your-app-password",
        "WORDPRESS_SITE_URL": "https://your-wordpress-site.com",
        "WORDPRESS_USERNAME": "your-username"
    },
    "args": [
        "path/to/build/index.js"
    ],
    "command": "node"
}

Macos

{
    "env": {
        "WORDPRESS_PASSWORD": "your-app-password",
        "WORDPRESS_SITE_URL": "https://your-wordpress-site.com",
        "WORDPRESS_USERNAME": "your-username"
    },
    "args": [
        "path/to/build/index.js"
    ],
    "command": "node"
}

Windows

{
    "env": {
        "WORDPRESS_PASSWORD": "your-app-password",
        "WORDPRESS_SITE_URL": "https://your-wordpress-site.com",
        "WORDPRESS_USERNAME": "your-username"
    },
    "args": [
        "path/to/build/index.js"
    ],
    "command": "node"
}

A Model Context Protocol (MCP) server for WordPress integration, compatible with Windows, macOS, and Linux.

This 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.
- Clone the repository
- Install dependencies:

Add the server to your MCP settings file with environment variables for WordPress credentials:

{ "mcpServers": { "wordpress": { "command": "node", "args": ["path/to/build/index.js"], "env": { "WORDPRESS_SITE_URL": "https://your-wordpress-site.com", "WORDPRESS_USERNAME": "your-username", "WORDPRESS_PASSWORD": "your-app-password" } } } }

- WORDPRESS_SITE_URL: Your WordPress site URL
- WORDPRESS_USERNAME: WordPress username
- WORDPRESS_PASSWORD: WordPress application password

You can also provide these credentials in the request parameters if you prefer not to use environment variables.

- siteUrl: (optional if set in env) WordPress site URL
- username: (optional if set in env) WordPress username
- password: (optional if set in env) WordPress application password
- title: Post title
- content: Post content
- status: (optional) 'draft' | 'publish' | 'private' (default: 'draft')

- siteUrl: (optional if set in env) WordPress site URL
- username: (optional if set in env) WordPress username
- password: (optional if set in env) WordPress application password
- perPage: (optional) Number of posts per page (default: 10)
- page: (optional) Page number (default: 1)

- siteUrl: (optional if set in env) WordPress site URL
- username: (optional if set in env) WordPress username
- password: (optional if set in env) WordPress application password
- postId: ID of the post to update
- title: (optional) New post title
- content: (optional) New post content
- status: (optional) 'draft' | 'publish' | 'private'

For security, it's recommended to use WordPress application passwords instead of your main account password. You can generate an application password in your WordPress dashboard under Users → Security → Application Passwords.

{ "jsonrpc": "2.0", "id": 1, "method": "create_post", "params": { "title": "My New Post", "content": "Hello World!", "status": "draft" } }
{ "jsonrpc": "2.0", "id": 1, "method": "create_post", "params": { "siteUrl": "https://your-wordpress-site.com", "username": "your-username", "password": "your-app-password", "title": "My New Post", "content": "Hello World!", "status": "draft" } }

- Node.js 20.0.0 or higher
- WordPress site with REST API enabled
- WordPress application password for authentication

MIT License - See LICENSE file for details

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Manage and utilize website content within the DevHub CMS platform

A server for integrating with WordPress sites, enabling content management and interaction via the Model Context Protocol.

An MCP server for WordPress and Elementor, enabling AI assistants to manage content and build pages.

Model Context Protocol (MCP) server for Kinsta WordPress hosting

MCP server for managing Squidex CMS content and schemas from AI agents

MCP server for WordPress: connect Claude, ChatGPT, Cursor, and other AI clients to manage content, edit themes, run WP-CLI, and automate self-hosted WordPress sites.

Agency-grade MCP server for WordPress Elementor — multi-site fleet management, safe page/widget-level editing, template export/import, version tracking with snapshot/rollback.

Perform CRUD operations on Elementor page data for a target WordPress website.

Connect Cursor, Claude Code, or any MCP-compatible tool directly to your ElmapiCMS instance. Manage collections, content, and assets through natural language.

Manage WordPress posts and upload images directly from file paths.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.