Get the FREE Ultimate OpenClaw Setup Guide →

wordpress-org

A Model Context Protocol (MCP) server that enables Claude Code to analyze, download, and compare WordPress.org plugins with your local plugins. Read https://juanma.codes/2025/09/25/my-first-mcp-server-wordpress-plugin-directory-for-llms/ for more info.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio juanma-wp-wordpress-org-mcp npx -y wordpress-org-mcp-server

How to use

This MCP server enables Claude to work with WordPress.org plugin data. It can search WordPress.org plugins by keyword, fetch detailed information for a plugin, download a plugin as a ZIP, extract and inspect its files, list and read individual plugin files, and compare a local plugin against the WordPress.org version. It also provides functionality to generate diffs between plugin versions and view file-level differences. Typical workflows involve searching for plugins of interest, obtaining plugin details, downloading and extracting a plugin, and then comparing your local copy with the official WordPress.org version to identify changes and diffs. The server exposes a set of tools such as search_plugins, get_plugin_info, download_plugin, extract_plugin, list_plugin_files, read_plugin_file, compare_plugins, and get_file_diff to support end-to-end analysis.

How to install

Prerequisites:

  • Node.js and npm installed on your system.
  • Claude CLI installed and authenticated with your workspace (so you can register MCP servers).

Installation steps:

  1. Ensure Node.js and npm are installed. For example:
  2. Verify npm and node:
    • node -v
    • npm -v
  3. Ensure Claude CLI is installed. If needed, install globally (example):
    • npm install -g claude-cli
  4. Register the MCP server using the recommended command from the README: claude mcp add wordpress-org npx wordpress-org-mcp-server
  5. Verify registration: claude mcp list
  6. (Optional) Configure custom cache/extraction directories via environment variables as documented below.

Note: After registration, you can run the MCP server via npx wordpress-org-mcp-server and begin using the available tools through Claude.

Additional notes

Environment variables:

  • WP_MCP_CACHE_DIR: Custom directory for downloaded ZIP files
  • WP_MCP_EXTRACT_DIR: Custom directory for extracted plugin files

Storage locations:

  • The server stores downloads and extractions in system directories by default. You can customize these locations before registration. If you encounter permissions issues or disk space warnings, consider setting WP_MCP_CACHE_DIR and WP_MCP_EXTRACT_DIR to paths with ample space.

Troubleshooting tips:

  • "Plugin not found" errors typically mean the plugin slug is incorrect or not available on WordPress.org.
  • Download failures may be caused by network issues; check connectivity and WordPress.org availability.
  • Extraction errors can result from insufficient permissions or corrupted ZIPs; ensure write permissions and retry.

Supported file types for diffing and inspection include PHP, JS, CSS, text/config files; binary files are compared by size only when diffing.

Related MCP Servers

Sponsor this space

Reach thousands of developers