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_keyAPI key- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. WordPress CLIHeadless setup and direct function calls. WordPress MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
WordPress MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for WordPress.
Claude Code WordPress MCP setup for Claude Code. Cursor WordPress MCP setup for Cursor. Codex WordPress MCP setup for Codex. OpenAI Agents WordPress MCP setup for OpenAI Agents SDK. Claude Agent SDK WordPress MCP setup for Claude Agent SDK. Vercel AI SDK WordPress MCP setup for Vercel AI SDK. LangChain WordPress MCP setup for LangChain. LangGraph WordPress MCP setup for LangGraph. CrewAI WordPress MCP setup for CrewAI. MCP clients WordPress MCP setup for Generic MCP Clients.
WordPress CLI Matrix
Use these pages for direct WordPress CLI workflows in scripts, CI, cron, and agent wrappers.
CI WordPress CLI for CI. Cron Jobs WordPress CLI for cron jobs. Shell Scripts WordPress CLI for shell scripts. Headless Automation WordPress CLI for headless automation. Coding Agents WordPress CLI for coding agents.
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. |