drio
Open app

WordPress MCP Server

Source

Mirror of

Catalog onlyCatalog onlySTDIO

Overview

WordPress MCP Server is a Model Context Protocol (MCP) server that allows AI assistants to interact with WordPress sites via the WordPress REST API, enabling programmatic management of WordPress content.

To use the WordPress MCP Server, clone the repository, install the dependencies, and configure your WordPress site to enable REST API access and create an application password for authentication.

  • Create, retrieve, and update WordPress posts programmatically. - Secure authentication using WordPress application passwords. - Detailed error handling and response messages. - Pagination support for retrieving posts.
  1. Automating content creation for WordPress blogs.
  2. Integrating AI assistants to manage WordPress content.
  3. Building custom applications that interact with WordPress sites.

Add to your AI client

Use these steps to connect WordPress MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "stefans71-wordpress-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-stefans71-wordpress-mcp-server-mcp-mirror"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "stefans71-wordpress-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-stefans71-wordpress-mcp-server-mcp-mirror"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "stefans71-wordpress-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-stefans71-wordpress-mcp-server-mcp-mirror"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "stefans71-wordpress-mcp-server-mcp-mirror": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-stefans71-wordpress-mcp-server-mcp-mirror"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "stefans71-wordpress-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-stefans71-wordpress-mcp-server-mcp-mirror"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "stefans71-wordpress-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-stefans71-wordpress-mcp-server-mcp-mirror"
      ]
    }
  }
}

FAQ

What are the prerequisites for using the server?

You need Node.js v18 or higher and a WordPress site with REST API enabled.

How do I authenticate with the server?

Use a WordPress application password created in your WordPress admin panel for secure authentication.

Can I update existing posts?

Yes! The server allows you to update existing posts with new content or status.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1153,"uuid":"d057c1d2-2c37-41b0-86f3-38217b1224fd","name":"stefans71_wordpress-mcp-server","title":"WordPress MCP Server","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2025-01-28T02:35:03.904Z","updated_at":"2025-02-23T07:20:08.059Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"wordpress,mcp-server,api-integration","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/stefans71_wordpress-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/6cd0120cc4c5ac11d28b2c60f76033b52db98dac641de3b2644bb054b449d60c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667","type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]