Sign In

@luminarylane/wordpress-mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@luminarylane/wordpress-mcp-server

WordPress MCP Server — blog publishing via REST API + Application Passwords

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
124
-46.78%
Maintainers
1
Weekly downloads
 
Created
Source

WordPress MCP Server

MCP TypeScript License

A Model Context Protocol (MCP) server that connects Claude Desktop (and other MCP clients) to self-hosted WordPress sites via the REST API and Application Passwords — list posts, create drafts, publish, upload media, and manage comments.

Features

11 WordPress Tools

SENSE (read-only):

ToolDescription
wp_get_site_infoSite information — name, URL, description, namespaces, auth status
wp_list_postsList posts filtered by status, keyword search
wp_get_postFull post content, title, status, categories, tags, metadata
wp_list_commentsComments on posts, optionally filtered by post ID
wp_list_categoriesList categories (find IDs before creating posts)
wp_list_tagsList tags (find IDs before creating posts)

ACT (write):

ToolDescription
wp_create_postCreate a new post (defaults to draft — human review before publish)
wp_update_postUpdate an existing post (also how you publish a draft)
wp_delete_postDelete a post by ID (irreversible)
wp_create_commentCreate a comment on a post
wp_upload_mediaUpload an image from URL to the media library

Built-in Reliability

  • Token-bucket rate limiting — separate read (600/min) and write (120/min) buckets to avoid tripping hosting WAFs
  • Exponential backoff retry — automatic retry with backoff on HTTP 429 and 5xx errors
  • Structured logging — pino logger with credential redaction
  • Prompt injection protection — wraps external API data in randomized markers

Quick Start

Prerequisites

  • Node.js 22.14+
  • A self-hosted WordPress 5.6+ site (WordPress.com hosted sites are not supported)
  • An Application Password for your WordPress user

Creating an Application Password

  • Log in to your WordPress admin dashboard
  • Go to Users → Profile
  • Scroll to Application Passwords
  • Enter a name (e.g., "MCP Server") and click Add New Application Password
  • Copy the generated password (shown only once)

Installation

Run directly with npx (pin a version in production):

npx --yes @luminarylane/wordpress-mcp-server@1.0.3

Configuration

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "wordpress": {
      "command": "npx",
      "args": ["--yes", "@luminarylane/wordpress-mcp-server@1.0.3"],
      "env": {
        "WORDPRESS_URL": "https://your-site.com",
        "WORDPRESS_USERNAME": "admin",
        "WORDPRESS_APP_PASSWORD": "xxxx xxxx xxxx xxxx xxxx xxxx"
      }
    }
  }
}

Environment variables:

VariableRequiredDescription
WORDPRESS_URLYesYour WordPress site URL (e.g., https://example.com)
WORDPRESS_USERNAMEYesWordPress username
WORDPRESS_APP_PASSWORDYesApplication Password (spaces are stripped automatically)
LOG_LEVELNoLogging level (default: info)

Usage Examples

Once configured, ask Claude to:

  • "List my WordPress drafts"
  • "Create a blog post about AI trends in 2025" (creates as draft by default)
  • "Show me the full content of post #42"
  • "Publish my draft post #123"
  • "Upload this image and set it as the featured image for post #42"
  • "What categories do I have on my site?"
  • "List the comments on my latest post"
  • "Delete post #99"

Permissions

The Application Password inherits the WordPress user's role. For full functionality:

  • Administrator or Editor role is recommended
  • At minimum, the user needs edit_posts, publish_posts, upload_files, and moderate_comments capabilities

Contributing

  • Fork the repo
  • Create a feature branch (git checkout -b feat/my-feature)
  • Make changes and test locally
  • Submit a pull request

License

MIT License — see LICENSE for details.

Acknowledgments

FAQs

Package last updated on 05 Aug 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts