Skip to main content
Glama
beilunyang

WordPress MCP Server

by beilunyang

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 install

Configuration

Before running the server, make sure to configure the following environment variables:

  • WP_BASE_URL: WordPress site URL

  • WP_USERNAME: WordPress admin username

  • WP_PASSWORD: WordPress admin password

Run Server

pnpm start

Project Structure

src/
├── index.ts      # Server entry point
├── config.ts     # Configuration file
└── wp-client.ts  # WordPress API client implementation

Sponsor

If you like this project, please give it a Star ⭐️ or sponsor me

License

MIT