Skip to main content
Prerequisites Before you begin, create an account and get your API Key.

Getting started

Connect to WordPress.com to manage posts, pages, sites, and automate content publishing workflows through AI agents.
  • API
  • UI
  • Open Source
1

Install the SDKs (optional)

pip install klavis
2

Create a Strata MCP Server with WordPress

from klavis import Klavis
from klavis.types import McpServerName

klavis_client = Klavis(api_key="YOUR_API_KEY")

response = klavis_client.mcp_server.create_strata_server(
    servers=[McpServerName.WORDPRESS],
    user_id="user123"
)

API Reference

Full Strata API endpoints
3

Authenticate

import webbrowser

# Open OAuth authorization page
webbrowser.open(response.oauth_urls[McpServerName.WORDPRESS])
Your WordPress MCP Server is ready! Once authentication is complete, you can use your MCP server URL with any MCP-compatible client.

Video Tutorial

Available Tools

Tool NameDescription
wordpress_create_postCreate a new WordPress post
wordpress_get_postsGet a list of WordPress posts
wordpress_update_postUpdate an existing WordPress post
wordpress_get_top_postsGet top WordPress posts for a site
wordpress_get_site_infoGet information about a WordPress site
wordpress_get_site_statsGet statistics for a WordPress site
wordpress_get_user_sitesGet all WordPress sites the authenticated user has access to
For more details about tool input schema, use the get_tools API.

Next Steps

I