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 "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 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityFmaintenanceEnables AI assistants to interact with WordPress sites through the WordPress REST API. Supports multiple WordPress sites with secure authentication, enabling content management, post operations, and site configuration through natural language.24116MIT
- Alicense-qualityDmaintenanceEnables 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.24MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with WordPress sites through REST APIs, allowing programmatic management of posts, users, comments, categories, and tags with secure authentication.2948MIT
- AlicenseCqualityBmaintenanceEnables 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.1003552MIT
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.
WordPress MCP server: generate SEO posts, AI images, autoblog & WooCommerce on your self-hosted site
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/abdulsammad-lgtm/WordPress-MCP-'
If you have feedback or need assistance with the MCP directory API, please join our Discord server