WordPress MCP Integration logo

WordPress MCP Integration

by rizaardiyanto1412

A streamlined Model Context Protocol (MCP) TypeScript SDK for 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) via the WordPress REST API. It provides tools to create, retrieve, and update WordPress posts.

How to use WordPress MCP Integration?

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

Key features of WordPress MCP Integration

  • Create WordPress posts

  • Retrieve WordPress posts

  • Update WordPress posts

  • Uses WordPress REST API

  • Configuration via environment variables or request parameters

  • Uses WordPress application passwords for security

Use cases of WordPress MCP Integration

  • Automated content creation on WordPress

  • Programmatically retrieving and displaying WordPress content

  • Updating WordPress posts from external applications

  • Integrating WordPress with other systems using MCP

  • Managing WordPress content through a command-line interface

FAQ from WordPress MCP Integration

What is the Model Context Protocol (MCP)?

MCP is a protocol that enables structured communication between different systems or applications.

Why use WordPress application passwords?

Application passwords provide a more secure way to authenticate with WordPress, limiting the scope of access compared to your main account password.

How do I enable the WordPress REST API?

The WordPress REST API is enabled by default in recent versions of WordPress. No additional configuration is typically required.

What Node.js version is required?

Node.js version 18.0.0 or higher is required.

How do I run the server on a specific port?

Use the command npm run server [port_number], for example, npm run server 3000.