Site data,
WP-CLI and database

Explore site content, named commands and database reads.

plugin list
Read only
option update
Writes
plugin update
Needs approval
Choose which tools each AI app may use, with limits on every request.

Every command

51 available commands. They run in PHP inside WordPress, never in a shell.

Availability is shown with each command. Every command starts off; turn each on by name in MCPMate → Tools.

Plugins and themes9 available
Plugins and themes: command, description, kind and plan
CommandWhat it doesKindPlan
plugin getAvailableShow one installed plugin: version, author, requirements and update availability.Read only
plugin listAvailableList installed plugins with status, version and update availability.Read only
theme getAvailableShow one installed theme: version, author, requirements and update availability.Read only
theme listAvailableList installed themes with status, version and update availability.Read only
plugin activateAvailableActivate one or more plugins.Needs approval
plugin deactivateAvailableDeactivate one or more plugins.Needs approval
plugin installAvailableInstall plugins from WordPress.org by slug, without activating them. Runs in the background once approved (get_cli_job).Needs approval
plugin updateAvailableUpdate one or more plugins to the version WordPress last found. Runs in the background once approved (get_cli_job).Needs approval
theme activateAvailableSwitch the active theme.Needs approval
Posts and taxonomy11 available
Posts and taxonomy: command, description, kind and plan
CommandWhat it doesKindPlan
post getAvailableShow one post, including its content.Read only
post listAvailableList posts of one post type.Read only
post meta getAvailableRead one custom field of a post.Read only
post-type listAvailableList the registered post types.Read only
taxonomy listAvailableList the registered taxonomies.Read only
term getAvailableShow one term by ID or slug.Read only
term listAvailableList the terms of one taxonomy (categories, tags, product categories…).Read only
post meta deleteAvailableRemove one allowlisted custom field of a post (SEO title, description, focus keyword).Writes
post meta updateAvailableChange one allowlisted custom field of a post (SEO title, description, focus keyword).Writes
term createAvailableCreate a term (a category, tag or other term).Writes
term updateAvailableChange a term's name, slug, description or parent.Writes
Settings and maintenance17 available
Settings and maintenance: command, description, kind and plan
CommandWhat it doesKindPlan
core verify-checksumsAvailableCompare core files with the official checksums from WordPress.org.Read only
core versionAvailableShow the WordPress version.Read only
cron event listAvailableList scheduled cron events.Read only
cron schedule listAvailableList the cron schedules (recurrence intervals) events can use.Read only
option getAvailableRead one allowlisted option.Read only
option listAvailableList allowlisted options and their values.Read only
rewrite listAvailableList the rewrite rules, or the ones a URL path matches.Read only
site listAvailableList the sites of this multisite network.Read only
transient getAvailableRead one transient (secret values masked).Read only
cache deleteAvailableDelete one object cache entry (WordPress loads it again when needed).Writes
cache flushAvailableFlush the object cache. Runs in the background (get_cli_job).Writes
cron event runAvailableRun scheduled cron events now, by hook or every event that is due. Runs in the background (get_cli_job).Writes
option deleteAvailableDelete one option a site admin allowed to be deleted (none by default).Writes
option updateAvailableChange one allowlisted option (site title, tagline, date formats, timezone, reading settings).Writes
rewrite flushAvailableRegenerate the rewrite rules (soft flush, no .htaccess changes).Writes
transient deleteAvailableDelete one transient, or all expired transients.Writes
rewrite structureAvailableChange the permalink structure (e.g. /%postname%/). Changes every post URL, so it waits for approval.Needs approval
Users and comments7 available
Users and comments: command, description, kind and plan
CommandWhat it doesKindPlan
comment listAvailableList comments, newest first.Read only
role listAvailableList the user roles and how many capabilities each has.Read only
user getAvailableShow one user by ID, login or email.Read only
user listAvailableList users with their roles.Read only
comment approveAvailableApprove one or more comments.Writes
comment spamAvailableMark one or more comments as spam.Writes
comment unapproveAvailableMove one or more comments back to pending.Writes
Menus6 available
Menus: command, description, kind and plan
CommandWhat it doesKindPlan
menu item listAvailableList the items of one navigation menu.Read only
menu listAvailableList navigation menus and the theme locations they are assigned to.Read only
menu item add-customAvailableAdd a custom link to a navigation menu.Writes
menu item add-postAvailableAdd a post or page to a navigation menu.Writes
menu item add-termAvailableAdd a category, tag or other term to a navigation menu.Writes
menu item updateAvailableChange a navigation menu item: title, link, position, parent and the other fields.Writes
Search and replace1 available
Search and replace: command, description, kind and plan
CommandWhat it doesKindPlan
search-replaceAvailableReplace text in the given database tables, safely for serialized data. Dry run unless approved.Needs approval

