# MCP Wordpress [Health: Active]

**Category:** 🛠️ Other Tools and Integrations  
**Repository:** https://github.com/crunchtools/mcp-wordpress  
**GitHub Stars:** 1  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-wordpress

## Description
Secure MCP server for WordPress content management

## Tools
Capabilities this server exposes over MCP:

- **wordpress_get_site_info** — Get WordPress site information.

Returns site title, description, URL, timezone, and other settings.
- **wordpress_test_connection** — Test connection to WordPress REST API.

Verifies API credentials and returns connection status.
- **wordpress_list_posts** — List WordPress posts with filtering and pagination.
- **wordpress_get_post** — Get a single WordPress post by ID with its saved source.
- **wordpress_search_posts** — Search WordPress posts by keyword in title and content.
- **wordpress_create_post** — Create a new WordPress post.
- **wordpress_update_post** — Update an existing WordPress post. To change part of the content, use edit_post.
- **wordpress_edit_post** — Replace text in a WordPress post's source, without resending the post.
- **wordpress_edit_draft** — Replace text in a draft or pending WordPress post's source. Refuses any other status.
- **wordpress_delete_post** — Delete or trash a WordPress post.
- **wordpress_list_revisions** — List revisions for a WordPress post.
- **wordpress_get_revision** — Get a specific revision of a WordPress post.
- **wordpress_list_categories** — List available WordPress categories.
- **wordpress_list_tags** — List available WordPress tags.
- **wordpress_list_pages** — List WordPress pages with filtering and pagination.
- **wordpress_get_page** — Get a single WordPress page by ID with its saved source.
- **wordpress_create_page** — Create a new WordPress page.
- **wordpress_update_page** — Update an existing WordPress page. To change part of the content, use edit_page.
- **wordpress_edit_page** — Replace text in a WordPress page's source, without resending the page.
- **wordpress_delete_page** — Delete or trash a WordPress page.
- **wordpress_list_page_revisions** — List revisions for a WordPress page.
- **wordpress_list_media** — List WordPress media items with filtering.
- **wordpress_get_media** — Get a single WordPress media item by ID.
- **wordpress_upload_media** — Upload a media file to WordPress from a local file path.

The file is read directly from disk, avoiding large base64 payloads
over the MCP protocol. Provide an absolute path to the file.

CONTAINER NOTE: When running as a container, the file path refers to
the container filesystem, not the host. Files must be placed in
~/.local/share/mcp-wordpress/uploads/ on the host (mounted to
/tmp/mcp-uploads/ inside the container) to be accessible.
- **wordpress_update_media** — Update WordPress media item metadata.
- **wordpress_delete_media** — Delete a WordPress media item.
- **wordpress_get_media_url** — Get the public URL for a WordPress media item.
- **wordpress_list_comments** — List WordPress comments with filtering.
- **wordpress_get_comment** — Get a single WordPress comment by ID.
- **wordpress_create_comment** — Create a new comment on a WordPress post.
- **wordpress_update_comment** — Update an existing WordPress comment.
- **wordpress_delete_comment** — Delete or trash a WordPress comment.
- **wordpress_moderate_comment** — Moderate a WordPress comment by changing its status.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "mcp-wordpress": {
    "command": "uvx",
    "args": ["mcp-wordpress-crunchtools"],
    "env": {
      "WORDPRESS_URL": "",
      "WORDPRESS_USERNAME": "",
      "WORDPRESS_APP_PASSWORD": ""
    }
  }
}
```

**Requires environment variables:** `WORDPRESS_URL`, `WORDPRESS_USERNAME`, `WORDPRESS_APP_PASSWORD` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What MCP Wordpress does

MCP Wordpress provides MCP tools for operating on WordPress content through the site's API. Its coverage includes site details and connection checks, post and page management, media handling, revisions, categories, tags, and comments. Posts can be listed with status, category, and search filters; pages, media items, and comments also have listing and retrieval operations.

The server supports creating posts, including scheduled publication, as well as creating pages and comments. Existing posts and pages can be updated, edited, or moved to the trash. Media can be uploaded from a local file path, inspected, updated for metadata, deleted, and resolved to a public URL.

## How it works

The process runs locally as a stdio MCP server, so an MCP client launches it and communicates with it through standard input and output. It uses a WordPress URL, username, and application password to call the site's API. A container image is also available for deployments that prefer Podman or another compatible container workflow.

Read operations for posts and pages return the saved editor source, including block markup, instead of rendered output. The editing tools apply a requested text replacement to the current source, which avoids sending an entire document through the agent. Post and page reads expose a version that can be supplied as `expected_version`; a write is rejected when that version is stale. Update operations also reject rendered HTML.

## Setup and configuration

Install with `uvx mcp-wordpress-crunchtools`, install the `mcp-wordpress-crunchtools` package with pip, build from the repository with `uv sync --all-extras`, or run the container image `quay.io/crunchtools/mcp-wordpress`.

Set these environment variables before starting the process:

- `WORDPRESS_URL`: the WordPress site URL.
- `WORDPRESS_USERNAME`: the WordPress account name.
- `WORDPRESS_APP_PASSWORD`: an application password created from the WordPress user profile.
- `MCP_UPLOAD_DIR`: optional upload directory, defaulting to `/tmp/mcp-uploads` in the container workflow.

For container use, mount a host directory at the upload path. The documented Podman example uses `~/.local/share/mcp-uploads-downloads` and the shared SELinux `:z` label. Claude Code can register the server with `claude mcp add`, passing the WordPress values as environment variables and using either `uvx`, the installed command, or the container.

## Tools and capabilities

Post tools cover filtered listing, keyword search, retrieval, creation, scheduling, updates, source-level text replacement, deletion, and revision access. Draft-only editing is available for draft or pending posts and refuses other post states.

Page tools provide filtered listing, retrieval, creation, updates, source replacement, deletion, and revision listing. Taxonomy tools list available categories and tags.

Media tools list and retrieve items, upload a file from a local path, change metadata, delete an item, and return its public URL. Comment tools list and retrieve comments and create a new comment on a post. Site tools return the site's title, description, URL, and timezone and test whether the supplied credentials work.

## Limitations and notes

The server is designed around WordPress application-password authentication and HTTPS API requests. Requests use certificate validation, a 30-second timeout, and a 10 MB response limit. Inputs are validated, credentials are protected from logging, and the API path is fixed to help prevent SSRF. Rate-limit responses are handled by the client layer.

Editing is source-oriented: rendered HTML is not accepted by the post and page update tools. Version checks are conditional, so callers must provide the version returned by a read when they need stale-write protection. Media upload workflows require access to the local path supplied to the upload tool, or to the mounted container directory when running in a container.

_Full upstream README: https://allmcps.com/mcp/mcp-wordpress/readme_

