wp_update_media 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_update_media
DestructiveDescription
Alt text gaps are one of the most common SEO oversights on WordPress sites β and Easy MCP AI lets your AI client fix them at scale without opening the admin panel. By connecting Claude Desktop, ChatGPT, or any of the 15 supported clients directly to your site, you can audit alt text, rewrite captions, and rename media items across your entire library through a single conversation. Easy MCP AI routes each update through its pure-PHP MCP server, so no Node.js proxy or third-party service sits between your AI and WordPress.
See it in action
wp_list_media Locating the media item to updateβ¦
{
"total": 24,
"items": [
{ "media_id": 189, "title": "team-photo-2024", "filename": "team-photo-2024.jpg", "mime_type": "image/jpeg" },
{ "media_id": 175, "title": "Hero Banner", "filename": "hero-banner.png", "mime_type": "image/png" }
]
} wp_update_media {
"media_id": 189,
"title": "Team Offsite 2024",
"alt": "Team photo from our 2024 offsite",
"caption": "Annual team offsite β March 2024",
"updated_fields": ["title", "alt", "caption"]
} Found media item #189 β 'team-photo-2024.jpg'. Title and caption have been updated.
Example Use Cases & Sample Prompts
- Improving alt text for SEO
- Prompt: βList recent media uploads and update any images that have empty alt text with descriptive alternatives.β
- Updating a caption
- Prompt: βFind the hero image we uploaded last week and update its caption to match our new brand voice.β
- Renaming media items
- Prompt: βFind all images uploaded this month with generic names like βimage1.jpgβ and rename them descriptively.β
- Adding media descriptions
- Prompt: βUpdate all uploaded PDFs in the media library with proper descriptions based on their filenames.β
- Accessibility audit
- Prompt: βList recent media uploads and flag any images without alt text, then update them.β
Frequently Asked Questions
What does wp_update_media do?
Alt text gaps are one of the most common SEO oversights on WordPress sites β and Easy MCP AI lets your AI client fix them at scale without opening the admin panel. By connecting Claude Desktop, ChatGPT, or any of the 15 supported clients directly to your site, you can audit alt text, rewrite captions, and rename media items across your entire library through a single conversation. Easy MCP AI routes each update through its pure-PHP MCP server, so no Node.js proxy or third-party service sits between your AI and WordPress.
How do I use wp_update_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: "Update the alt text of the hero image on our homepage."
Do I need Easy MCP AI to use wp_update_media?
Yes. wp_update_media 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
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
Upload an image or file from a URL directly into the WordPress media library
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_update_media 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.