WordPress MCP Server
Provides tools for managing WooCommerce products, orders, and customers within a WordPress site.
Allows interaction with a WordPress site, providing tools for managing posts, pages, media, users, categories, tags, plugins, themes, menus, and site information.
Click on "Deploy 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 MCP Serverlist my recent draft posts"
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
A production-ready Model Context Protocol (MCP) server for WordPress integration. Enables AI agents to interact with WordPress websites through structured tools.
Features
39 WordPress tools covering posts, pages, media, users, categories, tags, plugins, themes, menus, and WooCommerce
Secure authentication using WordPress Application Passwords
Destructive operation protection requiring explicit confirmation
Structured error handling with detailed error codes
Pagination support for list operations
Environment-based configuration for credentials
Related MCP server: WordPress MCP Server
Prerequisites
Node.js 18+
WordPress site with REST API enabled
WordPress Application Password for authentication
Installation
npm install
npm run buildConfiguration
Create a .env file in the project root:
WORDPRESS_URL=https://your-wordpress-site.com
WORDPRESS_USERNAME=your-username
WORDPRESS_APP_PASSWORD=your-application-passwordGenerating Application Passwords
Go to WordPress Admin → Users → Your Profile
Scroll to "Application Passwords"
Enter a name (e.g., "MCP Server")
Click "Add New Application Password"
Copy the generated password
Usage
Running the Server
# Development
npm run dev
# Production
npm startIntegration with MCP Clients
Add to your MCP client configuration:
{
"mcp": {
"wordpress": {
"type": "local",
"command": ["node", "/path/to/wordpress-mcp-server/dist/index.js"],
"environment": {
"WORDPRESS_URL": "https://your-site.com",
"WORDPRESS_USERNAME": "your-username",
"WORDPRESS_APP_PASSWORD": "your-app-password"
}
}
}
}Available Tools
Site Operations
Tool | Description |
| Get site name, description, URLs |
| Get site configuration |
| Get health diagnostics |
| Get performance metrics |
| Search content across site |
Post Operations
Tool | Description |
| List posts with filtering |
| Get single post by ID |
| Create new post |
| Update existing post |
| Delete post (requires confirmation) |
| Publish draft post |
Page Operations
Tool | Description |
| List pages with filtering |
| Get single page by ID |
| Create new page |
| Update existing page |
| Delete page (requires confirmation) |
Media Operations
Tool | Description |
| List media library items |
| Upload media file |
| Delete media (requires confirmation) |
User Operations
Tool | Description |
| List users with filtering |
| Get single user by ID |
| Create new user |
| Update existing user |
Taxonomy Operations
Tool | Description |
| List categories |
| Create new category |
| List tags |
| Create new tag |
Plugin Operations
Tool | Description |
| List installed plugins |
| Activate plugin (requires confirmation) |
| Deactivate plugin (requires confirmation) |
Theme Operations
Tool | Description |
| List installed themes |
| Activate theme (requires confirmation) |
Menu Operations
Tool | Description |
| Get navigation menus |
| Update menu |
WooCommerce Operations
Tool | Description |
| List products |
| Create product |
| Update product |
| List orders |
| List customers |
Security
Credentials stored in environment variables (never exposed in output)
Destructive operations require explicit confirmation
Read-only operations execute automatically
Authentication for all protected resources
Development
# Run in development mode
npm run dev
# Build for production
npm run build
# Run tests
npm testProject Structure
wordpress-mcp-server/
├── src/
│ ├── index.ts # Entry point
│ ├── server.ts # MCP server setup
│ ├── client/
│ │ └── wordpress.ts # WordPress API client
│ ├── tools/
│ │ ├── index.ts # Tool registration
│ │ ├── definitions.ts # Tool schemas
│ │ ├── site.ts # Site tools
│ │ ├── posts.ts # Post tools
│ │ ├── pages.ts # Page tools
│ │ ├── media.ts # Media tools
│ │ ├── users.ts # User tools
│ │ ├── taxonomies.ts # Taxonomy tools
│ │ ├── plugins.ts # Plugin tools
│ │ ├── themes.ts # Theme tools
│ │ ├── menus.ts # Menu tools
│ │ └── woocommerce.ts # WooCommerce tools
│ ├── validation/
│ │ └── schemas.ts # Zod validation schemas
│ ├── types/
│ │ └── index.ts # TypeScript type definitions
│ └── utils/
│ ├── config.ts # Environment configuration
│ └── logger.ts # Structured logging
├── package.json
├── tsconfig.json
└── .env.exampleLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Publish to self-hosted WordPress from AI agents: markdown, images, SEO, and Notion sync.
Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.
Connect AI agents to 1000+ apps with managed authentication and tool-calling.
Secure MCP Server for WordPress connects AI assistants and agents to WordPress with secure, controlled access. It lets AI interact with WordPress through MCP while helping organizations manage access, enforce policies, protect non-human identities (NHI), and require human approval for sensitive actions. Use it to securely connect tools such as ChatGPT, Claude, and Cursor with WordPress. Marketplace Link: https://wordpress.org/plugins/miniorange-secure-mcp-server/ Official website: https://plugins.miniorange.com/mcp-server-ai-policy-enforcement-wordpress
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with WordPress sites through the REST API. Supports multiple WordPress sites with secure authentication, enabling content management, post operations, and site configuration through natural language.21 npmMIT
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with WordPress sites through REST APIs, allowing programmatic management of posts, users, comments, categories, and tags with secure authentication.2949MIT
- AlicenseCqualityCmaintenanceEnables AI agents to manage WordPress sites with 190+ tools for content management, theme/plugin customization, file system operations, WooCommerce, and complete site control through natural language.10030 npm56MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to manage WordPress sites through the WordPress REST API, supporting content, media, users, settings, and Elementor management with safety policies for production use.MIT