Skip to content

How to Use AI Assistants with Content to PDF (MCP)

Content to PDF answers questions from AI assistants such as Claude, ChatGPT, Cursor and VS Code. You ask in plain words, and the assistant reads the same numbers you see in WordPress admin. It uses the Model Context Protocol (MCP), an open standard AI apps use to talk to other software.

Everything happens on the DevDiggers Plugins → AI & MCP page. It is one page for every DevDiggers plugin on the site, so an assistant you connect once can use all of them.

  • “How many PDFs were downloaded this month?”
  • “Which posts have no PDF button, and why?”
  • “Who left their email for a PDF?”

The assistant picks the tools it needs, calls them, and answers in a sentence or a table. You never type a tool name.

  • WordPress 6.9 or later. AI tools are built on the WordPress Abilities API, added in 6.9.
  • The MCP Adapter. WooCommerce 10.3 and later include it. On a site without WooCommerce, install the free MCP Adapter plugin from WordPress.org.
  • Pretty permalinks. AI apps sign in with OAuth, which needs a permalink structure other than Plain under Settings → Permalinks.
  • For Claude or ChatGPT on the web, a site that is online over HTTPS. Those apps connect from their own servers. A local or staging site works with an app that runs on your computer, such as Claude Code, Codex, Cursor or VS Code.

When all four are in place, the page says Server running. Otherwise it names what is missing.

Go to DevDiggers Plugins → AI & MCP. The top card shows the server status, how many tools are live, and the server URL with a Copy button. Below it, each DevDiggers plugin has its own card. This is the Content to PDF card:

The Content to PDF card on the AI & MCP page, listing its read, write and prompt tools

Each tool carries a label:

  • Read tools only look. They are on from the start.
  • Write tools change something in your store. They stay off until you switch on Allow changes.
  • Prompt tools are ready-made requests, such as a weekly review, that your app offers as a shortcut.

The switch at the top right of the card turns all of Content to PDF’s tools on or off at once. Only an administrator can change the switches.

Click Connect an app and pick the app you use.

The Connect an AI app dialog listing Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and Other app

The dialog shows that app’s own steps with the text to paste, ready to copy. For Claude, you add a custom connector with the server URL:

The Claude steps: open Settings, Connectors, add a custom connector named DevDiggers with the server URL, then click Connect and Allow

Apps that run on your computer take a terminal command or a config file instead. For those, Copy setup prompt gives you a request you can paste into an AI agent on that computer, so it does the setup for you.

Your app opens a WordPress page. Sign in if you are asked, then check the request and click Allow.

The WordPress approval page asking to allow an app to use the DevDiggers AI tools, with Cancel and Allow buttons

The page says which account the app will act as. The app gets a token for this server only. It can use the tools you turned on, with that account’s permissions, and nothing else on your site. There is no password or API key to copy.

Back in your app, ask a question. To see exactly what the assistant receives, click Try on any tool in the Content to PDF card and press Run. This is PDF activity report on the demo store:

The Try panel after running PDF activity report, with the answer the assistant gets below the Run button

Try runs as you, in WordPress admin, without any app connected. It is the quickest way to check a tool before you rely on it.

Tool What it answers
PDF activity report PDF numbers for a date range, the same as the Content to PDF dashboard.
List PDF activity The activity log, newest first, as on Content to PDF → Activity.
Content with PDF Published content of the post types PDFs are switched on for, with whether each one shows the PDF button and, when not.
PDF of a post For one post, page or product: whether readers get the PDF button and why not, the template its PDF uses, its PDF exports by action.
List leads Readers who left their name and email for a PDF, newest first, as on Content to PDF → Leads.
Settings summary The Content to PDF configuration by tab.

Prompts are ready-made requests. Your app lists them as shortcuts, usually under a slash or a plus menu.

Prompt What it asks for
PDF content review Review how PDFs are doing over a period.
Tool What it does
Show or hide the PDF button on a post Hide or show the PDF button on one post, page or product, like the “Hide the PDF button on this content” box on its edit screen.

Write tools stay off until you allow them. Under each one on the Content to PDF card, switch on Allow changes, and only for the tools you want an assistant to use. Most apps also ask you before they run a tool that changes data.

The Allow changes switch under a write tool on the AI & MCP page

  • The PDF password and the license are never shared.

Every connected app is listed on the AI & MCP page, with who allowed it and when it was last used. Click Revoke to cut it off at once.

The AI & MCP page with Server running, the server URL and one connected app with a Revoke link

The Activity list below the tools shows every connection and tool call of the last 30 days: when, which app, which user, which tool and whether it worked. Filter it by plugin, app or failed calls. Only which tool ran and when is stored, never what was asked.

The Activity list on the AI & MCP page, with connections and tool calls and their results

A call that shows Switched off reached a tool you had turned off, such as a write tool without Allow changes. Nothing ran.