wp_search is one of 162 MCP tools included in Easy MCP AI — the WordPress plugin that connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →wp_search
Read-onlyDescription
When you don't know whether the content you're looking for is a post, page, category, tag, or custom post type item, this is the right starting point. Easy MCP AI queries the WordPress search API across all content types simultaneously and returns mixed results you can filter by type or subtype. It's broader than the post-specific search tool, making it ideal for site-wide content audits or pre-redirect checks before a migration.
See it in action
wp_search {
"query": "membership pricing",
"total": 8,
"results": [
{ "id": 55, "title": "Membership Pricing Guide", "type": "post", "subtype": "post" },
{ "id": 12, "title": "Pricing", "type": "post", "subtype": "page" },
{ "id": 9, "title": "Membership Plans", "type": "term", "subtype": "category" }
]
} Found 8 results across all content types for 'membership pricing'.
Example Use Cases & Sample Prompts
- Global site search
- Prompt: “Search my entire site for anything related to ‘membership pricing’.”
- Finding content across types
- Prompt: “Search for ‘contact’ across all content types — I want to find every page, post, and category that mentions it.”
- Locating a specific item
- Prompt: “Search for ‘Annual Report 2024’ — it could be a page, post, or media item.”
- Pre-redirect check
- Prompt: “Search for any content related to our old product name before I remove it.”
- Content discovery
- Prompt: “Search across all content types for ‘security’ so I can see everything we’ve published on the topic.”
Frequently Asked Questions
What does wp_search do?
When you don't know whether the content you're looking for is a post, page, category, tag, or custom post type item, this is the right starting point. Easy MCP AI queries the WordPress search API across all content types simultaneously and returns mixed results you can filter by type or subtype. It's broader than the post-specific search tool, making it ideal for site-wide content audits or pre-redirect checks before a migration.
How do I use wp_search with my AI assistant?
Install the Easy MCP AI WordPress plugin, generate an API token in your dashboard, and connect your AI client (Claude, ChatGPT, Cursor, or any MCP-compatible assistant). Then simply describe what you want in natural language — for example: "Search my entire site for anything related to 'membership pricing'."
Do I need Easy MCP AI to use wp_search?
Yes. wp_search is one of 162 MCP tools bundled inside the Easy MCP AI WordPress plugin. Install the free plugin from WordPress.org, connect your AI client, and this tool becomes available immediately — no coding required.
Related Tools
SearchSearch posts by keyword or phrase across all statuses
Ask your AI to browse posts by status, category, tag, author, or keyword with pagination
List all WordPress pages with status and hierarchy details
Browse and search the WordPress media library by type, keyword, or date
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_search and all 74 tools instantly.
Step 2
Connect Your AI Client
Already have the plugin? Step-by-step setup guides for Claude, ChatGPT, Cursor, Windsurf, and 10+ more.