Guides
AI agents over MCP
Let Claude, Codex or Cursor work on your content.
Leiho exposes its abilities to AI agents through the official MCP Adapter plugin, by WordPress.org. Claude, Codex, Cursor, Copilot, Gemini and any client that runs local MCP servers can then work on your site with the rights of the user they connect as.
What agents can do
- Content: read the brand context and the content model, search entries, read an entry, update the fields of a draft, create a draft, suggest alternative text for an image. Content abilities never publish: they read, and they write drafts only.
- Administration (when the agent connects as an administrator): run the diagnostics, change settings with the same validation as the Settings screen, set a secret (write-only) and test the connection to your front end. No ability publishes or deploys.
Connect an agent
- Install and activate the MCP Adapter plugin (Plugins → Add New, search for “MCP Adapter”).
- In your profile, under Application Passwords, create one named after the client and copy it. The site must use HTTPS. Prefer a dedicated user with the Editor role or lower.
- In Leiho → AI, pick your client: Claude Desktop, Claude Code, Codex, Cursor, VS Code with Copilot, Gemini CLI, Windsurf or another one. The configuration is filled in with your site’s address and username; replace the password placeholder.
codex mcp add mysite \
--env WP_API_URL=https://cms.example.com/wp-json/mcp/mcp-adapter-default-server \
--env WP_API_USERNAME=editor \
--env WP_API_PASSWORD='xxxx xxxx xxxx xxxx xxxx xxxx' \
-- npx -y @automattic/mcp-wordpress-remote@latestNode.js must be installed on your computer: the client starts a small bridge with npx.
Try it
Start a new conversation and check the connection with “List the WordPress abilities you can use on my site.” Then, for example: “Read the brand context of my site, then write a draft service page about indoor air audits.”
Revoke the application password from your profile at any time.