Back to Home
Akungapaul icon

wp-media-mcp

by Akungapaul

Overview

Manages WordPress media library programmatically through a Model Context Protocol (MCP) server, allowing AI agents to upload, retrieve, list, update, and delete media.

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 `upload_media` tool handler is vulnerable to Server-Side Request Forgery (SSRF) as it fetches an arbitrary URL provided by the user (`args.source`) without sufficient validation or sanitization. This could lead to internal network scanning, access to sensitive internal resources, or denial-of-service by downloading large or malicious files. Additionally, the WP-CLI integration, while not directly exploitable for command injection in the provided snippet, relies on the `WPCLIClient` implementation in a shared library for robustness. Broad commands like `regenerate_thumbnails` without a specific ID could be resource-intensive if triggered maliciously on a large WordPress site.

Similar Servers

Stats

Interest Score0
Security Score4
Cost ClassMedium
Avg Tokens5000
Stars0
Forks0
Last Update2025-11-28

Tags

wordpressmcpmediaimagesapi