Back to Home
Akungapaul icon

wp-themes-mcp

by Akungapaul

Overview

WordPress theme management and automation through a Model Context Protocol (MCP) server, allowing agents to list, activate, install, delete, and create WordPress themes.

Installation

Run Command
node server.js

Environment Variables

  • WORDPRESS_URL
  • WORDPRESS_USERNAME
  • WORDPRESS_APP_PASSWORD
  • ENABLE_WP_CLI
  • WP_CLI_PATH
  • WORDPRESS_PATH
  • SSH_HOST
  • SSH_PORT
  • SSH_USER
  • SSH_KEY_PATH

Security Notes

The server uses `cliClient.exec` to run WP-CLI commands. In `get_theme_mods` and `create_child_theme` tools, user-provided arguments (`args.theme`, `args.child_slug`, `args.parent_theme`) are directly interpolated into the shell command string without explicit sanitization beyond Zod type validation. This creates a high risk of command injection if a malicious actor or agent provides specially crafted input, allowing arbitrary command execution on the host where WP-CLI is run. Although other WP-CLI calls like `activateTheme` or `installTheme` might be safer if `WPCLIClient` performs internal sanitization, the direct `exec` interpolation is a critical vulnerability.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2025-11-28

Tags

wordpressmcpthemestheme managementWP-CLI