productivity
WordPress MCP, CLI, and Lua Integration for AI Agents
WordPress integration docs for AI agents: MCP gateway setup, WordPress CLI commands, Lua API reference, credentials, and function schemas.WordPress for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Agent Surfaces
Machine-Readable Metadata
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
wordpress.wordpress_create_post | Write write | 9 | Create a new post on the WordPress site. Requires a title. Content, status, categories, and tags can be specified. Defaults to draft status for safety. |
wordpress.wordpress_get_current_user | Read read | 0 | Get the currently authenticated WordPress user profile. Returns user ID, name, email, roles, and capabilities. |
wordpress.wordpress_get_post | Read read | 1 | Get a single WordPress post by its ID. Returns the full post object including title, content, excerpt, author, categories, tags, and metadata. |
wordpress.wordpress_list_comments | Read read | 8 | List comments from the WordPress site. Supports filtering by post, status, author, and search. Returns comment IDs, content, author info, and dates. |
wordpress.wordpress_list_pages | Read read | 8 | List pages from the WordPress site. Supports filtering by status, author, search, and parent. Returns page IDs, titles, dates, and statuses. |
wordpress.wordpress_list_posts | Read read | 9 | List posts from the WordPress site. Supports filtering by status, author, category, tag, and search. Returns post IDs, titles, dates, and statuses. |
wordpress.wordpress_list_users | Read read | 6 | List users registered on the WordPress site. Supports filtering by role and search. Returns user IDs, names, and email addresses. |
wordpress.wordpress_update_post | Write write | 10 | Update an existing WordPress post. Provide the post ID and any fields to change: title, content, status, categories, tags, etc. |