WordPress MCP Server
by gopalcnepal
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.
Last updated: N/A
What is WordPress MCP Server?
The WordPress MCP Server is a Python-based server that utilizes the Model Context Protocol (MCP) to interact with WordPress sites via their REST API. It allows users to programmatically fetch various types of content and site information from a WordPress installation.
How to use WordPress MCP Server?
To use the server, you need to install Python 3.13, enable the REST API on your WordPress site, and install the required dependencies using UV. Configure the server by setting the WORDPRESS_URL
in a .env
file. Then, start the server using uv run main.py
. Finally, configure Claude for Desktop to use the server by adding the server configuration to the claude_desktop_config.json
file.
Key features of WordPress MCP Server
Fetches WordPress site information
Retrieves recent posts
Lists all categories
Gets posts in a specific category
Retrieves site pages
Gets a specific post by ID
Gets a specific page by ID
Robust error handling for various issues
Use cases of WordPress MCP Server
Automating content retrieval from WordPress sites
Integrating WordPress data into other applications
Building custom WordPress dashboards
Creating automated reports based on WordPress content
FAQ from WordPress MCP Server
What is MCP?
What is MCP?
MCP stands for Model Context Protocol, a protocol for interacting with different data sources.
Do I need a WordPress site to use this server?
Do I need a WordPress site to use this server?
Yes, you need a WordPress site with the REST API enabled.
What Python version is required?
What Python version is required?
Python 3.13 is required.
How do I enable the WordPress REST API?
How do I enable the WordPress REST API?
The WordPress REST API is enabled by default. Ensure it hasn't been disabled by a plugin or configuration.
What if I encounter network errors?
What if I encounter network errors?
The server includes error handling for network errors. Check your network connection and the WordPress site's availability.