The short version
- Drafts, not published.
What the AI builds is saved as a draft. Publishing is yours.
- Trash, not delete.
The AI can move things to the trash. It can’t delete anything for good.
- Big changes ask you first.
Plugin updates, theme switches and site-wide text replacements wait for your approval in wp-admin. Requests expire after 15 minutes.
- Theme edits happen in a copy.
Going live makes a backup first, and you can roll back.
- Only actions on the list.
Named tools and commands, each checked against permissions and its own access switch.
- Your AI can’t approve itself.
Approvals happen only in wp-admin, signed in as you.
Standard tools follow the safeguards below; live integration operations and developer options have explicit approval boundaries.
Nothing in between
- Your AI app on its provider’s servers
- Your site’s MCP URL
/wp-json/mcpmate/mcp - MCPMate inside WordPress
- Your content
There’s no MCPMate server and no MCPMate account. The plugin is both the MCP server and the sign-in server, and only your site’s own database holds connections and tokens. Your WordPress users are the accounts, and nothing is emailed.
How sign-in works
- In the default sign-in flow, an administrator approves every connection on a page in wp-admin. The page names the app, marks one that registered itself as “not verified”, and shows where it will send you back. This flow never skips approval, and there’s no “remember this app”.
- Access tokens last 15 minutes by default, refresh tokens rotate, and reusing an old one revokes the connection. Tokens, codes and secrets are stored only as hashes.
- The default connection uses approval-based sign-in. Application Passwords and HTTP Basic sign-in are refused.
- HTTPS is required, except on a development site on your own computer.
What the AI can touch
Each call runs as the WordPress user who approved the app, never as anyone more powerful. WordPress checks that user’s permissions first, then MCPMate checks that the action is on its allowlist and switched on. Only then does it run.
- Off until you turn it on. Every command and every other plugin’s action starts switched off. A few read-only basics, such as your site’s summary, start on.
- An access level for each app: Full, Read-only or Custom.
- Pause and revoke. Pause AI access stops every app at once without disconnecting them. Revoking one app, or all of them, takes effect immediately.
- Standard tools use named operations. Commands run reviewed PHP handlers inside WordPress. Database inspection and read-only SQL cannot write data; file browsing cannot write or delete files. The developer options below have their own, broader boundaries.
Read mode
Read mode makes every connected AI app read-only at once, whatever its access level. Switch it on beside Pause AI access on the Dashboard. Write tools are hidden, write requests are refused, and pending approvals cannot be approved while it is on. Reads still work; Pause AI access stops reads too.
Look up site content and settings
Fields that are never shown
- 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_rulesand 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.
- 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.
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.
Sandbox plugins
- AI-written helper files stay under wp-content/mcpmate-sandbox/, separate from installed plugins and your live theme. Every editing path is checked.
- A new helper stays inactive. Enabling it waits for an administrator’s approval of the exact files and their checksums.
- Files can be edited only while a helper is disabled. Enabling the changed helper requires approval of its new file checksums.
- A fatal error while a sandbox file loads writes a crash marker. The next request skips sandbox loading in safe mode.
- The administrator sees the error, file and line in a notice and can disable the helper, inspect its files and clear the crash state after reviewing the fix.
- The approval route skips sandbox loading so a broken helper cannot block the review step. File syntax checks run before saving.
- MCPMate Pro is required. The sandbox tools start off, and a helper does not run until its exact files have been approved.
- DISALLOW_FILE_MODS or DISALLOW_FILE_EDIT turns the sandbox capability off. Deactivating MCPMate Pro stops its sandbox loader.
- Only a site administrator with permission to activate and edit plugins can use these controls. Manage helpers from MCPMate → Tools → Sandbox.
- The AI can disable a helper but cannot delete its files. An administrator’s Remove action moves it into a separate .removed folder.
This is a controlled folder and approval workflow, not a separate PHP process. Enabled helper code runs inside WordPress and can affect the site’s data and behaviour. Review it and test on staging before enabling it on a live site. Crash recovery covers fatal errors during loading; it is not a guarantee against logic errors or every later callback failure.
Read site files
Blocked paths and file types
- Outside the content folder. Paths outside the configured wp-content root, including symbolic links that escape it.
- Hidden files and configuration. Dot-files and dot-folders, .env* files and wp-config* files.
- Keys and certificates. Files ending in .key, .pem, .p12, .pfx or .crt.
- Database dumps, archives and backups. Files ending in .sql, .sql.gz, .zip, .tar, .gz, .tgz, .7z, .rar or .bak; folders matching backup*, updraft, ai1wm-backups and backups-dup-*.
- Private upload folders. Known WooCommerce logs and downloads, known form-plugin upload folders, and uploads/mcpmate/.
- Sandbox crash records. The mcpmate-sandbox/.crashed marker, along with other dot-files and dot-folders.
- 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.
Drafts, trash and approvals
- Standard content tools save drafts. Posts and pages are saved as draft or pending. Approved live integration operations, sandbox helpers and the developer options below have separate boundaries.
- Trash, not delete. Removals go to the trash; nothing is deleted for good.
Actions that ask you first
These wait in Activity → Approvals until you approve them:
- installing, activating, deactivating or updating a plugin;
- integration operations marked for approval, including live product changes, structural field changes and theme settings;
- activating a design, enabling sandbox code, running PHP and issuing browser login links;
- switching themes;
- replacing text across the database (search-replace);
- publishing a theme draft, or rolling one back;
- other plugins’ actions that delete things.
Each request shows a preview, expires after 15 minutes and runs once. Your AI can’t approve its own requests.
Other plugins’ actions follow their own rules. An action you turn on runs its plugin’s code, which may publish or delete for good. Read each one before you turn it on.
Theme changes
Your AI edits a draft copy of your theme. Each file is checked before it’s saved, and you see the result through a signed preview link that expires (5 minutes to 24 hours). Publishing makes a backup first, and a rollback puts it back; both wait for your approval.
A draft’s PHP runs on your server when its preview is opened. The file checks catch broken code, not every mistake.
Logs and change history
- Every change is logged with the app, the user, the time and the result, and reads are logged too, by default. Nobody can edit or delete single log entries.
- Change history keeps a before and after copy of each changed item, with a diff.
- Secrets are masked before anything is logged.
- The audit log is kept for 90 days, reads for 30 and change history for 30, all adjustable.
Some changes leave no before and after copy: search-replace, and other plugins’ actions that write their own tables. They’re still in the audit log.
Where your data goes
The plugin sends nothing anywhere on its own. Its outbound services are listed here:
- to download an image or PDF your AI asked to add ;
- to read an AI app’s public name for the approval page;
- to test your own site during setup;
- to search Unsplash, if you add your own key.
- WordPress contacts WordPress.org to install a directory plugin after you approve the action .
Connections, hashed tokens, the audit log and change history stay in your site’s database. There’s no analytics or telemetry, and the plugin sets no cookies.
Never logged or stored in the clear: passwords, sign-in headers, cookies, sign-in tokens and codes, and your Unsplash key.
Your AI app’s provider receives what your AI reads and writes. Check its data policy.
Dashboard chat sends your messages, attached images, instructions and tool results to Anthropic using your own API key. Chat inside WordPress
Your data
- Memory stays under your control. Memory holds preferences, site decisions and progress notes in your site’s database, shared by apps connected by the same WordPress user. In Tools → Memory you can browse, edit, restore or permanently purge trashed notes. The AI only trashes notes; they are kept for 30 days. Known password, key and token patterns are refused, but detection cannot identify every secret. Do not save credentials or sensitive personal information in notes. When your AI reads a note, its provider receives that text under its own data policy.
- Before you uninstall. Review what “Remove all data on uninstall” deletes and what stays, including tables with row counts, options, sandbox files and theme backups. Export the audit log and change history as JSON before removing the plugin.
Upload from your computer
- Each link is for one file and expires after 10 minutes. Once an upload attempt claims it, it cannot be reused; request a fresh link after a failed attempt.
- The link is bound to the AI connection, a filename, an allowed type and a maximum size. At most five unused links can be active for one connection.
- Revoking the connection expires its links. Uploads are refused while AI access is paused, when the upload tool is off or when that connection is not allowed to use it.
- The upload token goes in a request header, not in the URL, and only its hash is stored. Expired link records are removed a day after expiry.
- File contents determine the type. Media Library size, type and SVG-cleaning rules still apply. This uploads media; it cannot overwrite an arbitrary site file.
- Files in the Media Library are public by their address as soon as they are uploaded, even if the post that uses them is still a draft.
- The 10-minute expiry applies to the upload link. An uploaded Media Library file remains until you remove it through WordPress.
Limits we want you to know about
- Images and PDFs your AI adds are public by their address straight away, even before the post is.
- Previewing a theme draft runs its PHP on your server.
- Other plugins’ actions follow their own rules, not MCPMate’s.
- Only administrators can approve AI apps.
- Change history doesn’t see every kind of write.
- Site checks test from your own server, so a pass isn’t a guarantee that every AI app can connect.
If a change breaks your site
- Pause AI access first.
- A theme publish: roll it back (it asks you first).
- A plugin update: reactivate or roll back the plugin yourself, because MCPMate doesn’t keep plugin backups.
- Anything removed: restore it from the trash.
If the live theme fails to load, MCPMate’s rollback can’t run either. Use WordPress’s recovery mode, or Appearance → Themes.
Developer options, off by default
These Pro options deliberately expand access beyond the standard tools. Each requires a server-side opt-in and a separate administrator switch; none is enabled by default.
Run PHP
Opt-in · off by default
The execute_php tool runs administrator-approved PHP. This is a developer escape hatch: arbitrary PHP can change live data beyond the standard draft and trash safeguards.
Requires both the option’s enable constant in wp-config.php and an administrator switch. Both start off; installing Pro or defining a path does not turn an option on.
- wp-config.php
MCPMATE_ENABLE_EXECUTE_PHPset totrue.- Admin switch
- MCPMate → Tools → Core → Run PHP: enable execute_php..
What still protects the site
- Approval and access: Every call waits for an administrator’s approval, showing the exact code before execution. The AI cannot approve its own request.
- Audit: The code is stored in the audit row, with the requesting user and result. Review code before approval; syntax checks do not prove it is safe.
- Read mode: Read mode refuses PHP execution, including code described as read-only.
- Code is linted and runs in a separate request with a time limit; captured output is capped.
- Normal WordPress permissions, pause and revoke remain in force; no automatic undo is promised.
Real WP-CLI passthrough
Opt-in · off by default
Run the actual WP-CLI executable instead of MCPMate’s reviewed PHP command handlers. Commands can change live data and are not limited to standard draft operations.
Requires both the option’s enable constant in wp-config.php and an administrator switch. Both start off; installing Pro or defining a path does not turn an option on.
- wp-config.php
MCPMATE_ENABLE_SHELL_CLIset totrue.- Admin switch
- MCPMate → Tools → Core → WP-CLI on the server: enable run_wp_cli_shell..
Additional prerequisite: MCPMATE_CLI_PATH. An administrator must define the path to the WP-CLI executable. A path alone does not enable passthrough.
What still protects the site
- Approval and access: Every non-read command waits for approval. Review the exact command and arguments; the AI cannot approve it.
- Audit: Requests and their results remain in the audit log, attributed to the requesting user.
- Read mode: Read mode refuses the entire passthrough route, including read commands. Use the standard read tools instead.
- Arguments are passed directly as argv without a shell, and output is capped.
- This is separate from both the standard AI command allowlist and the Free wp mcpmate terminal management commands.
One-time admin login links
Opt-in · off by default
The create_admin_login_link tool supports browser automation by issuing a login link for the grant’s own WordPress user. It cannot select a more powerful user.
Requires both the option’s enable constant in wp-config.php and an administrator switch. Both start off; installing Pro or defining a path does not turn an option on.
- wp-config.php
MCPMATE_ENABLE_LOGIN_LINKSset totrue.- Admin switch
- MCPMate → Tools → Core → Browser sign-in: enable create_admin_login_link..
What still protects the site
- Approval and access: Every link request waits for a site administrator’s approval. The link signs in only as the requesting Full-access connection’s administrator; the browser can reach beyond MCPMate’s standard draft tools.
- Audit: Using a link is audited and the resulting administrator session shows an admin notice. Never share a login link or include it in support messages.
- Read mode: Read mode and Pause AI access block issuing and using links. Sessions created by these links are ended when access is paused, read mode is enabled or the connection is revoked.
- After approval, a link is valid for five minutes, is single-use and is bound to the requesting IP address. Its tagged browser session lasts at most one hour.
Ghost Mode
Opt-in · off by default
Hide MCPMate’s menu, notices and admin-bar item from selected administrators for client handoff. This changes visibility, not permissions.
Requires both the option’s enable constant in wp-config.php and an administrator switch. Both start off; installing Pro or defining a path does not turn an option on.
- wp-config.php
MCPMATE_ENABLE_GHOST_MODEset totrue.- Admin switch
- MCPMate → Settings → Ghost Mode: select the affected administrators..
What still protects the site
- Approval and access: An administrator explicitly enables it and chooses the affected administrators. It never hides from the administrator who enabled it; tool approvals still apply.
- Audit: Auditing never stops. Ghost Mode remains listed in Site Health, so MCPMate cannot be fully hidden.
- Read mode: Read mode continues to refuse AI writes. Hiding interface elements cannot disable read mode, approvals, pause or revoke.
- Use it to simplify the client interface, not to conceal activity or grant access.
Report a security issue
Security contact address and disclosure policy, once chosen (C56)
Questions
What if the AI breaks my live site?
MCPMate’s own tools are built so mistakes stay small and easy to undo. Pages the AI builds are saved as drafts, and nothing the AI does can publish them. Removals go to the trash, never permanent deletion. Theme changes happen in a copy of your theme with a private preview link, and going live makes a backup first, so you can roll back. Risky actions such as updating plugins, switching themes or replacing text across the database wait until you approve them in wp-admin; these, and theme drafts, come with MCPMate Pro. If anything looks wrong, one button pauses every AI app.
Who else sees my site’s data? Is there a middleman?
There’s no MCPMate server. Your AI app connects to your own site’s address, and the plugin handles the sign-in itself. The plugin sends nothing anywhere on its own; the cases where it reaches out are listed above. Your AI app’s provider, such as Anthropic or OpenAI, does see what your AI reads and writes, under its own terms.
Do I have to hand over my admin password?
No. You never copy a password or create an Application Password. When your AI app connects, WordPress opens an approval page for you, logged in as yourself. You can let the app read only, or read and make changes. The app then works as the administrator who approved it, and you can revoke it at any time.
Can I use it on a staging site?
Yes. A copy of your site has its own MCP URL, so connect your AI app to it separately; apps connected to the copy can’t use your live site.
Go deeper
- Change history and rollbackBefore and after copies
- Access controlAccess levels, pause and revoke
- Theme drafts and previewCopies, previews and backups
- Site data, WP-CLI and databaseLookups, commands and database reads
- Page builders and blocksDrafts and checked markup
How these guardrails compare with other ways to connect: Compare.