allowedTools: a whitelist. Only the listed tools exist as far as the AI is concerned.blockedTools: a blacklist. Everything is available except the listed tools.
list_sites_v1, not list-sites-v1).
Filtering removes a blocked tool everywhere it could be seen or used: tool listing, execution, completions, per-tool help, and the informational resources. The AI cannot call what it cannot see.
Set up read-only access
On MCP Server builds that support the read-only setting, setreadOnly to true in settings.json or set MAINWP_READ_ONLY=true in your AI client’s MCP configuration. This setting is unavailable in MainWP MCP Server 1.6.0. For that release and earlier, use the read-only tool list below.
With readOnly on, a client can list and run only abilities that declare both readonly: true and destructive: false. Update tools are hidden even if they support previews. allowedTools and blockedTools still apply, and the setup tools remain available subject to tool filtering.
Ready-made configurations
Read-only monitoring (17 tools). Use this list for dashboards, reporting, and other monitoring tasks. It also works on MCP Server versions that do not supportreadOnly.
Tools from other namespaces
If you have exposed abilities from other plugins, their tools carry a namespace prefix, and the filter lists must use the prefixed form:Notes
- Two built-in resources,
mainwp://categoriesandmainwp://status, stay unfiltered by design: they describe the Dashboard connection, not the tool surface. See Tools & Resources. - Filtering also reduces the token cost of the tool catalog in the AI’s context window; the Optimize Token Usage guide has the numbers.
