wp_count_media is one of 214 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_count_media

Read-only

Description

Understand exactly what's filling up your media library — how many images, PDFs, audio files, and videos you have stored — in a single conversational query. Easy MCP AI breaks your media down by file type so you can audit storage usage, spot a bloated PDF collection, or see how much of your library is video, without clicking through the Media grid. Ask Claude or ChatGPT 'how many JPEGs vs. PNGs do I have?' or 'how many PDFs have I uploaded?' and get the full breakdown, plus trash totals, instantly.

See it in action

Claude Desktop — MCP Connection
👤
How many media files do I have grouped by MIME type?
🤖
Tool called wp_count_media
{"status": "success"}

Done! I've used wp_count_media to complete that for you.

Example Use Cases & Sample Prompts

  1. Full media library breakdown
    • Prompt: “How many media files do I have grouped by MIME type?”
  2. Image-only count
    • Prompt: “How many image/jpeg files are in my media library?”
  3. PDF audit
    • Prompt: “Count how many PDFs I have uploaded.”
  4. Trash check
    • Prompt: “How many media items are currently in the trash?”
  5. Storage-usage report
    • Prompt: “Give me a breakdown of media counts by type so I can estimate storage.”

Frequently Asked Questions

What does wp_count_media do?

Understand exactly what's filling up your media library — how many images, PDFs, audio files, and videos you have stored — in a single conversational query. Easy MCP AI breaks your media down by file type so you can audit storage usage, spot a bloated PDF collection, or see how much of your library is video, without clicking through the Media grid. Ask Claude or ChatGPT 'how many JPEGs vs. PNGs do I have?' or 'how many PDFs have I uploaded?' and get the full breakdown, plus trash totals, instantly.

How do I use wp_count_media 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: "How many media files do I have grouped by MIME type?"

Do I need Easy MCP AI to use wp_count_media?

Yes. wp_count_media is one of 214 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_count_media and all 96 core 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.