Database reads without SQL

  • List tables, describe a table, and read rows with filters. This inspection tool takes filters rather than SQL.
  • Passwords and secret keys are never shown. At most 1,000 rows per read, and every read is logged.
  • Off until you turn it on.
  • Rows can include personal data, such as customer names and emails, and your AI app’s provider sees what your AI reads.

More ways to work with site data

Look up site content and settings

  • Posts and terms

    Find posts, pages, categories and tags with filters, then read an item by its ID. WordPress checks what the connected user may read.

  • Users and comments

    Look up user profiles and comments within the connected user’s permissions. Reading other users needs permission to list users; unapproved comments need permission to moderate them.

  • Safe settings

    List allowed WordPress and registered plugin settings, then read their values. This is an allowlist, with secret-looking names refused and nested secret values masked.

  • Read only, in MCPMate Pro. The Site data tools start off; enable each one in MCPMate → Tools → Core. These lookups use WordPress’s queries and take no SQL.
  • WordPress’s permissions still apply. Comment-author email addresses and IP addresses require permission to moderate comments.
  • Names, email addresses and other personal data can still be returned when permitted. Your AI app’s provider receives what the AI reads, under its own data policy.
  • Every read is logged. A disabled or refused lookup stays refused; your AI must report what it could not check.

Always hidden

  • User password hashes (user_pass), activation keys (user_activation_key), session tokens and Application Passwords are never returned.
  • Private metadata keys beginning with _ and secret-looking metadata values are not exposed. Passwords, API keys, tokens, salts, nonces, credentials and licence secrets are excluded or masked.
  • Settings with secret-looking names, all MCPMate settings, transients, cron, rewrite_rules and user-role definitions are refused. Settings outside the readable allowlist are refused too.
  • Secret-looking values nested inside an allowed setting are masked by their key, rather than returned in the clear.

Draft posts and pages

  • Create and edit drafts

    Save posts and pages as draft or pending review, with block markup checked before saving. Published, scheduled and private posts are not edited in place; create a new draft instead.

  • Move chosen content to the trash

    Only when you ask. Nothing is deleted permanently. This tool can also trash published content, so confirm what should be removed first. It refuses if WordPress’s trash is disabled.

  • Review before publishing

    Your AI returns edit and preview links. Publishing stays your step. Posts and pages tools start off; page-builder layouts use their builder’s tools.

  • Content and SEOWrites

    Draft a blog post from my outline

    Turn your outline into a post you can review before publishing.

    Prompt Draft a blog post from my outline

    Draft a blog post from the outline I provide. Ask for the outline if I haven’t sent it yet. Check the blocks available on my site and validate the markup, then save the post as a draft and give me its edit and preview links. Don’t publish it, create new categories or tags, or change an existing post.

    What your AI does

    Lists the site’s block types, checks the block markup, and creates a new draft post. Invalid block markup is refused before saving. Publishing stays your step.

    • list_block_types
    • validate_blocks
    • create_post

    Needs: MCPMate Pro, with create_post turned on in Tools → Core → Posts and pages. Block listing and checks are on by default.

  • MaintenanceWrites

    Tidy up old drafts (to the trash)

    Review old drafts and move only the ones you choose to the trash.

    Prompt Tidy up old drafts (to the trash)

    Review my old draft posts and pages. List each candidate’s ID, title and last change, then ask which ones I want to remove. After I confirm, re-check that each chosen item is still a draft and move only those IDs to the trash. Leave published, scheduled, private and pending content alone. Never delete anything permanently.

    What your AI does

    Lists draft posts and pages, reads candidates for review, and asks which to remove. After your confirmation it re-checks each status and moves only the selected drafts to WordPress’s trash. This is a write, without a wp-admin approval request. Trashing is refused if WordPress’s trash is disabled.

    • list_posts
    • get_post
    • trash_post

    Needs: MCPMate Pro, with list_posts, get_post and trash_post turned on. WordPress’s trash must be enabled.

