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
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
| Command | What it does | Kind | Plan |
|---|---|---|---|
plugin getAvailable | Show one installed plugin: version, author, requirements and update availability. | Read only | |
plugin listAvailable | List installed plugins with status, version and update availability. | Read only | |
theme getAvailable | Show one installed theme: version, author, requirements and update availability. | Read only | |
theme listAvailable | List installed themes with status, version and update availability. | Read only | |
plugin activateAvailable | Activate one or more plugins. | Needs approval | |
plugin deactivateAvailable | Deactivate one or more plugins. | Needs approval | |
plugin installAvailable | Install plugins from WordPress.org by slug, without activating them. Runs in the background once approved (get_cli_job). | Needs approval | |
plugin updateAvailable | Update one or more plugins to the version WordPress last found. Runs in the background once approved (get_cli_job). | Needs approval | |
theme activateAvailable | Switch the active theme. | Needs approval |
Posts and taxonomy11 available
| Command | What it does | Kind | Plan |
|---|---|---|---|
post getAvailable | Show one post, including its content. | Read only | |
post listAvailable | List posts of one post type. | Read only | |
post meta getAvailable | Read one custom field of a post. | Read only | |
post-type listAvailable | List the registered post types. | Read only | |
taxonomy listAvailable | List the registered taxonomies. | Read only | |
term getAvailable | Show one term by ID or slug. | Read only | |
term listAvailable | List the terms of one taxonomy (categories, tags, product categories…). | Read only | |
post meta deleteAvailable | Remove one allowlisted custom field of a post (SEO title, description, focus keyword). | Writes | |
post meta updateAvailable | Change one allowlisted custom field of a post (SEO title, description, focus keyword). | Writes | |
term createAvailable | Create a term (a category, tag or other term). | Writes | |
term updateAvailable | Change a term's name, slug, description or parent. | Writes |
Settings and maintenance17 available
| Command | What it does | Kind | Plan |
|---|---|---|---|
core verify-checksumsAvailable | Compare core files with the official checksums from WordPress.org. | Read only | |
core versionAvailable | Show the WordPress version. | Read only | |
cron event listAvailable | List scheduled cron events. | Read only | |
cron schedule listAvailable | List the cron schedules (recurrence intervals) events can use. | Read only | |
option getAvailable | Read one allowlisted option. | Read only | |
option listAvailable | List allowlisted options and their values. | Read only | |
rewrite listAvailable | List the rewrite rules, or the ones a URL path matches. | Read only | |
site listAvailable | List the sites of this multisite network. | Read only | |
transient getAvailable | Read one transient (secret values masked). | Read only | |
cache deleteAvailable | Delete one object cache entry (WordPress loads it again when needed). | Writes | |
cache flushAvailable | Flush the object cache. Runs in the background (get_cli_job). | Writes | |
cron event runAvailable | Run scheduled cron events now, by hook or every event that is due. Runs in the background (get_cli_job). | Writes | |
option deleteAvailable | Delete one option a site admin allowed to be deleted (none by default). | Writes | |
option updateAvailable | Change one allowlisted option (site title, tagline, date formats, timezone, reading settings). | Writes | |
rewrite flushAvailable | Regenerate the rewrite rules (soft flush, no .htaccess changes). | Writes | |
transient deleteAvailable | Delete one transient, or all expired transients. | Writes | |
rewrite structureAvailable | Change the permalink structure (e.g. /%postname%/). Changes every post URL, so it waits for approval. | Needs approval |
Users and comments7 available
| Command | What it does | Kind | Plan |
|---|---|---|---|
comment listAvailable | List comments, newest first. | Read only | |
role listAvailable | List the user roles and how many capabilities each has. | Read only | |
user getAvailable | Show one user by ID, login or email. | Read only | |
user listAvailable | List users with their roles. | Read only | |
comment approveAvailable | Approve one or more comments. | Writes | |
comment spamAvailable | Mark one or more comments as spam. | Writes | |
comment unapproveAvailable | Move one or more comments back to pending. | Writes |
Search and replace1 available
| Command | What it does | Kind | Plan |
|---|---|---|---|
search-replaceAvailable | Replace 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.
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 outlineDraft 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_typesvalidate_blockscreate_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_postsget_posttrash_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 spamList 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 listrun_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 pluginAsk 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 listrun_wp_cli: plugin installcheck_approvalget_cli_jobrun_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.
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-checksumsreports 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 waitingWhich 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 pluginUpdate [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 listrun_wp_cli: plugin updatecheck_approval
Needs: Commands plugin list and plugin update turned on.
Works with: Any plugin, including WooCommerce
-
MaintenanceNeeds approval
Move old http links to https
Find and replace old http links, safely.
Prompt Move old http links to httpsOur site moved to https. Do a dry run of replacing http://[your domain] with https://[your domain] across the site, and tell me how many matches you find.
What your AI does
Runs a dry run and reports the matches. The real replacement waits for your approval. This change isn’t captured in change history, so back up first.
run_wp_cli: search-replacecheck_approval
Needs: Command search-replace turned on.
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.