WordPress MCP Server

WordPress MCP Server

A comprehensive MCP server for managing WordPress sites through the REST API, featuring 38 tools for content, media, plugin, and theme management. It supports secure Application Password authentication and offers specific compatibility for Divi theme shortcode structures.

Category
Visit Server

README

WordPress MCP Server

A TypeScript Model Context Protocol (MCP) server for managing WordPress sites via the REST API. Supports any WordPress 5.6+ site, including sites using the Divi theme.

Features

  • 38 tools across 8 categories for comprehensive WordPress management
  • Application Passwords authentication (secure, no plugins required)
  • Divi-compatible — reads/writes Divi shortcode content via standard REST API
  • Rate limiting with configurable token bucket
  • Health checks for connection diagnostics

Quick Start

1. Generate an Application Password

In your WordPress admin panel:

  1. Go to Users → Profile
  2. Scroll to Application Passwords
  3. Enter a name (e.g., "Claude MCP") and click Add New Application Password
  4. Copy the generated password (spaces are part of the password)

Application Passwords require HTTPS on your site.

2. Register with Claude Code

claude mcp add wordpress -e WP_SITE_URL=https://your-site.com -e WP_USERNAME=admin -e WP_APPLICATION_PASSWORD="xxxx xxxx xxxx xxxx xxxx" -- node /path/to/wordpress-mcp/build/index.js

3. Build from Source

git clone https://github.com/gdamalis/wordpress-mcp.git
cd wordpress-mcp
npm install
npm run build

Environment Variables

Variable Required Default Description
WP_SITE_URL Yes WordPress site URL (must use HTTPS)
WP_USERNAME Yes WordPress username
WP_APPLICATION_PASSWORD Yes Application Password (include spaces)
WP_RATE_LIMIT No 30 Max requests per rate window
WP_RATE_WINDOW No 10000 Rate window in milliseconds
WP_TIMEOUT No 30000 Request timeout in milliseconds

Tools Reference

Content Management (10 tools)

Tool Description
list_posts List posts with filters (status, category, tag, author, search, date range)
get_post Get a single post by ID with full raw content
create_post Create a new post (supports HTML and Divi shortcodes)
update_post Update post fields
delete_post Trash or permanently delete a post
list_pages List pages with filters
get_page Get a single page by ID with full raw content
create_page Create a new page
update_page Update page fields
search_content Search across all content types

Media Management (4 tools)

Tool Description
list_media List media library items
get_media Get media item with all size URLs
upload_media Upload from URL or base64 data
update_media Update alt text, caption, description

Taxonomy Management (5 tools)

Tool Description
list_categories List categories
create_category Create a category
list_tags List tags
create_tag Create a tag
manage_post_terms Set categories/tags on a post

Comment Moderation (4 tools)

Tool Description
list_comments List comments with status filters
get_comment Get comment details
moderate_comment Change comment status (approve/hold/spam/trash)
reply_to_comment Reply as the authenticated user

User Management (3 tools)

Tool Description
list_users List users with role filters
get_user Get user profile
get_current_user Get the authenticated user's profile

Plugin & Theme Management (5 tools)

Tool Description
list_plugins List installed plugins with status
toggle_plugin Activate or deactivate a plugin
list_themes List installed themes
get_active_theme Get active theme details
switch_theme Activate a different theme

Site Settings (4 tools)

Tool Description
get_site_info Get site name, URL, WP version, namespaces
get_settings Get site settings (title, tagline, timezone, etc.)
update_settings Update site settings
get_post_types List registered post types (discover Divi layouts)

Navigation Menus (3 tools)

Tool Description
list_menus List navigation menus
get_menu Get menu details
update_menu Update menu name, description, locations

Health (2 tools)

Tool Description
get_health Quick connection and auth check
get_health_detailed Comprehensive check of all API endpoints

Divi Theme Support

This MCP works with Divi-powered sites through the standard WordPress REST API:

  • Reading Divi pages: get_post and get_page return raw content with context=edit, exposing Divi shortcode structures like [et_pb_section][et_pb_row]...
  • Creating Divi pages: Use create_page with Divi shortcodes in the content field
  • Updating Divi pages: Modify shortcode content via update_page
  • Discovering Divi layouts: Use get_post_types to find Divi's et_pb_layout custom post type (Divi Library items)

Security

  • HTTPS is enforced (Application Passwords are Base64-encoded and require transport encryption)
  • Credentials are loaded from environment variables only, never stored on disk
  • Minimum role required: Editor for content operations, Administrator for plugin/theme management
  • Media uploads accept URLs and base64 only — no local filesystem access

WordPress Role Requirements

Tools Minimum Role
Content, Media, Taxonomy, Comments Editor
Users (read-only) Author
Plugins, Themes, Settings Administrator

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured