MCP Servers

This plugin helps in configuring and exposing MCP servers on your WordPress site with the selected abilities.

Installation

Add the plugin from Plugins/Add New/Upload. After the first install, the plugin updates automatically.

You can find the plugin on GitHub.

Using the MCP server

To use the MCP server, the external tool must use authentication. I suggest those steps.

  1. Go to the administrator user edit page
  2. Add an application password, copy it

The basic credentials will be the administrator username and the application password after you remove the spaces.

Claude Desktop

To configure some connections, like Claude Desktop with npx mcp-remote, don’t follow the instructions you find on various sites where the username and password are specified; you need the token that you can generate on this site.

Then you need to configure the MCP server as in the claude_desktop_config.json. The configuration can be found by clicking on your name on the bottom left of Claude Desktop, choosing Settings, then Developer, and searching for the button “Edit Config”.

Please keep a copy of the configuration elsewhere, since Claude Desktop resets it if something is wrong! I lost it a few times…

"Your Server Name": {
  "command": "npx",
  "args": [
    "mcp-remote",
    "your MCP server URL as in the the server list",
    "--header",
    "Authorization: Basic <token>"
  ]
}

Replace the Authorization: Basic ... with the one generated by the site. NodeJS, npx, and mcp-remote must be installed.

Under Windows: do not install NodeJS in C:\Program Files but inside a folder without spaces in the name, like C:\Tools. The space in the folder name creates problems for some programs… and those problems are not very easy to understand.

No tools are listed

It happens with some abilities schema declaration. Start enabling the basic abilities, for example, the categories “Site” or “User”. Always completely restart Claude Desktop and check if something has changed.

Logging and Debugging

If WP_DEBUG is set to true, the plugin logs internal actions and attaches to the MCP server an observer which wirite to the error log file.