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-onlyDescription
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
wp_count_media {"status": "success"} Done! I've used wp_count_media to complete that for you.
Example Use Cases & Sample Prompts
- Full media library breakdown
- Prompt: “How many media files do I have grouped by MIME type?”
- Image-only count
- Prompt: “How many image/jpeg files are in my media library?”
- PDF audit
- Prompt: “Count how many PDFs I have uploaded.”
- Trash check
- Prompt: “How many media items are currently in the trash?”
- 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.
Related Tools
MediaPermanently delete a media file from the WordPress media library by ID
Retrieve the full metadata of a specific media file by ID
Browse and search the WordPress media library by type, keyword, or date
Update the title, alt text, caption, or description of a media file by ID
Upload an image or file from a URL directly into the WordPress media library
Pull an image from any web link straight into your media library
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_count_media and all 96 core 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.