wp-content-mcp
v0.1.0MCP server for WordPress content — let Claude (Desktop, Code, Cursor) write, edit and publish posts and pages via natural language.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_posts
Find posts or pages, newest first. Args: post_type: "posts" (blog/news) or "pages", or the REST base of a custom post type. search: Optional search term (matches title and content). status: "any" (default), "publish", "draft", "pending", "private" or "future". per_page: Results per page, max 100. page: Page number, starting at 1.
| Parameter | Type | Description |
|---|---|---|
page | integer | |
per_page | integer | |
post_type | string | |
search | ||
status | string |
get_post
Read one post or page, including its raw (editable) content. Returns title, content (HTML/block markup as stored), excerpt, status, link, category and tag ids, and featured image id.
| Parameter | Type | Description |
|---|---|---|
post_id * | integer | |
post_type | string |
create_post
Create a blog post, news item or page. Saved as a DRAFT by default. Args: title: The title. content: The body as HTML (<h2>, <p>, <ul>, <a>, <img>, ...). post_type: "posts" (default) or "pages". status: "draft" (default), "publish" (only when the user asks to publish), "pending" (for review), "private", or "future" together with `date`. excerpt: Short summary; many themes and SEO plugins use it as the description. slug: URL part, e.g. "nieuwe-openingstijden". Derived from the title if omitted. categories: Category names (…
| Parameter | Type | Description |
|---|---|---|
content * | string | |
title * | string | |
categories | ||
date | ||
excerpt | ||
featured_media | ||
post_type | string | |
slug | ||
status | string | |
tags |
update_post
Change fields of an existing post or page. Only the fields you pass change. `content` replaces the WHOLE body; to change a sentence or paragraph use `replace_text` instead. `categories`/`tags` replace the current list. Set status="publish" to publish a draft (only when the user asks).
| Parameter | Type | Description |
|---|---|---|
post_id * | integer | |
categories | ||
content | ||
date | ||
excerpt | ||
featured_media | ||
post_type | string | |
slug | ||
status | ||
tags | ||
title |
replace_text
Replace a passage in the content of a post or page, leaving the rest untouched. Args: post_id: The post or page id. find: Exact text to find in the stored content (as returned by `get_post`). replace: The new text (HTML allowed). post_type: "posts" (default) or "pages". replace_all: Replace every occurrence. By default `find` must occur exactly once.
| Parameter | Type | Description |
|---|---|---|
find * | string | |
post_id * | integer | |
replace * | string | |
post_type | string | |
replace_all | boolean |
trash_post
Move a post or page to the trash (recoverable in wp-admin for 30 days).
| Parameter | Type | Description |
|---|---|---|
post_id * | integer | |
post_type | string |
list_terms
List categories or tags with their id, name, slug and post count. Args: taxonomy: "categories" (default) or "tags". search: Optional search term.
| Parameter | Type | Description |
|---|---|---|
search | ||
taxonomy | string |
upload_media
Upload a local image, video, audio file or PDF to the media library. Use the returned id as `featured_media`, or the returned url in post content. Args: file_path: Path to a local file (jpg, png, gif, webp, avif, svg, pdf, mp4, webm, mp3, m4a). alt_text: Description of the image for screen readers and search engines. title: Media title; defaults to the file name.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
alt_text | ||
title |
wp_request
Call any WordPress REST API endpoint directly. Args: method: "GET", "POST", "PUT", "PATCH" or "DELETE". path: Path below /wp-json/, e.g. "wp/v2/users", "wp/v2/settings", "wp/v2/comments". params: Query-string parameters. body: JSON body for writes.
| Parameter | Type | Description |
|---|---|---|
method * | string | |
path * | string | |
body | ||
params |
whoami
Check the connection: site name, logged-in user, roles and what they may do.