WordPress MCP Integration logo

WordPress MCP Integration

by Dmitrii-Demenko

This is a streamlined version of the Model Context Protocol (MCP) TypeScript SDK that focuses specifically on WordPress integration. It enables interaction with WordPress sites through the WordPress REST API using the MCP protocol.

View on GitHub

Last updated: N/A

What is WordPress MCP Integration?

The WordPress MCP integration is a tool that allows you to interact with a WordPress site using the Model Context Protocol (MCP) through the WordPress REST API. It provides functionalities to create, retrieve, and update WordPress posts.

How to use WordPress MCP Integration?

  1. Clone the repository and install dependencies using npm install. 2. Configure the integration by setting environment variables (WORDPRESS_SITE_URL, WORDPRESS_USERNAME, WORDPRESS_PASSWORD) or providing credentials directly in the request parameters. 3. Use the available tools (create_post, get_posts, update_post) by sending JSON-RPC requests with the appropriate parameters. 4. Start the server using npm run server or npm run server <port>.

Key features of WordPress MCP Integration

  • Create WordPress posts

  • Retrieve WordPress posts

  • Update WordPress posts

  • Uses WordPress REST API

  • Supports environment variable configuration

  • Supports request parameter configuration

Use cases of WordPress MCP Integration

  • Automated content creation on WordPress

  • Programmatically retrieving and displaying WordPress content

  • Bulk updating of WordPress posts

  • Integrating WordPress content with other applications

  • Managing WordPress content through a standardized protocol (MCP)

FAQ from WordPress MCP Integration

What is an application password in WordPress?

An application password is a password specifically generated for applications to access your WordPress site without using your main account password. It enhances security.

How do I generate an application password in WordPress?

You can generate an application password in your WordPress dashboard under Users → Security → Application Passwords.

What are the requirements to use this integration?

You need Node.js 18.0.0 or higher, a WordPress site with the REST API enabled, and a WordPress application password for authentication.

How do I start the server on a specific port?

Use the command npm run server <port>, replacing <port> with the desired port number (e.g., npm run server 3000).

What is the default status for a new post created with create_post?

The default status is 'draft' if not specified in the parameters.