drio
Open app

WordPress MCP Integration

Source

MCP Server for WordPress

Catalog onlyCatalog onlySTDIO

Overview

WordPress MCP Integration is a streamlined TypeScript SDK that allows interaction with WordPress sites through the WordPress REST API using the Model Context Protocol (MCP).

To use this integration, clone the repository, install the dependencies, and configure your WordPress site credentials either through environment variables or request parameters.

  • Create, retrieve, and update WordPress posts via the REST API. - Supports configuration through environment variables for security. - Provides example JSON-RPC calls for each available tool.
  1. Automating the creation of blog posts.
  2. Retrieving and displaying posts on a custom frontend.
  3. Updating existing content programmatically.

Add to your AI client

Use these steps to connect WordPress MCP Integration 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": {
    "mcp-for-wordpress-rizaardiyanto1412": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-for-wordpress-rizaardiyanto1412"
      ]
    }
  }
}

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": {
    "mcp-for-wordpress-rizaardiyanto1412": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-for-wordpress-rizaardiyanto1412"
      ]
    }
  }
}

Claude Code

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

.mcp.json (project root)

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

VS Code (Copilot)

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

.vscode/mcp.json

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

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

Is this integration secure?

Yes, it is recommended to use WordPress application passwords for authentication.

What are the requirements to use this integration?

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

Can I run the server on a specific port?

Yes, you can specify a port when starting the server.