wp_get_post_types 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_get_post_types
Read-onlyDescription
Custom post types registered by plugins like WooCommerce or CPT UI change what your AI can create β Easy MCP AI exposes the full list of registered types so your AI client knows exactly which content handles are available before it tries to write or query anything. This orientation call is often the first thing a client like Cursor or Claude Code makes when connecting to an unfamiliar WordPress site. Easy MCP AI's 162-tool surface covers built-in and custom post types equally, treating every registered type as a first-class target.
See it in action
wp_get_post_types {
"total": 6,
"post_types": [
{ "slug": "post", "label": "Posts", "public": true },
{ "slug": "page", "label": "Pages", "public": true },
{ "slug": "product", "label": "Products", "public": true },
{ "slug": "attachment", "label": "Media", "public": false }
]
} Found 6 registered post types on your installation.
Example Use Cases & Sample Prompts
- Discovering content types
- Prompt: βWhat custom post types are registered on this WordPress site?β
- Pre-content creation
- Prompt: βBefore I start creating content, show me all available post types including custom ones.β
- Plugin audit
- Prompt: βWhich plugins on this site have registered custom post types?β
- Migration planning
- Prompt: βList all post types so I can understand what types of content exist before migrating to a new structure.β
- API exploration
- Prompt: βWhat post types are available via the REST API on this site?β
Frequently Asked Questions
What does wp_get_post_types do?
Custom post types registered by plugins like WooCommerce or CPT UI change what your AI can create β Easy MCP AI exposes the full list of registered types so your AI client knows exactly which content handles are available before it tries to write or query anything. This orientation call is often the first thing a client like Cursor or Claude Code makes when connecting to an unfamiliar WordPress site. Easy MCP AI's 162-tool surface covers built-in and custom post types equally, treating every registered type as a first-class target.
How do I use wp_get_post_types 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: "What custom post types are registered on this WordPress site?"
Do I need Easy MCP AI to use wp_get_post_types?
Yes. wp_get_post_types 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
Site SettingsGet all registered post statuses, including custom plugin statuses
Fetch the WordPress site title, tagline, URL, timezone, and other core settings
List all registered taxonomies (built-in and custom) with their details
Update WordPress site title, tagline, URL, timezone, and other core settings
List items of any custom post type with filtering and pagination
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_get_post_types 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.