cms
WordPress MCP Integration for OpenAI Agents SDK
Connect WordPress to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect WordPress to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
WordPress MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-wordpress": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=wordpress",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=wordpress --write=deny Why Use KosmoKrator Here
Expose only WordPress instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
WordPress Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the WordPress integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__wordpress__wordpress_create_post | wordpress.wordpress_create_post | Write | 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. |
integration__wordpress__wordpress_get_current_user | wordpress.wordpress_get_current_user | Read | Get the currently authenticated WordPress user profile. Returns user ID, name, email, roles, and capabilities. |
integration__wordpress__wordpress_get_post | wordpress.wordpress_get_post | Read | Get a single WordPress post by its ID. Returns the full post object including title, content, excerpt, author, categories, tags, and metadata. |
integration__wordpress__wordpress_list_comments | wordpress.wordpress_list_comments | Read | List comments from the WordPress site. Supports filtering by post, status, author, and search. Returns comment IDs, content, author info, and dates. |
integration__wordpress__wordpress_list_pages | wordpress.wordpress_list_pages | Read | List pages from the WordPress site. Supports filtering by status, author, search, and parent. Returns page IDs, titles, dates, and statuses. |
integration__wordpress__wordpress_list_posts | wordpress.wordpress_list_posts | Read | List posts from the WordPress site. Supports filtering by status, author, category, tag, and search. Returns post IDs, titles, dates, and statuses. |
integration__wordpress__wordpress_list_users | wordpress.wordpress_list_users | Read | List users registered on the WordPress site. Supports filtering by role and search. Returns user IDs, names, and email addresses. |
integration__wordpress__wordpress_update_post | wordpress.wordpress_update_post | Write | Update an existing WordPress post. Provide the post ID and any fields to change: title, content, status, categories, tags, etc. |