Koko Analytics Pro now speaks to AI agents through the Abilities API

We just released Koko Analytics Pro 2.4.2, which adds support for the new Abilities API in WordPress 7.0. In plain terms: your AI agents can now ask Koko Analytics about your site’s traffic and get a structured answer back, without you ever exposing your data to a third party.

What is the Abilities API?

WordPress 7.0 introduces the Abilities API, a standard way for plugins to register “abilities” that AI agents and other tools can discover and call. Think of it as a shared language: instead of every plugin inventing its own way to talk to an assistant, each one publishes a clear list of what it can do, what inputs it expects, and what it returns.

This makes it possible for an AI agent connected to your WordPress site to query your analytics through one consistent, well-defined interface.

What you can ask

Koko Analytics Pro registers five abilities, all read-only:

  • Get totals — total visitors and pageviews for a date range, optionally filtered to a single page.
  • Get time series — visitors and pageviews grouped by day, week, month, or year.
  • Get top pages — your most-visited pages for a date range.
  • Get referrers — the referrer URLs sending you the most traffic.
  • Get realtime pageviews — how many pageviews were recorded since a given moment.

That means you can ask your assistant things like “How many visitors did the blog get last month?” or “What were my top 5 pages last week?” and it can answer using your real numbers, pulled straight from the same aggregated data your dashboard uses.

Safe by design

We built these abilities to be conservative on purpose:

  • Read-only. Every ability is marked read-only, non-destructive, and idempotent. There is nothing an agent can change, delete, or break.
  • Permission-checked. Each call runs through a permission check, so only users who are already allowed to view your Koko Analytics statistics can retrieve them through an agent.
  • Your data stays put. Just like the rest of Koko Analytics, nothing leaves your server. The agent talks to your WordPress install, and your install reads from your own database.

How to connect an AI agent

The Abilities API is the registration layer: once you’re running Koko Analytics Pro 2.4.2 on WordPress 7.0, the five abilities register themselves and are immediately available to any plugin or in-site feature that uses the Abilities API. There’s nothing to configure for that.

To let an external AI assistant, like Claude or ChatGPT, discover and call these abilities, you need one extra piece: an MCP bridge that exposes your registered abilities over the Model Context Protocol. This bridge is not part of WordPress core; you install it separately. You have a couple of options:

  • Albert – The AI Butler is the easiest route for most people. It’s a free plugin that connects external AI assistants to your site over MCP using OAuth 2.0, and it builds on the same Abilities API, so Koko Analytics’ abilities are available to it out of the box.
  • The official WordPress MCP Adapter is an alternative option, probably more aimed at developers. It’s still early (pre-1.0) and uses WordPress Application Passwords for authentication.

Either way, the flow is the same: install the bridge, authorize your AI client against a user who is allowed to view your Koko Analytics statistics, and start asking questions. Because our abilities are flagged as public, read-only MCP tools, they show up in your assistant automatically once the bridge is connected — no extra setup on the Koko Analytics side.

Other changes in this release

Alongside the Abilities API, version 2.4.2 includes a few smaller improvements:

  • Email reports now show the full country name instead of just the country code, so your periodic reports are easier to read at a glance.
  • Licensing now stores only an obfuscated version of your license key rather than the full key.
  • Code quality improvements. We went through the entire Pro codebase and resolved every warning reported by the WordPress Coding Standards, which keeps the plugin healthier and easier to maintain going forward.

Update today

The Abilities API requires WordPress 7.0 or newer. Once you’re on 7.0, update to Koko Analytics Pro 2.4.2 from your WordPress dashboard. The abilities register themselves, and you can connect your AI agent whenever you’re ready.

If you’re not using Koko Analytics Pro yet, have a look at the features you’re missing out on. As always, your analytics data stays on your own server, where it belongs.

Danny van Kooten Avatar

Leave a Reply

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