Skip to main content
Glama

MCP Server Local WP

wp_get_posts

Retrieve WordPress posts with filtering by type, status, author, or search terms, and pagination options for development workflows.

Instructions

Get WordPress posts with optional filtering and pagination

Input Schema

NameRequiredDescriptionDefault
author_idNoFilter by author ID
limitNoNumber of posts to retrieve (default: 10)
offsetNoOffset for pagination (default: 0)
post_statusNoPost status (publish, draft, private, etc.)publish
post_typeNoPost type (default: post)post
searchNoSearch in post title and content

Input Schema (JSON Schema)

{ "properties": { "author_id": { "description": "Filter by author ID", "type": "number" }, "limit": { "default": 10, "description": "Number of posts to retrieve (default: 10)", "type": "number" }, "offset": { "default": 0, "description": "Offset for pagination (default: 0)", "type": "number" }, "post_status": { "default": "publish", "description": "Post status (publish, draft, private, etc.)", "type": "string" }, "post_type": { "default": "post", "description": "Post type (default: post)", "type": "string" }, "search": { "description": "Search in post title and content", "type": "string" } }, "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/verygoodplugins/mcp-local-wp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server