wordpress-mcp
Manage posts, pages, media, comments, categories, tags, and users through 20 tools.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@wordpress-mcpCreate a new draft post titled 'My First Post'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
WordPress MCP Server
MCP (Model Context Protocol) server for WordPress REST API. Manage posts, pages, media, comments, categories, tags, and users through 20 tools. Secure and optimized edition.
Works with Claude Desktop, Cursor, VS Code, and any MCP client.
Quick Start
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"wordpress": {
"command": "npx",
"args": ["-y", "@alexgenovese/wordpress-mcp"],
"env": {
"WORDPRESS_URL": "https://your-site.com",
"WORDPRESS_USERNAME": "your-username",
"WORDPRESS_APP_PASSWORD": "your-application-password"
}
}
}
}Cursor / VS Code
Add to MCP settings:
{
"mcpServers": {
"wordpress": {
"command": "npx",
"args": ["-y", "@alexgenovese/wordpress-mcp"],
"env": {
"WORDPRESS_URL": "https://your-site.com",
"WORDPRESS_USERNAME": "your-username",
"WORDPRESS_APP_PASSWORD": "your-application-password"
}
}
}
}HTTP Mode (Streamable HTTP)
For remote deployment or shared access:
WORDPRESS_URL=https://your-site.com WORDPRESS_USERNAME=user WORDPRESS_APP_PASSWORD=pass npx @alexgenovese/wordpress-mcp --httpServer starts on port 3000 (configurable via PORT env var). MCP endpoint: http://localhost:3000/mcp
Related MCP server: WordPress MCP Server
Configuration
Environment Variable | Required | Description |
| Yes | WordPress site URL (e.g. |
| Yes | WordPress username |
| Yes | Application Password (see below) |
| No | Port for HTTP server (default: |
How to Create an Application Password
Go to your WordPress Admin → Users → Profile
Scroll down to Application Passwords
Enter a name (e.g. "MCP Server") and click Add New Application Password
Copy the generated password
Important: WordPress displays the password with spaces for readability (e.g.
cUAn CKZ1 u5DN). The server automatically removes spaces — you can paste it as-is.
All Tools (20 tools)
Posts (5 tools)
Tool | Description |
| List posts with filters (status, search, per_page) |
| Get single post with full content |
| Create post (title, content, status, categories, tags) |
| Update post fields |
| Delete post (moves to trash) |
Pages (5 tools)
Tool | Description |
| List pages with status filter |
| Get single page with full content |
| Create page (title, content, status, parent) |
| Update page fields |
| Delete page |
Media (2 tools)
Tool | Description |
| List media files with type filter |
| Permanently delete media file |
Comments (4 tools)
Tool | Description |
| List comments, filter by post |
| Create comment on post |
| Moderate comment (approve/hold/spam/trash) |
| Permanently delete comment |
Taxonomy (2 tools)
Tool | Description |
| List all categories with post counts |
| List all tags with post counts |
Users & Site (2 tools)
Tool | Description |
| List users with roles |
| Get site name, description, URL, timezone |
Requirements
Node.js 18+
WordPress with REST API enabled (enabled by default)
Application Password (WordPress 5.6+)
For Developers
git clone https://github.com/alexgenovese/mcp-wordpress.git
cd mcp-wordpress
npm install
npm run build
# Run in stdio mode
WORDPRESS_URL=https://your-site.com WORDPRESS_USERNAME=user WORDPRESS_APP_PASSWORD=pass npm start
# Run in dev mode (hot reload)
WORDPRESS_URL=https://your-site.com WORDPRESS_USERNAME=user WORDPRESS_APP_PASSWORD=pass npm run dev
# Run in HTTP mode
WORDPRESS_URL=https://your-site.com WORDPRESS_USERNAME=user WORDPRESS_APP_PASSWORD=pass npm start -- --httpLicense
MIT License - see LICENSE
Copyright (c) 2026 Alex Genovese
Links
This server cannot be installed
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/alexgenovese/mcp-wordpress'
If you have feedback or need assistance with the MCP directory API, please join our Discord server