WordPress MCP Server

list-categories

Retrieve and filter WordPress site categories by ID, parent, slug, or search term. Manage pagination, sorting, and visibility options programmatically for efficient category management.

Instructions

Get a list of categories with filtering options

Input Schema

NameRequiredDescriptionDefault
contextNoScope under which the request is madeview
excludeNoEnsure result set excludes specific IDs
hideEmptyNoWhether to hide terms not assigned to any posts
includeNoLimit result set to specific IDs
orderNoOrder sort attribute ascending or descendingasc
orderbyNoSort collection by term attributename
pageNoCurrent page of the collection
parentNoLimit result set to terms assigned to a specific parent
passwordYesWordPress application password
perPageNoMaximum number of items to be returned
postNoLimit result set to terms assigned to a specific post
searchNoLimit results to those matching a string
siteUrlYesWordPress site URL
slugNoLimit result set to terms with one or more specific slugs
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" }, "exclude": { "description": "Ensure result set excludes specific IDs", "items": { "type": "number" }, "type": "array" }, "hideEmpty": { "description": "Whether to hide terms not assigned to any posts", "type": "boolean" }, "include": { "description": "Limit result set to specific IDs", "items": { "type": "number" }, "type": "array" }, "order": { "default": "asc", "description": "Order sort attribute ascending or descending", "enum": [ "asc", "desc" ], "type": "string" }, "orderby": { "default": "name", "description": "Sort collection by term attribute", "enum": [ "id", "include", "name", "slug", "include_slugs", "term_group", "description", "count" ], "type": "string" }, "page": { "default": 1, "description": "Current page of the collection", "minimum": 1, "type": "number" }, "parent": { "description": "Limit result set to terms assigned to a specific parent", "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" }, "post": { "description": "Limit result set to terms assigned to a specific post", "type": "number" }, "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 terms with one or more specific slugs", "items": { "type": "string" }, "type": "array" }, "username": { "description": "WordPress username", "type": "string" } }, "required": [ "siteUrl", "username", "password" ], "type": "object" }
ID: 4g84e42ylk