← Back to Tools Reference

wp_upload_media

Description

Use this tool to upload an image or file from a URL directly into your WordPress media library. Your AI can download the file, assign it a title, and add it to the library — ready to use as a featured image or to be embedded in posts and pages. This is perfect for automated content workflows where media needs to be sourced and uploaded without manual effort.

See it in action

Claude Desktop — MCP Connection
👤
Upload this image I'm sharing and set its alt text to 'Team photo from our 2024 offsite'.
🤖
Calling Tool: wp_upload_media
Done! I've used wp_upload_media to complete that for you.
{"status": "success"}

Example Use Cases & Sample Prompts

  1. Adding a featured image
    • Prompt: “Upload this image URL to the media library so I can set it as the featured image for my next post.”
  2. Importing remote assets
    • Prompt: “Download and save these 5 product screenshots from our staging server into the WordPress media library.”
  3. PDF upload
    • Prompt: “Upload this PDF from our Google Drive link into the media library as a downloadable resource.”
  4. Bulk image import
    • Prompt: “Upload all images from this list of URLs to the media library. Name them based on the URL filename.”
  5. Logo replacement
    • Prompt: “Upload the new company logo from this URL into the media library.”

Access this tool today

Install the Easy MCP AI plugin to securely expose wp_upload_media to Claude, ChatGPT, and more.

Download Plugin