Skip to main content

wp-content-mcp

MCP server for WordPress content — let an AI assistant (Claude Desktop, Claude Code, Cursor, …) write blog posts and news, edit existing pages, manage categories and tags and upload images, through natural language.

  • No plugin needed. Works with any WordPress 5.6+ site over the standard REST API, authenticated with a built-in Application Password.
  • Drafts by default. New content is saved as a draft; the assistant only publishes when you ask it to.
  • Precise edits. replace_text changes one sentence or paragraph and leaves the rest of the page — including block markup — untouched.
  • Runs locally over stdio. Your credentials stay on your machine; there is no telemetry and no proxy.

Install

pip install wp-content-mcp

Requires Python 3.10+.

Create an Application Password

In wp-admin go to Users → Profile → Application Passwords, enter a name (e.g. "Claude") and click Add New Application Password. Copy the password that appears; WordPress shows it only once.

Use an account with the Editor role (or Author, if it should only manage its own posts) rather than an administrator.

export WP_URL=https://example.com
export WP_USERNAME=your-username
export WP_APP_PASSWORD="abcd efgh ijkl mnop qrst uvwx"

WP_URL must use https://. For a local test site, set WP_ALLOW_HTTP=1.

Register in your MCP client

Claude Code:

claude mcp add wordpress \
  -e WP_URL=https://example.com \
  -e WP_USERNAME=your-username \
  -e WP_APP_PASSWORD="abcd efgh ijkl mnop qrst uvwx" \
  -- wp-content-mcp

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "wordpress": {
      "command": "wp-content-mcp",
      "env": {
        "WP_URL": "https://example.com",
        "WP_USERNAME": "your-username",
        "WP_APP_PASSWORD": "abcd efgh ijkl mnop qrst uvwx"
      }
    }
  }
}

Tools

Tool What it does
whoami Site name, logged-in user, roles and permissions
list_posts Find posts or pages (search, status, paging)
get_post Read one post or page including its editable content
create_post New post or page — draft unless you ask to publish
update_post Change title, content, status, excerpt, slug, categories, tags, featured image or date
replace_text Replace one passage in a post or page
trash_post Move to trash (recoverable)
list_terms List categories or tags
upload_media Upload an image, video, audio file or PDF
wp_request Call any other REST endpoint

Categories and tags are passed by name; missing ones are created. Custom post types work too: pass their REST base as post_type.

Example prompts

  • "Write a news post about our new opening hours in the category News, as a draft."
  • "On the Contact page, change the phone number to 020 123 4567."
  • "Show me all draft posts and publish the one about the summer sale."
  • "Upload ~/Pictures/team.jpg with alt text 'Our team' and use it as the featured image of post 128."

How this differs from WordPress/mcp-adapter

The official mcp-adapter is a framework for developers: it is a plugin that exposes abilities that other plugins register, via WP-CLI or an HTTP proxy. wp-content-mcp is a ready-made content tool: nothing to install on the site, ten tools that cover everyday editing work, set up in two minutes.

Development

pip install -e ".[dev]"
pytest

License

AGPL-3.0-or-later, see LICENSE. A commercial license is available, see LICENSE-COMMERCIAL.md.

WordPress is a registered trademark of the WordPress Foundation. This project is not affiliated with or endorsed by the WordPress Foundation.

Metadata

Release files for wp-content-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wp-content-mcp 0.1.0
File Size Uploaded Provenance Actions
wp_content_mcp-0.1.0.tar.gz 22.2 kB With provenance Details for wp_content_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wp-content-mcp 0.1.0
File Interpreter ABI Platform Actions
wp_content_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for wp_content_mcp-0.1.0-py3-none-any.whl

Total release size: 46.1 kB

Release files / wp_content_mcp-0.1.0.tar.gz

Download URL wp_content_mcp-0.1.0.tar.gz
Size 22.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8f0dedd4bb68c833b33cc5fb4984450c86f3ccfb63c33727d80dc9084f88563b
BLAKE2b-256 checksum
How to use checksums
2178bc0cb161c5949935a0a390fffce9ca2f98abeada098de2e0871711656636
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Release files / wp_content_mcp-0.1.0-py3-none-any.whl

Download URL wp_content_mcp-0.1.0-py3-none-any.whl
Size 23.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2fbc516d48fc562bd8a611740ab66b16435a64719552d5345be9e0d7f98b4b54
BLAKE2b-256 checksum
How to use checksums
2f2e4a53035fe639f06799b9ec9ed912af0139eabd900ad896f53fa9ec5aee6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Security for wp-content-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wp_content_mcp-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page