Skip to content

AI & MCP

WordPress with AI

Copy page

Install, update, plugins and themes, settings, maintenance mode, cache, security scan, error logs, users, staging, changing the site address, wp-cron, optimization and backups of your own WordPress sites from your AI tool

With the 30 WordPress tools of Remote MCP, your AI tool manages the WordPress sites on your own hosting. It can list sites and pending updates, install a fresh WordPress, and update core, plugins and theme. It also manages plugins, themes and settings, turns maintenance mode on and off, flushes the cache, scans for hacked files, optimizes and backs up the site, and gives you a one-time wp-admin login. It also reads error logs, manages users, makes staging copies, changes the site address safely and moves wp-cron to the hosting cron.

Quick start

  1. Have hosting. If you don’t, say “buy WordPress hosting with a free subdomain”. The tool suggests a plan (list_plans with category wordpress_hosting) and, with your approval, places the order (approval link or in-chat confirmation).
  2. Connect Remote MCP and approve wordpress:read and wordpress:write. The wp-admin login link also needs hosting:login. If you connected before, re-authenticate once (in Claude Code: /mcp → hostino → Re-authenticate).
  3. Ask: “Show my WordPress sites and which plugins have updates.”

Tools

ToolPermissionWhat it does
wordpress_list_siteswordpress:readWordPress sites on your hosting: URL, version, latest version, outdated/healthy, main site
wordpress_site_infowordpress:readOne site’s details: WordPress, PHP and database versions, active theme, plugins/theme with updates, page load time, 2FA status
wordpress_login_linkhosting:loginOne-time wp-admin login link for the account owner
wordpress_updatewordpress:writeUpdate core (WordPress itself), plugins (all or given ones) or theme (the active theme)
wordpress_install_pluginwordpress:writeInstall and activate a wordpress.org plugin by its slug (e.g. wordpress-seo)
wordpress_installwordpress:writeInstall a fresh WordPress on the service’s domain or one of its subdomains (optionally in a folder); Persian by default
wordpress_install_statuswordpress:readInstallation progress

Site management

ToolPermissionWhat it does
wordpress_pluginswordpress:readInstalled plugins: slug, name, active/inactive, version, available update
wordpress_plugin_managewordpress:writeSet one plugin’s state to active, inactive or deleted
wordpress_themeswordpress:readInstalled themes and the active one
wordpress_theme_managewordpress:writeInstall a wordpress.org theme (install: true, optionally activate: true) or activate an installed one (install: false)
wordpress_settingswordpress:readTitle, tagline, search-engine visibility, permalinks, site/home URL, timezone, language, admin email
wordpress_update_settingswordpress:writeChange title, tagline, search_engines (allowed / discouraged), timezone (e.g. Asia/Tehran) or permalinks (post_name, day_and_name, month_and_name, category, numeric)
wordpress_maintenancewordpress:writemode: status, on (visitors see a maintenance page, admins keep working) or off
wordpress_cache_flushwordpress:writeFlush the object cache, expired transients and the LiteSpeed Cache / WP Super Cache page cache
wordpress_adminswordpress:readAdministrator accounts (login, email, registration date)
wordpress_security_scanwordpress:readCompare core and plugin files with the official wordpress.org checksums and list changed or added files

Debugging, users, staging and site address

ToolPermissionWhat it does
wordpress_debug_logwordpress:readLatest lines of wp-content/debug.log and the PHP error_log (1–300 lines, default 100), and whether debug logging is on. Start here for a white screen, a “critical error” or a 500
wordpress_set_debugwordpress:writeenabled: true writes PHP errors to debug.log (never shown to visitors); always turn it off again with enabled: false once the problem is found
wordpress_userswordpress:readAll users with login, email, roles and registration date
wordpress_manage_userwordpress:writeaction: create (roles editor, author, contributor, subscriber, shop_manager, customer or administrator), reset_password (new password, or send_email: true to email a reset link) and delete
wordpress_search_replacewordpress:writeReplace one URL or domain with another across the whole database (serialized-data safe; GUIDs untouched) — for moving to a new domain or switching http to https
wordpress_search_directorywordpress:readSearch wordpress.org plugins or themes (type: plugin or theme) with rating, active installs and compatibility, to pick a slug before installing
wordpress_cronwordpress:writemode: status, server (page-visit wp-cron off, run from the hosting cron every 15 minutes) or wordpress (back to the default; removes that cron job)
wordpress_stagingwordpress:writeaction: list, create, status, push and delete for a staging copy (details below)

