wp_create_user
Create a new WordPress user by supplying a username, email, and password. Assign roles and target a specific site in multi-site setups.
Instructions
Creates a new user.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"username": "<username>",
"email": "<email>",
"password": "<password>"
},
"name": "wp_create_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | The ID of the WordPress site to target (from mcp-wordpress.config.json). Required if multiple sites are configured. | |
| Yes | The email address for the new user. | ||
| roles | No | An array of roles to assign to the user. | |
| password | Yes | The password for the new user. | |
| username | Yes | The username for the new user. |