KosmoKrator

cms

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.

8 functions 6 read 2 write API key auth

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.

Machine-Readable Metadata
integration_slug
wordpress
route_slug
wordpress
package
wordpress
auth_strategy
api_key API key
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

WordPress MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for WordPress.

WordPress CLI Matrix

Use these pages for direct WordPress CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
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.