mcp-for-wordpress

mcp-for-wordpress

3.4

This is a streamlined version of the Model Context Protocol (MCP) TypeScript SDK that focuses specifically on WordPress integration.

The WordPress MCP Integration is designed to facilitate seamless interaction with WordPress sites through the WordPress REST API using the Model Context Protocol (MCP). This integration allows users to create, retrieve, and update WordPress posts efficiently. By leveraging the MCP protocol, developers can automate content management tasks on WordPress sites, enhancing productivity and streamlining workflows. The integration supports configuration through environment variables or direct request parameters, providing flexibility in setup. Security is prioritized by recommending the use of WordPress application passwords. The integration is built on Node.js and requires a WordPress site with REST API enabled.

Features

  • Create new WordPress posts using the MCP protocol.
  • Retrieve existing WordPress posts with customizable parameters.
  • Update existing WordPress posts, including title, content, and status.
  • Flexible configuration through environment variables or request parameters.
  • Security enhancement by using WordPress application passwords.

MCP Tools

  • {'create_post': 'Creates a new WordPress post with specified title, content, and status.'}
  • {'get_posts': 'Retrieves WordPress posts with options for pagination and number of posts per page.'}
  • {'update_post': 'Updates an existing WordPress post with new title, content, or status.'}

Usage with Different Platforms

Node.js

bash
npm run server

Custom Port

bash
npm run server 3000