Optimization and backups

ToolPermissionWhat it does
wordpress_optimizewordpress:writeStart Hostino’s optimizer: types ALL (default) or any of PHP, DATABASE, JS, CSS, IMAGES
wordpress_job_statuswordpress:readProgress of an optimization (kind: optimize) or backup/restore (kind: backup) job
wordpress_backup_statuswordpress:readDate and size of the latest backup (files + database)
wordpress_backup_createwordpress:writeMake a full backup now; it replaces the previous latest backup
wordpress_backup_restorewordpress:writeOverwrite the site with its latest backup; everything changed since then is lost

Name a site by the URL wordpress_list_sites returns (e.g. https://blog.example.com). If you omit it, the account’s main site is used.

When a site breaks after an update (white screen)

A typical conversation: “My site shows a white page after last night’s update.”

  1. wordpress_maintenance on, so visitors see a clean maintenance page.
  2. wordpress_debug_log reads the error log. If debug.log is empty, wordpress_set_debug with enabled: true, open the page once and read the log again. The error usually names the plugin or theme file at fault (e.g. wp-content/plugins/<name>/…).
  3. wordpress_plugin_manage deactivates that plugin (inactive). If the error is “Allowed memory size”, a higher memory_limit with hosting_set_php_settings helps.
  4. wordpress_cache_flush, then check the site. If it’s still broken, wordpress_backup_status shows the latest backup date, and with your explicit OK wordpress_backup_restore brings it back.
  5. wordpress_set_debug with enabled: false and wordpress_maintenance off.

Test on staging, then push live

“I want to try a new theme without risking the live site.”

  1. wordpress_staging with action: create copies the site to staging.<domain> at the same path (e.g. https://example.com/shop → https://staging.example.com/shop). The subdomain is created if needed; copying takes a few minutes in the background and the tool follows it with action: status and the job_id.
  2. If the domain’s DNS is not hosted on this hosting, staging.<domain> needs a DNS record (dns_set_record).
  3. Make and check your changes on the staging copy. Every WordPress tool works on it with site set to the staging URL.
  4. action: push copies the staging site over the live site. A restore point of the live site is created first, and confirm must be exactly the live site’s URL.
  5. action: delete (with confirm = the staging URL) removes the staging files and database; you can remove the subdomain afterwards with hosting_delete_subdomain.

Changing the site’s domain safely

“I moved my site from old.com to new.com; links still go to the old domain.”

  1. wordpress_backup_create, and wait until it finishes (wordpress_job_status).
  2. wordpress_search_replace with from: "https://old.com", to: "https://new.com" as a dry run (the default): the tool shows how many replacements per table.
  3. After you confirm, the same call with dry_run: false and confirm_from: "https://old.com".
  4. wordpress_cache_flush. Use the same steps for switching http://example.com → https://example.com.

More reliable wp-cron

The default wp-cron only runs when someone visits the site: on a quiet site scheduled posts go out late, and on a busy site it adds load. wordpress_cron with mode: server turns it off and adds a 15-minute cron job on the hosting (it counts toward the hosting’s 20 cron job limit). mode: wordpress puts everything back.

Security check

  • wordpress_security_scan compares every core file and every wordpress.org plugin with the official checksums. core_files: ok means WordPress itself is untouched. Premium or custom plugins have no official checksums, so they can show up without being hacked.
  • wordpress_admins lists administrator accounts. An admin you don’t recognize is a strong sign of a break-in.
  • If something looks wrong: maintenance on, change passwords, delete the unknown admin in wp-admin (wordpress_login_link), and ask support for a malware scan.

Faster site

“Make my site faster”: the tool runs wordpress_backup_create first, then wordpress_optimize (database cleanup, image compression, CSS/JS minification, PHP settings), follows it with wordpress_job_status, flushes the cache, and compares the before and after score with site_audit.

Installing a fresh WordPress

  • wordpress_install runs in the background (usually under a minute); the tool follows it with wordpress_install_status.
  • The admin password is random and never shown. Sign in with wordpress_login_link, then set your own password in wp-admin.
  • If WordPress already exists at that address, nothing is installed (wordpress_already_installed).
  • Every new WordPress gets its own database and database user, so installing a second site on the same account never affects the existing ones.
  • Create a subdomain in cPanel first, or install on the service’s main domain.

From purchase to a ready site, in one conversation

  1. “Buy Iran WordPress hosting with the subdomain myshop.” The tool checks myshop.hostino.cloud is free with check_subdomain and shows the pre-invoice.
  2. You approve: with the approval link or by typing the confirmation phrase in the chat. If you have credit, paying from credit is confirmed with a phrase that names the exact amount; otherwise you pay the invoice in the panel.
  3. After payment the service is created automatically and the subdomain’s DNS is set up automatically; get_order_status reports it.
  4. “Install WordPress on this hosting” → a few seconds later, a wp-admin login link.

Notes and limits

  • Every tool works on any WordPress site of the account: the main site, sites in a folder (e.g. /blog) and sites on a subdomain.
  • Back up before major updates. The tool should ask you before every change.
  • Plugins are installed only by their wordpress.org slug (lowercase letters, digits, hyphens).
  • The WordPress tools work on Linux, WordPress, Smart and Node.js hosting; email services are not included.

Security

  • Only sites on your own hosting can be targeted; identity comes only from your login token.
  • Every input (domain, path, plugin name, language, …) is checked against a strict format before anything runs.
  • The login link is single-use. The tool shows it only to you and must not open it.

Errors

Error codeMeaning
site_not_foundThat site isn’t on this service; the response lists the existing sites
invalid_pluginNot a valid plugin name; use the wordpress.org slug
domain_not_on_serviceThe domain doesn’t belong to this service
wordpress_already_installedWordPress already exists at that address
wordpress_operation_failedThe operation failed on the server; details in detail
invalid_slugNot a valid plugin/theme slug; use the wordpress.org slug
invalid_permalinks / invalid_search_enginesOnly the listed values are accepted
nothing_to_changewordpress_update_settings was called without any setting
invalid_typeUnknown optimization type; use ALL, PHP, DATABASE, JS, CSS or IMAGES
confirmation_requiredCreating an administrator without confirm_role: "administrator"
confirmation_mismatchconfirm or confirm_from is not exactly the required value
last_administratorThe site’s last administrator cannot be deleted
user_not_found / invalid_reassignUser not found, or reassign is not another existing user
staging_exists / staging_not_found / already_stagingA staging copy already exists, was not found, or the source site is itself a staging copy
hosting_tools_not_availableStaging and the hosting cron are only available on cPanel hosting
service_not_found / service_not_activeThe service isn’t yours or isn’t active

Example prompts

  • “Which of my WordPress sites are outdated?”
  • “Update the main site’s plugins, but tell me first what will be updated.”
  • “Install the Rank Math plugin.”
  • “Install Persian WordPress on blog.example.com and give me a login link.”
  • “Buy WordPress hosting with a free subdomain and install WordPress on it.”
  • “Put my site in maintenance mode, delete the inactive plugins and flush the cache.”
  • “Scan my WordPress core files for suspicious changes and list the admins.”
  • “Google doesn’t index my site: check search-engine visibility and set permalinks to post name.”
  • “Back up my site, then optimize the database and images.”
  • “My site shows a white page; read the error log and find the plugin at fault.”
  • “Make a staging copy of my site so I can try a new theme.”
  • “Push the staging changes to the live site.”
  • “Switch the site address from http to https; show me the dry run first.”
  • “Create an editor user for ali@example.com.”
  • “Find the best contact form plugin and install it.”
  • “Move wp-cron to the hosting cron.”