Background jobs

  • Search-replace, plugin updates and plugin installation can run as background jobs after the required approval.
  • Your AI checks that job’s status, progress and output with get_cli_job. It must wait for a completed result before reporting that the work is done.
  • An approval-required command still waits for a site administrator before it is queued. Plugin installation never activates the plugin in the same step.
  • Before each run, the worker checks WordPress permissions, the command’s switch and whether AI access is paused. Only the requesting connection can read its job.
  • WP-Cron or Action Scheduler runs the work in short batches. A job silent for 10 minutes is marked failed; job records are kept for seven days after finishing.

Installing a plugin

  • Plugins come from WordPress.org directory slugs only, through WordPress’s installer, with administrator approval.
  • Activation needs its own approval. Configuration outside the tools’ allowlists stays a manual step.
  • MaintenanceWrites

    Approve all pending comments that aren't spam

    Review pending comments and approve only the ones you confirm are appropriate.

    Prompt Approve all pending comments that aren't spam

    List my pending comments. Flag likely spam and uncertain cases, and show me the comments you propose to approve. Ask me to confirm the list, then re-check that those IDs are still pending and approve only the confirmed comments. Leave suspected spam and uncertain cases pending. Don’t delete comments or change any posts.

    What your AI does

    Reads comments through comment list, proposes a moderation list and asks for your confirmation. It then approves only the selected pending comments; approved comments can become visible on the site. This is a write, not a wp-admin approval request. Spam judgement still needs your review.

    • run_wp_cli: comment list
    • run_wp_cli: comment approve

    Needs: MCPMate Pro, comment list and comment approve turned on, and permission to moderate comments.

  • MaintenanceNeeds approval

    Install and set up a plugin

    Install a WordPress.org plugin with approval and work through its setup.

    Prompt Install and set up a plugin

    Ask which WordPress.org plugin slug I want and what I want it to do. Check whether it is already installed, then explain the plan and request installation approval in wp-admin. Wait for my decision. If installation becomes a background job, check its status and wait for it to finish; stop on failure. Don’t activate in the installation step. If I ask to activate it, request a separate approval and wait again. Walk me through settings the tools cannot configure; never bypass an allowlist or accept an arbitrary plugin ZIP.

    What your AI does

    Lists installed plugins, requests an approved WordPress.org installation, and checks the approval or background-job result. Activation is a separate approved action when requested. Plugin-specific settings outside the tools’ allowlists are configured manually with your guidance.

    • run_wp_cli: plugin list
    • run_wp_cli: plugin install
    • check_approval
    • get_cli_job
    • run_wp_cli: plugin activate

    Needs: MCPMate Pro, plugin list, plugin install and plugin activate enabled as needed, job status checks enabled, and permission to install/activate plugins. Installation and activation each require wp-admin approval.

Advanced: read-only SQL

