WordPress MCP by usefulapi

v1.2.1
io.usefulapi/wordpress Checked 2 days ago Published 1 day ago

Read 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.

ParameterTypeDescription
afterstringOnly posts published after this date-time.
authorarrayOnly posts by these author ids.
beforestringOnly posts published before this date-time.
categoriesarrayOnly posts in these category ids.
modified_afterstringOnly posts modified after this date-time.
orderstringSort direction (default desc).
orderbystringSort field (default date).
pageintegerPage number (default 1).
per_pageintegerItems per page, 1-100 (default 10).
searchstringOnly items whose text matches this search string.
statusstringPost status filter (default publish). Non-public statuses need edit rights.
tagsarrayOnly 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}.

ParameterTypeDescription
post_id *integerThe WordPress id (from a list tool).
contextstringview (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.

ParameterTypeDescription
orderstringSort direction (default desc).
orderbystringSort field (default date).
pageintegerPage number (default 1).
parentarrayOnly child pages of these page ids.
per_pageintegerItems per page, 1-100 (default 10).
searchstringOnly items whose text matches this search string.
statusstringPage 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}.

ParameterTypeDescription
page_id *integerThe WordPress id (from a list tool).
contextstringview (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.

ParameterTypeDescription
pageintegerPage number (default 1).
per_pageintegerItems per page, 1-100 (default 10).
post_idintegerOnly comments on this post id.
searchstringOnly items whose text matches this search string.
statusstringModeration 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.

ParameterTypeDescription
pageintegerPage number (default 1).
per_pageintegerItems per page, 1-100 (default 10).
rolesarrayOnly users with these roles, for example editor.
searchstringOnly 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.

ParameterTypeDescription
hide_emptybooleantrue = only categories with posts.
pageintegerPage number (default 1).
parentintegerOnly child categories of this category id.
per_pageintegerItems per page, 1-100 (default 10).
searchstringOnly 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.

ParameterTypeDescription
pageintegerPage number (default 1).
per_pageintegerItems per page, 1-100 (default 10).
searchstringOnly 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.

ParameterTypeDescription
media_typestringMedia type filter.
mime_typestringExact MIME type, for example image/jpeg.
pageintegerPage number (default 1).
per_pageintegerItems per page, 1-100 (default 10).
searchstringOnly 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.

ParameterTypeDescription
title *stringThe post title.
categoriesarrayCategory ids to assign.
contentstringThe post body (HTML or block markup).
excerptstringA short summary.
slugstringThe URL slug.
tagsarrayTag 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}.

ParameterTypeDescription
post_id *integerThe WordPress id (from a list tool).
categoriesarrayReplace the category ids.
contentstringNew body (HTML or block markup).
excerptstringNew summary.
slugstringNew URL slug.
statusstringNew status (not publish).
tagsarrayReplace the tag ids.
titlestringNew 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}.

ParameterTypeDescription
comment_id *integerThe comment id (from wordpress_list_comments).
status *stringThe new moderation status.