WordPress MCP Server

get-user

Retrieve WordPress user details by ID or current user session using site URL, credentials, and context. Facilitates programmatic user management via REST API integration.

Instructions

Get a specific user by ID

Input Schema

NameRequiredDescriptionDefault
contextNoScope under which the request is madeview
passwordYesWordPress application password
siteUrlYesWordPress site URL
userIdYesUser ID or 'me' for current user
usernameYesWordPress username

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "context": { "default": "view", "description": "Scope under which the request is made", "enum": [ "view", "embed", "edit" ], "type": "string" }, "password": { "description": "WordPress application password", "type": "string" }, "siteUrl": { "description": "WordPress site URL", "format": "uri", "type": "string" }, "userId": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "const": "me", "type": "string" } ], "description": "User ID or 'me' for current user" }, "username": { "description": "WordPress username", "type": "string" } }, "required": [ "siteUrl", "username", "password", "userId" ], "type": "object" }
ID: 4g84e42ylk