WordPress MCP by usefulapi
v1.2.1Read posts, pages and comments; create drafts, update posts and moderate comments in WordPress.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
wordpress_get_site Get site information
Get the site name, description, URL, time zone and the REST namespaces the site offers. Good first call to check the connection. WordPress API: GET /wp-json/.
wordpress_get_current_user Get the logged-in user
Get the WordPress user that the Application Password belongs to, with its roles. WordPress API: GET /wp/v2/users/me.
wordpress_list_posts List posts
List posts with their status, dates, author, categories and tags. Use status 'draft' or 'pending' for unpublished work (needs edit rights). WordPress API: GET /wp/v2/posts.
| Parameter | Type | Description |
|---|---|---|
after | string | Only posts published after this date-time. |
author | array | Only posts by these author ids. |
before | string | Only posts published before this date-time. |
categories | array | Only posts in these category ids. |
modified_after | string | Only posts modified after this date-time. |
order | string | Sort direction (default desc). |
orderby | string | Sort field (default date). |
page | integer | Page number (default 1). |
per_page | integer | Items per page, 1-100 (default 10). |
search | string | Only items whose text matches this search string. |
status | string | Post status filter (default publish). Non-public statuses need edit rights. |
tags | array | Only posts with these tag ids. |
wordpress_get_post Get a post
Get one post with its full content, excerpt, categories and tags. Use context 'edit' to read the raw content before an update. WordPress API: GET /wp/v2/posts/{id}.
| Parameter | Type | Description |
|---|---|---|
post_id * | integer | The WordPress id (from a list tool). |
context | string | view (default) returns rendered content; edit returns the raw content for editing (needs edit rights). |
wordpress_list_pages List pages
List pages with their status, parent, menu order and link. WordPress API: GET /wp/v2/pages.
| Parameter | Type | Description |
|---|---|---|
order | string | Sort direction (default desc). |
orderby | string | Sort field (default date). |
page | integer | Page number (default 1). |
parent | array | Only child pages of these page ids. |
per_page | integer | Items per page, 1-100 (default 10). |
search | string | Only items whose text matches this search string. |
status | string | Page status filter (default publish). |
wordpress_get_page Get a page
Get one page with its full content and parent. Use context 'edit' to read the raw content. WordPress API: GET /wp/v2/pages/{id}.
| Parameter | Type | Description |
|---|---|---|
page_id * | integer | The WordPress id (from a list tool). |
context | string | view (default) returns rendered content; edit returns the raw content for editing (needs edit rights). |
wordpress_list_comments List comments
List comments, optionally for one post and by moderation status (approve, hold = waiting, spam, trash). WordPress API: GET /wp/v2/comments.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default 1). |
per_page | integer | Items per page, 1-100 (default 10). |
post_id | integer | Only comments on this post id. |
search | string | Only items whose text matches this search string. |
status | string | Moderation status filter. |
wordpress_list_users List users
List site users (name, slug, roles where the login may see them). Needs the list_users capability. WordPress API: GET /wp/v2/users.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default 1). |
per_page | integer | Items per page, 1-100 (default 10). |
roles | array | Only users with these roles, for example editor. |
search | string | Only items whose text matches this search string. |
wordpress_list_categories List categories
List post categories with their id, slug, parent and post count. WordPress API: GET /wp/v2/categories.
| Parameter | Type | Description |
|---|---|---|
hide_empty | boolean | true = only categories with posts. |
page | integer | Page number (default 1). |
parent | integer | Only child categories of this category id. |
per_page | integer | Items per page, 1-100 (default 10). |
search | string | Only items whose text matches this search string. |
wordpress_list_tags List tags
List post tags with their id, slug and post count. WordPress API: GET /wp/v2/tags.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default 1). |
per_page | integer | Items per page, 1-100 (default 10). |
search | string | Only items whose text matches this search string. |
wordpress_list_media List media
List media library items (images, files) with their URL, MIME type and alt text. WordPress API: GET /wp/v2/media.
| Parameter | Type | Description |
|---|---|---|
media_type | string | Media type filter. |
mime_type | string | Exact MIME type, for example image/jpeg. |
page | integer | Page number (default 1). |
per_page | integer | Items per page, 1-100 (default 10). |
search | string | Only items whose text matches this search string. |
wordpress_create_draft_post Create a draft post
Create a new post saved as a DRAFT (never published). Writes to the site. WordPress API: POST /wp/v2/posts with status draft.
| Parameter | Type | Description |
|---|---|---|
title * | string | The post title. |
categories | array | Category ids to assign. |
content | string | The post body (HTML or block markup). |
excerpt | string | A short summary. |
slug | string | The URL slug. |
tags | array | Tag ids to assign. |
wordpress_update_post Update a post
Change the fields you pass on an existing post, overwriting them. If the post is already published, the new content goes live at once. The status may be draft, pending or private only; publishing a draft stays in wp-admin. WordPress API: POST /wp/v2/posts/{id}.
| Parameter | Type | Description |
|---|---|---|
post_id * | integer | The WordPress id (from a list tool). |
categories | array | Replace the category ids. |
content | string | New body (HTML or block markup). |
excerpt | string | New summary. |
slug | string | New URL slug. |
status | string | New status (not publish). |
tags | array | Replace the tag ids. |
title | string | New title. |
wordpress_set_comment_status Moderate a comment
Set a comment's moderation status: approve, hold (wait for review) or spam. Comments are never trashed or deleted by this tool. WordPress API: POST /wp/v2/comments/{id}.
| Parameter | Type | Description |
|---|---|---|
comment_id * | integer | The comment id (from wordpress_list_comments). |
status * | string | The new moderation status. |