An AI agent such as Claude, ChatGPT or Cursor can search your docs, read articles and write drafts for you to review. DocsPress offers these actions through the WordPress Abilities API, and the free MCP Adapter plugin passes them to the agent.
Before you start
- WordPress 6.9 or later. The Abilities API is part of WordPress from 6.9.
- An AI app that supports MCP (Model Context Protocol) servers.
- A WordPress user for the agent. The agent can do only what that user can do.
What the agent can do
| Ability | What it does | Who can use it |
|---|---|---|
| Search documentation | Finds up to 20 articles by words in their title or text. | Any logged in user. Drafts show only to users who can edit them. |
| Read a documentation article | Returns one article as Markdown. | Any logged in user |
| Find articles by product reference | Finds up to 20 articles that carry a product reference, such as setting:hero_height. | Users who can edit docs |
| Create a documentation draft | Saves a new article as a draft, in the collection the agent names or among shared articles. Nothing is published. | Users who can edit docs |
The agent never publishes or deletes an article. You read each draft and publish it yourself.
1. Install the MCP Adapter
- Go to Plugins > Add Plugin.
- Enter
MCP Adapterin the search field. - In the MCP Adapter card, click Install Now.
- Click Activate.
The adapter’s server address on your site is https://example.com/wp-json/mcp/mcp-adapter-default-server, with your domain in place of example.com.
2. Create an application password
The agent signs in with an application password, not with your normal password.
- Go to Users > Profile for the user the agent works as.
- Under Application Passwords, enter a name such as
Docs agent. - Click Add Application Password.
- Copy the password that appears. WordPress shows it only once.
3. Add the server to your AI app
Most AI apps read MCP servers from a JSON settings file. Add this entry and fill in your address, user name and the application password:
{
"mcpServers": {
"my-docs": {
"command": "npx",
"args": ["-y", "@automattic/mcp-wordpress-remote@latest"],
"env": {
"WP_API_URL": "https://example.com/wp-json/mcp/mcp-adapter-default-server",
"WP_API_USERNAME": "your-user-name",
"WP_API_PASSWORD": "your-application-password"
}
}
}
}
The npx command needs Node.js on your computer. Restart the AI app after you save the file.
4. Check the connection
Ask the agent to list the DocsPress abilities, then to search your docs for a word you know is in an article. The answer should name that article.
Ideas for prompts
- “Search our docs for the license key article and tell me what it says about renewals.”
- “Find every article with the reference
screen:Docs → Feedbackand list what changed in this pull request that they should mention.” - “Write a draft article that explains the new export button, under the Get started collection.”
To give an agent plain Markdown without the MCP Adapter, see Markdown versions and llms.txt.
Leave a Reply