WordPress MCP Server
WordPress MCP Server
This is a Model Context Protocol (MCP) server implementation for WordPress integration. The server enables AI assistants to interact with WordPress blog systems, providing automated content management and publishing capabilities.
Features
Support blog post search
Support post details retrieval
Support blog post draft creation
Support comment retrieval
Full MCP protocol specification compliance
Built with TypeScript for type safety
Tech Stack
Node.js
TypeScript
MCP SDK (@modelcontextprotocol/sdk)
WordPress REST API
Quick Start
Install Dependencies
pnpm installConfiguration
Before running the server, make sure to configure the following environment variables:
WP_BASE_URL: WordPress site URLWP_USERNAME: WordPress admin usernameWP_PASSWORD: WordPress admin password
Run Server
pnpm startProject Structure
src/
├── index.ts # Server entry point
├── config.ts # Configuration file
└── wp-client.ts # WordPress API client implementationSponsor
If you like this project, please give it a Star ⭐️ or sponsor me
License
MIT