WordPress MCP Server

get-users

Retrieve a filtered list of users from a WordPress site by specifying criteria like roles, capabilities, IDs, or slugs, using secure authentication and advanced query parameters.

Instructions

Get a list of users from a WordPress site with advanced filtering options

Input Schema

NameRequiredDescriptionDefault
capabilitiesNoLimit result set to users matching at least one specific capability
contextNoScope under which the request is madeview
excludeNoEnsure result set excludes specific IDs
hasPublishedPostsNoLimit result set to users who have published posts
includeNoLimit result set to specific IDs
offsetNoOffset the result set by a specific number of items
orderNoOrder sort attribute ascending or descendingasc
orderbyNoSort collection by user attributename
pageNoCurrent page of the collection
passwordYesWordPress application password
perPageNoMaximum number of items to be returned
rolesNoLimit result set to users matching at least one specific role
searchNoLimit results to those matching a string
siteUrlYesWordPress site URL
slugNoLimit result set to users with one or more specific slugs
usernameYesWordPress username
whoNoLimit result set to users who are considered authors

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "capabilities": { "description": "Limit result set to users matching at least one specific capability", "items": { "type": "string" }, "type": "array" }, "context": { "default": "view", "description": "Scope under which the request is made", "enum": [ "view", "embed", "edit" ], "type": "string" }, "exclude": { "description": "Ensure result set excludes specific IDs", "items": { "type": "number" }, "type": "array" }, "hasPublishedPosts": { "description": "Limit result set to users who have published posts", "type": "boolean" }, "include": { "description": "Limit result set to specific IDs", "items": { "type": "number" }, "type": "array" }, "offset": { "description": "Offset the result set by a specific number of items", "type": "number" }, "order": { "default": "asc", "description": "Order sort attribute ascending or descending", "enum": [ "asc", "desc" ], "type": "string" }, "orderby": { "default": "name", "description": "Sort collection by user attribute", "enum": [ "id", "include", "name", "registered_date", "slug", "include_slugs", "email", "url" ], "type": "string" }, "page": { "default": 1, "description": "Current page of the collection", "minimum": 1, "type": "number" }, "password": { "description": "WordPress application password", "type": "string" }, "perPage": { "default": 10, "description": "Maximum number of items to be returned", "maximum": 100, "minimum": 1, "type": "number" }, "roles": { "description": "Limit result set to users matching at least one specific role", "items": { "type": "string" }, "type": "array" }, "search": { "description": "Limit results to those matching a string", "type": "string" }, "siteUrl": { "description": "WordPress site URL", "format": "uri", "type": "string" }, "slug": { "description": "Limit result set to users with one or more specific slugs", "items": { "type": "string" }, "type": "array" }, "username": { "description": "WordPress username", "type": "string" }, "who": { "description": "Limit result set to users who are considered authors", "enum": [ "authors" ], "type": "string" } }, "required": [ "siteUrl", "username", "password" ], "type": "object" }
ID: 4g84e42ylk