DocsPress

Documentation plugin for WordPress

Connect an AI agent to your docs

Updated
On this page

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

AbilityWhat it doesWho can use it
Search documentationFinds 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 articleReturns one article as Markdown.Any logged in user
Find articles by product referenceFinds up to 20 articles that carry a product reference, such as setting:hero_height.Users who can edit docs
Create a documentation draftSaves 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

  1. Go to Plugins > Add Plugin.
  2. Enter MCP Adapter in the search field.
  3. In the MCP Adapter card, click Install Now.
  4. 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.

  1. Go to Users > Profile for the user the agent works as.
  2. Under Application Passwords, enter a name such as Docs agent.
  3. Click Add Application Password.
  4. 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 → Feedback and 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.

Was this page helpful?

Leave a Reply

Your email address will not be published. Required fields are marked *