wp_upload_media_from_url 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_upload_media_from_url
DestructiveDescription
When your AI finds or generates an image online — a stock photo, an AI-generated graphic, or an asset from another site — getting it onto WordPress used to mean downloading and re-uploading it yourself. Now you just hand your AI the image link and Easy MCP AI pulls it straight into your media library, faster and more efficiently than passing the whole file through the chat. You can set the title, alt text, caption, and filename, and even attach it to a specific post, all in the same instruction. It's perfect for hands-free blogging: your AI can go from a web image to a published, properly-labeled photo on your site in a single step.
See it in action
wp_upload_media_from_url {"status": "success"} Done! I've used wp_upload_media_from_url to complete that for you.
Example Use Cases & Sample Prompts
- Import a generated image
- Prompt: “Download https://example.com/hero.jpg into my media library and set the alt text to ‘Productivity hero image’.”
- Set title and caption on import
- Prompt: “Import this image URL with title ‘Launch Day’ and caption ‘Office photo, 2026’.”
- Attach to a specific post
- Prompt: “Import this image URL and attach it to post 902 with caption ‘Launch photo’.”
- Rename on import
- Prompt: “Pull https://cdn.example.com/abc123.png in but save it as ‘product-launch-banner.png’.”
- Avoid base64 for big files
- Prompt: “Import this 4MB photo from the URL — don’t base64 it, use the URL upload.”
Frequently Asked Questions
What does wp_upload_media_from_url do?
When your AI finds or generates an image online — a stock photo, an AI-generated graphic, or an asset from another site — getting it onto WordPress used to mean downloading and re-uploading it yourself. Now you just hand your AI the image link and Easy MCP AI pulls it straight into your media library, faster and more efficiently than passing the whole file through the chat. You can set the title, alt text, caption, and filename, and even attach it to a specific post, all in the same instruction. It's perfect for hands-free blogging: your AI can go from a web image to a published, properly-labeled photo on your site in a single step.
How do I use wp_upload_media_from_url 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: "Download https://example.com/hero.jpg into my media library and set the alt text to 'Productivity hero image'."
Do I need Easy MCP AI to use wp_upload_media_from_url?
Yes. wp_upload_media_from_url 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
MediaGet media library counts grouped by MIME type, plus a total
Permanently 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
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_upload_media_from_url 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.