- Home
- MCP servers
- WordPress
WordPress
- python
0
GitHub Stars
python
Language
3 months ago
First Indexed
3 weeks ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
You deploy and run a centralized MCP server to manage WordPress sites with integrated AI content generation. It lets you perform WordPress CRUD actions, manage media and taxonomies, and generate optimized content through Claude/Anthropic, all from a single server that you control and scale.
How to use
You will interact with the MCP server using either an HTTP/REST client or a local stdio client. In production, the recommended path is to use an HTTP/MCP endpoint from an automation tool like n8n to send prompts and receive generated content. In development or testing, you can run the server locally as a stdio process and talk to it directly from Claude Desktop or a similar client. The server handles WordPress authentication, content generation, SEO optimization, and multilingual content generation, so you only supply prompts and basic post metadata when needed.
Practical usage patterns include: - Generate a full post from a single prompt and publish it to WordPress. - Improve an existing post with AI to boost SEO and readability. - Generate draft content in one language and publish translations in other languages. - Automate posting workflows by triggering MCP prompts from your automation platform. - Manage categories, tags, and media uploads through dedicated MCP tools.
How to install
# 1) Prerequisites
- Python 3.8 or higher
- WordPress site with REST API enabled
- An Anthropic API key (for Claude)
- A running MCP client (n8n, Claude Desktop, or any compatible)
# 2) Clone the MCP server repo and install dependencies
git clone https://github.com/seomentor/wpmcp.git
cd wpmcp
pip install -r requirements.txt
# 3) Set up environment variables (example shown; replace with your values)
# WordPress
export WP_URL=https://your-wordpress-site.com
export WP_USERNAME=your-username
export WP_PASSWORD=your-app-password
# IA - Claude (Anthropic)
export ANTHROPIC_API_KEY=sk-your-anthropic-key
# 4) Start the MCP server (as described in the deployment guide for your setup)
Additional sections
Configuration and usage notes help you tailor the server to your needs. The MCP server uses a central Anthropic API key on the server side, so end users do not need their own IA keys. You will configure a single point of IA access on the server and connect through your MCP client.
Security and access management are important. Always use a WordPress application password rather than your main account password. Ensure that the WordPress user has permissions to edit posts, upload media, and manage categories and tags.
Troubleshooting tips include checking that the Anthropic API key is present and valid, verifying the WordPress REST API is reachable and that the client is configured to point to the MCP endpoint. If content generation fails, verify your IA credits balance and that the prompt is clear and specific.
Deployment notes: you can run the server as an HTTP endpoint for tools like n8n, Postman, Zapier, or Make.com, or run it locally as a stdio process for development workflows. The server provides tools for listing and managing WordPress posts, categories, and tags, as well as AI-assisted content generation and post improvements.
Available tools
list_categories
Lists all WordPress categories.
list_posts
Lists posts with pagination.
search_posts
Search posts by a term.
create_post
Create a new WordPress post.
update_post
Update an existing WordPress post.
delete_post
Delete a WordPress post.
upload_media
Upload a media item to WordPress.
list_tags
List all WordPress tags.
search_tags
Search tags by term.
create_tag
Create a new WordPress tag.
generate_post_with_ai
Generate a complete post using AI and publish.
improve_post_with_ai
Improve an existing post with AI for SEO and readability.
generate_content_from_prompt
Generate content from a prompt without publishing (JSON output).