WordPress MCP Server
Enables comprehensive management of WordPress sites including posts, users, media, categories, tags, and site settings via the WordPress REST API.
README
WordPress MCP Server
A Model Context Protocol (MCP) server for managing WordPress sites via the REST API. This server provides 18 tools for comprehensive WordPress management including posts, users, media, categories, tags, and site settings.
Features
Posts Management (6 tools)
- list_posts: List posts with filtering options (status, date, author, categories, tags)
- retrieve_post: Get detailed information about a specific post
- create_post: Create new posts with full metadata support
- update_post: Update existing posts with selective field updates
- delete_post: Delete posts (with trash/permanent delete options)
Users Management (3 tools)
- list_users: List site users (admin permission required)
- get_me: Get current user information and capabilities
- validate_credential: Test WordPress authentication
Media Management (3 tools)
- list_media: List media files with filtering options
- update_media: Update media metadata (title, slug, author)
- delete_media: Delete media files
Categories Management (4 tools)
- list_categories: List categories with search and filtering
- create_category: Create new categories with hierarchy support
- update_category: Update existing category information
- delete_category: Remove categories
Tags Management (4 tools)
- list_tags: List tags with search and filtering
- create_tag: Create new tags
- update_tag: Update existing tag information
- delete_tag: Remove tags
Site Management (1 tool)
- get_site_settings: Get WordPress site settings (admin required)
Prerequisites
WordPress Site Requirements
- WordPress.com sites are NOT supported - only self-hosted WordPress sites (TODO: verify this)
- Permalinks must be configured - go to Settings > Permalinks and choose any structure other than "Plain"
- Application Password required - regular WordPress passwords won't work
Setting up Application Password
- Go to your WordPress admin dashboard
- Navigate to Users > Your Profile
- Scroll to "Application Passwords" section
- Click "Add New Application Password"
- Give it a name (e.g., "MCP Server") and click "Add New Application Password"
- Copy the generated password - you'll need this for the
WORDPRESS_PASSWORDenvironment variable
Installation
- Clone or download this project
- Install dependencies using uv:
uv sync
Environment Variables
WORDPRESS_SITE: The full URL to your WordPress site (with https:// or http://)WORDPRESS_USERNAME: Your WordPress username (not email)WORDPRESS_PASSWORD: The application password you created (NOT your regular WordPress password)
Usage
Running the MCP Server
uv run python main.py
Development
The project structure:
wordpress-mcp/
├── src/
│ ├── config.py # Configuration and WordPress client
│ ├── server.py # FastMCP server setup
│ └── tools/ # Individual tool implementations
│ ├── posts.py # Posts management
│ ├── users.py # Users management
│ ├── media.py # Media management
│ ├── categories.py # Categories management
│ ├── tags.py # Tags management
│ └── site.py # Site settings
├── main.py # Server entry point
└── pyproject.toml # Dependencies and configuration
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
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.