mcp-wordpress

mcp-wordpress

3

The project is an MCP server designed to interact with WordPress sites. It allows users to fetch site information, posts, categories, and pages through a standardized API. It includes robust error handling and requires minimal setup to integrate with existing WordPress installations.

WordPress MCP Server

A Model Context Protocol (MCP) server for interacting with WordPress sites. This server provides tools to fetch posts, pages, categories, and site information from any WordPress installation with REST API enabled.

Prerequisites

  • Python 3.13
  • WordPress site with REST API enabled
  • UV package installer

Installation

  1. Install UV (Universal Virtualenv)
  2. Clone the repository
  3. Create and activate a virtual environment
  4. Install dependencies

Configuration

Create a .env file with your WordPress URL.

Usage

Start the server and configure your client as needed. The server offers tools like fetch_wordpress_info, fetch_posts, fetch_categories, and more.

Error Handling

Includes handling for invalid JSON responses, network errors, WordPress API errors, and more.