WordPress MCP Server

MCP server for WordPress. Manage posts, users, comments, terms, metadata, and settings.

stdiocommunityapplication

Package Details

Transportstdio
Runtimenpx

Runtime Arguments

Named
-y
Automatically confirm npx package installation

Package Arguments

Positional
Position 0
localCommand to run (local, remote, http, utils)
Position 1
startSubcommand to start the local MCP server

Environment Variables

LOCAL_USERNAME
Required

WordPress username to assume for capability checks

WP_DB_HOST
Required

WordPress database host

WP_DB_PORT
Default:3306

WordPress database port

WP_DB_NAME
Required

WordPress database name

WP_DB_USER
Required

WordPress database user

WP_DB_PASSWORD
RequiredSecret

WordPress database password

LOCAL_MULTISITE
Default:false

Enable WordPress multisite mode

LOCAL_DEFAULT_BLOG_ID
Default:1

Default blog ID for multisite

LOCAL_DEFAULT_SITE_ID
Default:1

Default site ID for multisite

LOCAL_SSL_ENABLED
Default:false

Enable SSL for database connection

LOCAL_SSL_CA_FILEPATH

Path to SSL CA certificate file

LOCAL_SSL_CERT_FILEPATH

Path to SSL certificate file

LOCAL_SSL_KEY_FILEPATH

Path to SSL key file