wp_list_cpt_items 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_list_cpt_items

Read-only

Description

Custom post types power some of the most important content on any WordPress site — portfolios, events, products, testimonials — and Easy MCP AI makes them fully accessible to your AI client. Pass the REST API slug for your CPT along with optional status and keyword filters, and get back a paginated list of matching items without ever opening wp-admin. This works with any CPT that has REST API support enabled.

See it in action

Claude Desktop — MCP Connection
👤
Show me all published items in the 'portfolio' custom post type.
🤖
Tool called wp_list_cpt_items
{
  "post_type": "product",
  "total": 5,
  "items": [
    { "id": 201, "title": "Premium Plan", "status": "publish" },
    { "id": 202, "title": "Starter Plan", "status": "publish" },
    { "id": 203, "title": "Free Tier", "status": "publish" }
  ]
}

Found 5 items in the 'product' post type.

Example Use Cases & Sample Prompts

  1. Browsing portfolio items
    • Prompt: “Show me all published items in the ‘portfolio’ custom post type.”
  2. Listing events
    • Prompt: “List all upcoming events from the ‘events’ post type.”
  3. Product audit
    • Prompt: “How many items are in my ‘products’ custom post type?”
  4. Finding drafts in a CPT
    • Prompt: “List all draft items in the ‘testimonials’ post type.”
  5. Searching CPT content
    • Prompt: “Search the ‘resources’ post type for items mentioning ‘security’.”

Frequently Asked Questions

What does wp_list_cpt_items do?

Custom post types power some of the most important content on any WordPress site — portfolios, events, products, testimonials — and Easy MCP AI makes them fully accessible to your AI client. Pass the REST API slug for your CPT along with optional status and keyword filters, and get back a paginated list of matching items without ever opening wp-admin. This works with any CPT that has REST API support enabled.

How do I use wp_list_cpt_items 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: "Show me all published items in the 'portfolio' custom post type."

Do I need Easy MCP AI to use wp_list_cpt_items?

Yes. wp_list_cpt_items 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.

Step 1

Get the Plugin

Install Easy MCP AI on your WordPress site to unlock wp_list_cpt_items and all 74 tools instantly.

Download Free Plugin

Step 2

Connect Your AI Client

Already have the plugin? Step-by-step setup guides for Claude, ChatGPT, Cursor, Windsurf, and 10+ more.

View Setup Guides →

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.