WordPress Plugin Directory MCP Server

WordPress Plugin Directory MCP Server

Enables searching, downloading, extracting, and comparing WordPress.org plugins with local plugins via natural language.

Category
访问服务器

README

WordPress Plugin Directory MCP Server

Tests

npm version npm downloads

A Model Context Protocol (MCP) server that enables Claude Code to analyze, download, and compare WordPress.org plugins with your local plugins.

🔗 Repository: https://github.com/juanma-wp/wordpress-org-mcp

Features

  • Search plugins on WordPress.org by keyword
  • Download plugins directly from WordPress.org
  • Extract and analyze plugin files
  • Compare local plugins with WordPress.org versions
  • Generate detailed diffs between plugin versions
  • Browse plugin file structures

Installation & Setup

# Register with Claude CLI
claude mcp add wordpress-org npx wordpress-org-mcp-server

# Verify registration
claude mcp list

Available Tools

search_plugins

Search for WordPress.org plugins by keyword.

Parameters:

  • query (string): Search query
  • limit (number, optional): Maximum results (default: 10)

Example:

Search for "jwt authentication" plugins

get_plugin_info

Get detailed information about a specific plugin.

Parameters:

  • slug (string): Plugin slug

Example:

Get info for plugin "jwt-authentication-for-wp-rest-api"

download_plugin

Download a plugin from WordPress.org.

Parameters:

  • slug (string): Plugin slug
  • version (string, optional): Version (default: "latest")

extract_plugin

Extract a downloaded plugin ZIP file.

Parameters:

  • slug (string): Plugin slug
  • zip_path (string, optional): Path to ZIP file

list_plugin_files

List files in an extracted plugin.

Parameters:

  • slug (string): Plugin slug
  • extension (string, optional): Filter by extension (.php, .js, etc.)

read_plugin_file

Read contents of a specific plugin file.

Parameters:

  • slug (string): Plugin slug
  • file_path (string): Relative path to file

compare_plugins

Compare local plugin with WordPress.org version.

Parameters:

  • local_path (string): Path to local plugin directory
  • wp_org_slug (string): WordPress.org plugin slug
  • format (string, optional): "summary" or "detailed" (default: "summary")

Example:

Compare my local plugin with WordPress.org version:
- local_path: "/absolute/path/to/rest-auth-jwt"
- wp_org_slug: "jwt-authentication-for-wp-rest-api"

get_file_diff

Get detailed diff for a specific file.

Parameters:

  • local_path (string): Path to local plugin
  • wp_org_slug (string): WordPress.org plugin slug
  • file_path (string): Relative path to file

Example Workflow

  1. Search for similar plugins:

    Search for JWT authentication plugins to see what's available
    
  2. Get plugin details:

    Get detailed info for "jwt-authentication-for-wp-rest-api"
    
  3. Compare with your local plugin:

    Compare my local plugin at "/path/to/my/plugin" with "jwt-authentication-for-wp-rest-api"
    
  4. Examine specific differences:

    Show me the diff for "includes/class-auth.php" between my plugin and "jwt-authentication-for-wp-rest-api"
    

Plugin Storage Locations

The server stores downloaded and extracted plugins in system directories to avoid cluttering your project workspace:

Default Locations

macOS:

  • Cache (downloads): ~/Library/Caches/wordpress-org-mcp/
  • Extractions: /tmp/wordpress-org-mcp-extractions/

Linux:

  • Cache (downloads): ~/.cache/wordpress-org-mcp/ (or $XDG_CACHE_HOME/wordpress-org-mcp/)
  • Extractions: /tmp/wordpress-org-mcp-extractions/

Windows:

  • Cache (downloads): %LOCALAPPDATA%\wordpress-org-mcp\Cache\
  • Extractions: %TEMP%\wordpress-org-mcp-extractions\

Customizing Storage Locations

Set these environment variables before registering the MCP server:

# Set custom paths
export WP_MCP_CACHE_DIR="/path/to/custom/cache"
export WP_MCP_EXTRACT_DIR="/path/to/custom/extractions"

# Register the MCP server (will use custom paths)
claude mcp add wordpress-org npx wordpress-org-mcp-server

**Persistent Setup:**
Add the environment variables to your shell profile (`.bashrc`, `.zshrc`, `.bash_profile`, etc.):

```bash
echo 'export WP_MCP_CACHE_DIR="/path/to/custom/cache"' >> ~/.zshrc
echo 'export WP_MCP_EXTRACT_DIR="/path/to/custom/extractions"' >> ~/.zshrc
source ~/.zshrc

Environment Variables:

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

Why System Directories?

  • No Git conflicts: Downloaded plugins won't appear in your project's version control
  • Cross-platform compatibility: Uses appropriate directories for each operating system
  • Easy cleanup: Temporary extractions are automatically cleaned up on system restart

Development

# Watch mode for development
npm run dev

# Build for production
npm run build

# Start the server
npm start

Troubleshooting

  1. "Plugin not found" errors: Verify the plugin slug is correct on WordPress.org
  2. Download failures: Check internet connection and WordPress.org availability
  3. Extraction errors: Ensure sufficient disk space and file permissions

Supported File Types

  • PHP files (.php)
  • JavaScript files (.js)
  • CSS files (.css)
  • Text files (.txt, .md)
  • Configuration files (.json, .xml, .yml)

Binary files are compared by size only.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选