About Wp Malware Cleanup MCP
Wp Malware Cleanup MCP is an MCP server published by vapvarun in the Content category: mCP server for cleaning malware from WordPress sites via SSH and WP-CLI. Batch operations for 20+ sites. Conduid read 62 tools from its source: wp_add_security_htaccess, wp_add_site, wp_audit_user, wp_backup_database, wp_batch_scan, wp_batch_update and 56 more. No package is published for it, so it installs from a source checkout.
The repository has 33 stars and 5 forks, is licensed MIT, and its last commit was on 16 Nov 2026. The latest release is v3.0.0. The release before it was v1.0.0. It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include content.
Install
git clone https://github.com/vapvarun/wp-malware-cleanup-mcpTools (62)
wp_add_security_htaccessAdd security rules to .htaccess| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_add_siteAdd a site to configuration| Parameter | Type | Description |
|---|---|---|
| auth_type | string | Authentication type - "key" (recommended) or "password" |
| host * | string | SSH hostname or IP address |
| host_group | string | Fleet grouping key for sites that share a server / cPanel account. Sites in the same group are checked for cross-site reinfection. Defaults to `host` when omitted (e.g. set the cPanel user or server name to group sites that share one account). |
| key_path | string | Path to SSH private key (if using key auth, e.g., ~/.ssh/id_rsa) |
| name * | string | Friendly name for this site (e.g., "client-blog"). Use alphanumeric and hyphens only. |
| notes | string | Optional notes about this site |
| port | integer | SSH port (default: 22) |
| site_url | string | Optional site URL for reference |
| username * | string | SSH username |
| wp_path * | string | Full path to WordPress installation (e.g., /var/www/html) |
wp_audit_userDetailed audit of user activity| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
| username * | string | Username to audit |
wp_backup_databaseCreate database backup| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_batch_scanScan all configured sites| Parameter | Type | Description |
|---|---|---|
| password | string | SSH password (if sites use password auth) |
| status_filter | string | Only scan sites with this status (e.g., "pending", "infected") |
wp_batch_updateUpdate all clean sites| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be True to run the updates. When False, lists the sites that would be updated. |
| password | string | SSH password (if sites use password auth) |
| status_filter | string | Only update sites with this status (default: "clean") |
wp_check_cron_eventsScan cron events for suspicious hooks| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the site to scan |
| password | string | SSH password (if using password auth) |
wp_clean_core_injectionsDelete injected core files (also supports `dry_run=True`)| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Required when dry_run=False. When confirm=False and dry_run=False, returns a preview manifest instead of deleting. |
| dry_run | boolean | If True, report findings without deleting |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_clean_cron_eventsDelete malicious wp-cron events| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be True to actually delete. When False, returns a preview. |
| hook | string | Delete only this specific hook (all its events). When omitted, every hook flagged suspicious is targeted. |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_clean_db_spamRemove spam comments| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be True to proceed |
| force | boolean | Skip the backup-required gate (you accept the risk). By default this refuses to run without a recent backup, since comment deletion is irreversible. |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_clean_malicious_htaccessQuarantine hostile `.htaccess` / `.user.ini`| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be True to quarantine. When False, returns a preview. |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_clean_sc_backdoorDetect and remove the SC / SCOCV drop-in backdoor family| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Required to execute removal when dry_run=False. |
| dry_run | boolean | If True (default), only detect and report counts. |
| name * | string | Registered site name. |
| password | string | SSH password (if using password auth). |
wp_clean_uploads_phpRemove all PHP files from uploads| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be True to proceed with cleaning |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_complete_cleanupFull cleanup + hardening (20 destructive steps)| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be True to execute. When False, returns a cleanup manifest. |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_delete_malware_optionsDelete malware markers from wp_options (also supports `dry_run=True`)| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Required when dry_run=False. When confirm=False and dry_run=False, returns a preview manifest. |
| dry_run | boolean | If True, report findings without deleting |
| force | boolean | Skip the backup-required gate (you accept the risk). By default deletion refuses to run without a recent backup, since a false-positive option deletion can break a site irreversibly. |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_delete_userDelete a WordPress user| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be True to confirm deletion |
| delete_content | boolean | If True, delete all user's content instead of reassigning |
| force | boolean | Skip the backup gate (you accept the risk). A user + usermeta deletion cannot be automatically restored. |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
| reassign_to * | string | Username to reassign content to (use existing legitimate admin) |
| username * | string | Username to delete |
wp_disable_file_editingDisable theme/plugin editor| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_export_sitesExport site configurations| Parameter | Type | Description |
|---|---|---|
| output_format | string | Format for export - "json" or "csv" |
wp_find_recent_usersFind users created recently| Parameter | Type | Description |
|---|---|---|
| days | integer | Number of days to look back (default: 30) |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_fix_permissionsSet secure file permissions| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_fleet_statusFleet scorecard across all sites| Parameter | Type | Description |
|---|---|---|
| password | string | SSH password, if sites use password auth and refresh=True. |
| refresh | boolean | When True, run a fast quick scan across the fleet first to refresh the data (slower; needs SSH/credentials). When False (default), report from the last stored scan of each site. |
| status_filter | string | Only show sites with this status (e.g. "infected"). |
wp_full_hardenComplete hardening in one command| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_generate_case_studyGenerate anonymized case study| Parameter | Type | Description |
|---|---|---|
| case_title | string | Title for the case study |
| malware_type | string | Type of malware (e.g., "Hidden Admin Backdoor", "File Manager Shell") |
| name * | string | Name of the site to document |
| password | string | SSH password (if using password auth) |
wp_generate_reportGenerate cleanup report| Parameter | Type | Description |
|---|---|---|
| anonymize | boolean | Anonymize all identifying information - IPs, emails, domains, paths, SSH keys (default: True) |
| name * | string | Name of the site |
wp_get_siteGet site information| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the site |
wp_harden_wpconfigAdd security constants to wp-config.php| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_host_group_statusOne account's sites + reinfection check| Parameter | Type | Description |
|---|---|---|
| group * | string | The host_group value to inspect (defaults to a site's `host` when no explicit group was set). |
wp_incident_reportClient-facing incident report: timeline, IOCs, before/after, clean sign-off| Parameter | Type | Description |
|---|---|---|
| anonymize | boolean | Redact hostnames/paths/identifiers (default True) |
| name * | string | Name of the site |
wp_install_security_mu_pluginInstall security MU-plugin| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_list_adminsList all administrator users| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_list_scansList scan tasks| Parameter | Type | Description |
|---|---|---|
| site_name | string | Optional - filter by site name |
wp_list_sitesList all configured sites| Parameter | Type | Description |
|---|---|---|
| status_filter | string | Optional filter by status (pending, scanning, cleaning, clean, infected, error) |
wp_monitor_http_requestsCapture outgoing HTTP requests. Drops a temporary mu-plugin, loads the front page and runs all due cron events, then removes it| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the site to monitor |
| password | string | SSH password (if using password auth) |
wp_quarantine_fileMove file to quarantine (recoverable). Preview unless `confirm=True`| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be True to move the file. When False, returns a preview. |
| file_path * | string | Full path to the file to quarantine (must be inside the site's WordPress directory) |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_read_fileRead the first lines of a file inside the WordPress directory (`allow_outside_wp=True` for elsewhere); wp-config.php credentials are masked| Parameter | Type | Description |
|---|---|---|
| allow_outside_wp | boolean | Set True to read a file outside the WordPress directory (e.g. a dropper in /tmp or the account's home). |
| file_path * | string | Full path to the file |
| lines | integer | Number of lines to read (default: 50, max: 2000) |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_regenerate_saltsReplace security salts, invalidate all sessions| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be True to execute. When False, returns a preview of what will happen. |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_reinstall_all_pluginsReinstall all plugins from WordPress.org| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be True to execute. When False, returns a preview of affected plugins. |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_reinstall_all_themesReinstall all themes from WordPress.org| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be True to execute. When False, returns a preview of affected themes. |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_reinstall_coreOverwrite wp-admin/, wp-includes/, root PHP files| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be True to execute. When False, returns a preview of what will happen. |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_reinstall_pluginReinstall a single plugin from repo| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be True to actually perform the reinstall. When False returns a preview manifest. |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
| plugin_slug * | string | Plugin slug (e.g., "akismet", "wordfence") |
wp_remove_mu_pluginQuarantine an mu-plugin| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be True to actually quarantine. When False returns a preview manifest. |
| filename * | string | Name of the mu-plugin file (e.g., "malware.php") |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_remove_siteRemove site from configuration| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be True to confirm deletion |
| name * | string | Name of the site to remove |
wp_reset_passwordsReset all administrator passwords| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be True to execute. When False, returns a preview of affected users. |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_revoke_app_passwordsDelete all application passwords| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be True to execute. When False, returns a preview of affected users. |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_scanAll malware scans via one tool; `scope=` selects depth (quick/full/deep) or a category (uploads/webshells/themes/cron/wpconfig/…). `full` and `verbose` also run `wp_monitor_http_requests` (see MODERATE)| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the site |
| password | string | SSH password (if the site uses password auth) |
| scope | string | What to scan. One of: Whole-site: "quick" | "full" (default) | "deep" | "verbose" Targeted: "core" | "plugins" | "suspicious-plugins" | "hidden-plugins" | "themes" | "mu-plugins" | "uploads" | "webshells" | "hidden-admins" | "app-passwords" | "malware-patterns" | "recently-modified" | "db" | "snippets" |
wp_scan_resultGet background scan results| Parameter | Type | Description |
|---|---|---|
| task_id * | string | Task ID returned by wp_start_background_scan() |
wp_scan_snippetsScan Code Snippets / WPCode entries for backdoors| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_scan_ssh_keysScan the account's authorized_keys for backdoor keys| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_scan_statusCheck background scan status| Parameter | Type | Description |
|---|---|---|
| task_id * | string | Task ID returned by wp_start_background_scan() |
wp_scan_wpconfigScan wp-config.php for injected code| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_start_background_scanStart background scan task| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
| scan_type | string | Type of scan - "quick" (2-3 min) or "deep" (5-10 min) |
wp_test_connectionTest SSH and WP-CLI connectivity| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the site to test |
| password | string | SSH password (required if using password auth) |
wp_threat_add_signatureAdd malware signature to local DB| Parameter | Type | Description |
|---|---|---|
| category | string | Category - "backdoor", "shell", "obfuscation", "rce", "spam", "miner", etc. |
| description | string | Description of what this malware does |
| name * | string | Unique name for the signature (e.g., "New Backdoor Variant") |
| pattern * | string | The pattern to match (regex or string) |
| pattern_type | string | Type of pattern - "regex", "string", "hash", or "filename" |
| severity | string | Severity level - "critical", "high", "medium", or "low" |
wp_threat_check_fileCheck file against threat database| Parameter | Type | Description |
|---|---|---|
| file_path * | string | Full path to the file to check |
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_threat_db_statsShow threat database statisticswp_threat_db_syncSync community threat signatureswp_threat_exportExport signatures| Parameter | Type | Description |
|---|---|---|
| output_dir | string | Directory to save exports (default: ~/.wp-malware-cleanup/exports) |
wp_threat_learn_from_cleanupRecord malware hash for future detection| Parameter | Type | Description |
|---|---|---|
| description | string | Description of what this malware does |
| file_path * | string | Original path of the malicious file |
| malware_family | string | Type of malware (backdoor, shell, dropper, etc.) |
| md5_hash * | string | MD5 hash of the file |
| sha256_hash | string | Optional SHA256 hash for additional verification |
wp_threat_top_signaturesShow most detected signatures| Parameter | Type | Description |
|---|---|---|
| limit | integer | Number of signatures to show (default: 10) |
wp_update_allUpdate core, plugins, themes| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the site |
| password | string | SSH password (if using password auth) |
wp_update_siteUpdate site configuration| Parameter | Type | Description |
|---|---|---|
| auth_type | string | New auth type - "key" or "password" (optional) |
| host | string | New SSH hostname (optional) |
| host_group | string | New fleet grouping key (optional) - sites sharing a server / cPanel account, for cross-site reinfection checks |
| key_path | string | New SSH key path (optional) |
| name * | string | Name of the site to update |
| notes | string | New notes (optional) |
| port | integer | New SSH port (optional) |
| site_url | string | New site URL (optional) |
| username | string | New SSH username (optional) |
| wp_path | string | New WordPress path (optional) |
wp_versionShow version informationSecurity checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 6.3K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- !No dynamic code executionScanned 37 source files and found 5 calls to eval or shell execution, in tools/misc.py:322 among others. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- None found in the source
- Starts other programs
- 7 callsutils/ssh.py:185, utils/ssh.py:199, utils/ssh.py:271
- Outbound network calls
- 2 callscore/integrity.py:77, threat_feeds_v2.py:173
- Writes or deletes files
- 19 callscore/reports.py:325, core/safety.py:43, core/scan_store.py:96
- Lockfile
- uv.lock
Pattern matches on the source text of 37 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 6.3K words, fetched a month ago. The original in the repository is authoritative.
Read full README