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
- Have hosting. If you don’t, say “buy WordPress hosting with a free subdomain”. The tool suggests a plan (
list_planswith categorywordpress_hosting) and, with your approval, places the order (approval link or in-chat confirmation). - Connect Remote MCP and approve
wordpress:readandwordpress:write. The wp-admin login link also needshosting:login. If you connected before, re-authenticate once (in Claude Code:/mcp→ hostino → Re-authenticate). - Ask: “Show my WordPress sites and which plugins have updates.”
Tools
| Tool | Permission | What it does |
|---|---|---|
wordpress_list_sites | wordpress:read | WordPress sites on your hosting: URL, version, latest version, outdated/healthy, main site |
wordpress_site_info | wordpress:read | One site’s details: WordPress, PHP and database versions, active theme, plugins/theme with updates, page load time, 2FA status |
wordpress_login_link | hosting:login | One-time wp-admin login link for the account owner |
wordpress_update | wordpress:write | Update core (WordPress itself), plugins (all or given ones) or theme (the active theme) |
wordpress_install_plugin | wordpress:write | Install and activate a wordpress.org plugin by its slug (e.g. wordpress-seo) |
wordpress_install | wordpress:write | Install a fresh WordPress on the service’s domain or one of its subdomains (optionally in a folder); Persian by default |
wordpress_install_status | wordpress:read | Installation progress |
Site management
| Tool | Permission | What it does |
|---|---|---|
wordpress_plugins | wordpress:read | Installed plugins: slug, name, active/inactive, version, available update |
wordpress_plugin_manage | wordpress:write | Set one plugin’s state to active, inactive or deleted |
wordpress_themes | wordpress:read | Installed themes and the active one |
wordpress_theme_manage | wordpress:write | Install a wordpress.org theme (install: true, optionally activate: true) or activate an installed one (install: false) |
wordpress_settings | wordpress:read | Title, tagline, search-engine visibility, permalinks, site/home URL, timezone, language, admin email |
wordpress_update_settings | wordpress:write | Change title, tagline, search_engines (allowed / discouraged), timezone (e.g. Asia/Tehran) or permalinks (post_name, day_and_name, month_and_name, category, numeric) |
wordpress_maintenance | wordpress:write | mode: status, on (visitors see a maintenance page, admins keep working) or off |
wordpress_cache_flush | wordpress:write | Flush the object cache, expired transients and the LiteSpeed Cache / WP Super Cache page cache |
wordpress_admins | wordpress:read | Administrator accounts (login, email, registration date) |
wordpress_security_scan | wordpress:read | Compare core and plugin files with the official wordpress.org checksums and list changed or added files |
Debugging, users, staging and site address
| Tool | Permission | What it does |
|---|---|---|
wordpress_debug_log | wordpress:read | Latest 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_debug | wordpress:write | enabled: 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_users | wordpress:read | All users with login, email, roles and registration date |
wordpress_manage_user | wordpress:write | action: 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_replace | wordpress:write | Replace 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_directory | wordpress:read | Search wordpress.org plugins or themes (type: plugin or theme) with rating, active installs and compatibility, to pick a slug before installing |
wordpress_cron | wordpress:write | mode: 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_staging | wordpress:write | action: list, create, status, push and delete for a staging copy (details below) |
Optimization and backups
| Tool | Permission | What it does |
|---|---|---|
wordpress_optimize | wordpress:write | Start Hostino’s optimizer: types ALL (default) or any of PHP, DATABASE, JS, CSS, IMAGES |
wordpress_job_status | wordpress:read | Progress of an optimization (kind: optimize) or backup/restore (kind: backup) job |
wordpress_backup_status | wordpress:read | Date and size of the latest backup (files + database) |
wordpress_backup_create | wordpress:write | Make a full backup now; it replaces the previous latest backup |
wordpress_backup_restore | wordpress:write | Overwrite 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.”
wordpress_maintenanceon, so visitors see a clean maintenance page.wordpress_debug_logreads the error log. Ifdebug.logis empty,wordpress_set_debugwithenabled: 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>/…).wordpress_plugin_managedeactivates that plugin (inactive). If the error is “Allowed memory size”, a highermemory_limitwithhosting_set_php_settingshelps.wordpress_cache_flush, then check the site. If it’s still broken,wordpress_backup_statusshows the latest backup date, and with your explicit OKwordpress_backup_restorebrings it back.wordpress_set_debugwithenabled: falseandwordpress_maintenanceoff.
Test on staging, then push live
“I want to try a new theme without risking the live site.”
wordpress_stagingwithaction: createcopies the site tostaging.<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 withaction: statusand thejob_id.- If the domain’s DNS is not hosted on this hosting,
staging.<domain>needs a DNS record (dns_set_record). - Make and check your changes on the staging copy. Every WordPress tool works on it with
siteset to the staging URL. action: pushcopies the staging site over the live site. A restore point of the live site is created first, andconfirmmust be exactly the live site’s URL.action: delete(withconfirm= the staging URL) removes the staging files and database; you can remove the subdomain afterwards withhosting_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.”
wordpress_backup_create, and wait until it finishes (wordpress_job_status).wordpress_search_replacewithfrom: "https://old.com",to: "https://new.com"as a dry run (the default): the tool shows how many replacements per table.- After you confirm, the same call with
dry_run: falseandconfirm_from: "https://old.com". wordpress_cache_flush. Use the same steps for switchinghttp://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_scancompares every core file and every wordpress.org plugin with the official checksums.core_files: okmeans WordPress itself is untouched. Premium or custom plugins have no official checksums, so they can show up without being hacked.wordpress_adminslists 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_installruns in the background (usually under a minute); the tool follows it withwordpress_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
- “Buy Iran WordPress hosting with the subdomain
myshop.” The tool checksmyshop.hostino.cloudis free withcheck_subdomainand shows the pre-invoice. - 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.
- After payment the service is created automatically and the subdomain’s DNS is set up automatically;
get_order_statusreports it. - “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 code | Meaning |
|---|---|
site_not_found | That site isn’t on this service; the response lists the existing sites |
invalid_plugin | Not a valid plugin name; use the wordpress.org slug |
domain_not_on_service | The domain doesn’t belong to this service |
wordpress_already_installed | WordPress already exists at that address |
wordpress_operation_failed | The operation failed on the server; details in detail |
invalid_slug | Not a valid plugin/theme slug; use the wordpress.org slug |
invalid_permalinks / invalid_search_engines | Only the listed values are accepted |
nothing_to_change | wordpress_update_settings was called without any setting |
invalid_type | Unknown optimization type; use ALL, PHP, DATABASE, JS, CSS or IMAGES |
confirmation_required | Creating an administrator without confirm_role: "administrator" |
confirmation_mismatch | confirm or confirm_from is not exactly the required value |
last_administrator | The site’s last administrator cannot be deleted |
user_not_found / invalid_reassign | User not found, or reassign is not another existing user |
staging_exists / staging_not_found / already_staging | A staging copy already exists, was not found, or the source site is itself a staging copy |
hosting_tools_not_available | Staging and the hosting cron are only available on cPanel hosting |
service_not_found / service_not_active | The 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.comand 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.”