For joins, counts and reports the ordinary lookups cannot express. One SELECT, or WITH … SELECT, on allowed tables belonging to this site.

  • MCPMate Pro, an administrator account and the SQL tool’s own switch are required. The switch starts off in MCPMate → Tools → Core → Database.
  • One statement, at most 16 KiB, runs inside a read-only transaction with a 5-second timeout and a rollback at the end.
  • At most 500 rows and 256 KiB of results. Larger row limits are lowered. Secret-looking values are masked; aliases cannot bypass the checks.
  • Results with more than 200 columns are refused. Each text cell is cut at 2,000 characters; binary values are represented by their size.
  • The full SQL statement is logged for the site administrator. Results may include permitted personal data, which your AI provider receives when the AI reads them. Keep credentials out of query text.

What is refused

  • Writes and multiple statements. Anything except one SELECT or WITH … SELECT: no INSERT, UPDATE, DELETE, schema changes or administrative statements. Semicolons, comments, SHOW, SET, CALL, TABLE and VALUES statements are refused.
  • Other sites, databases and protected fields. Other sites’ tables, views, other databases, schema-qualified names and the information_schema, mysql, performance_schema and sys schemas are refused. Password, key, token and session columns cannot be named anywhere, including in filters or functions.
  • Files, delays, locks and variables. No INTO OUTFILE or DUMPFILE, LOAD_FILE, SLEEP, BENCHMARK, locking reads, lock functions, user or system variables, or stored functions in this database.
  • Ways around masking. option_value and meta_value may appear only as plain, unaliased columns in the outermost SELECT, never in filters, sorting or functions. Select the matching option_name or meta_key for values to be unmasked when safe. Nested wildcards, unsafe set operations and positional ORDER BY or GROUP BY are refused.
  • Unsupported database connections. The tool refuses HyperDB or LudicrousDB-style database routers, non-mysqli drivers and unsafe character sets such as big5, cp932, gb18030, gbk and sjis, where the read-only guarantees cannot be enforced.

Read site files

Browse the site’s configured wp-content folder and read text files by lines, without writing or deleting files.

  • MCPMate Pro, an administrator account and the Files tools’ own switches are required. The tools start off; reads are logged.
  • Every path is checked against the content folder. Symbolic links that lead outside it are refused.
  • Read text in pages of at most 2,000 lines. Files over 512 KiB are read by line pages rather than returned all at once. Binary files, NUL bytes and invalid UTF-8 are refused.
  • Secret-looking lines are redacted, including credential definitions, password/token assignments, PEM blocks and bearer tokens. The response reports how many lines were redacted.
  • This is read-only file access, not a full filesystem tool. Review returned text before sharing it; the blocked-folder list and redaction rules cover known patterns.

Read the blocked-paths list

Limits of these tools

  • WP-CLI-style commands run reviewed PHP handlers inside WordPress. They do not accept arbitrary PHP or shell commands.
  • Database inspection and read-only SQL cannot write to the database. File browsing cannot write or delete site files.
  • core verify-checksums reports changed and missing core files, not extra ones.

Recipes

  • Site healthRead only

    See which plugins have updates waiting

    A list of plugins with their current and new versions.

    Prompt See which plugins have updates waiting

    Which of my plugins have updates waiting? List each one with its current and new version. Don’t update anything.

    What your AI does

    Lists your plugins with their versions and any update waiting.

    • run_wp_cli: plugin list

    Needs: Command plugin list turned on.

  • MaintenanceNeeds approval

    Update a plugin

    An update that runs only after you approve it.

    Prompt Update a plugin

    Update [plugin name] to the latest version.

    What your AI does

    Checks the plugin and requests the update. The request waits in Activity → Approvals with a preview and expires after 15 minutes. When you approve, it runs once. MCPMate keeps no copy of the old plugin version, so back up first.

    • run_wp_cli: plugin list
    • run_wp_cli: plugin update
    • check_approval

    Needs: Commands plugin list and plugin update turned on.

    Works with: Any plugin, including WooCommerce

Recognised SEO plugins

These plugins are recognised; their fields cannot be written yet.

  • The SEO Framework
  • Slim SEO
  • SmartCrawl
  • Squirrly SEO

Try it on your own site

Install the plugin, paste one address into your AI app, and approve it in WordPress. Pause or revoke access any time.