- LIVE
- STATUS
- LOGS
- HUMAN
Short answer
How can I purge CDN cache URLs with my AI?
You give your agent the specific ImageKit URL you want to update, and it triggers an invalidation request. This forces the CDN to fetch the latest version of your asset instead of serving the old one. You'll see the results of the purge request immediately.
Where every request lands.
The outcomes of your commands.
Your agent handles the technical execution of the invalidation request.
LIVE
Updated assets
The agent clears the old version from the edge. Your site now serves the newest image or file from ImageKit.
STATUS
Purge tracking
The agent checks if the invalidation finished. You get a clear confirmation once the CDN is clear.
LOGS
Request history
The agent confirms which specific URLs were targeted. This ensures you know exactly what was cleared.
HUMAN
Manual review
If a URL fails to clear, the agent tells you. You'll need to check your ImageKit dashboard to fix the source file.
The workflow
What your AI does when the request arrives.
The agent translates your intent into specific API calls to ImageKit.
Identify the target
Your agent parses your message to find the exact asset URL that needs refreshing.
purge_cdn_cacheTrigger invalidation
The agent sends the command to clear the specific URL from the CDN cache.
purge_cdn_cacheMonitor progress
The agent tracks the request to ensure the CDN processes the purge correctly.
get_purge_statusConfirm completion
The agent verifies the status and reports back that the asset is ready to be served fresh.
get_purge_status
Try it
Copy these to start.
Use these prompts to trigger immediate cache clears.
Starting points
Swap out the placeholder URLs with your actual ImageKit asset links.
ImageKit Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_xLmCaWtIJXDHMEk4bfe6mT4U6OscJwivLw7UQcr1/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — ImageKit capabilities are ready to use.
{
"mcpServers": {
"imagekit-media-optimization-dam-mcp": {
"url": "https://edge.vinkius.com/vk_preview_xLmCaWtIJXDHMEk4bfe6mT4U6OscJwivLw7UQcr1/mcp"
}
}
}Purge the cache for this ImageKit URL: https://ik.imagekit.io/example/logo.png
Check the status of my last CDN purge request.
Invalidate the cache for all assets in my 'products' folder.
Is the purge for https://ik.imagekit.io/example/banner.jpg finished yet?
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect ImageKit once, then ask.
One connection links your agent to your media library. Your credentials stay encrypted and secure on our side.
Connect ImageKit to your AIFAQ
How this task behaves.
- 01
Can the AI upload new images to ImageKit?
No. This specific connector is for managing and purging the CDN cache.
- 02
How long does it take to clear the cache?
The agent can check the status of the purge, but the actual CDN propagation time depends on the edge network.
- 03
Can the AI delete files from my library?
No. The agent only has the ability to purge the cache, not delete source files.
- 04
Does the AI need my ImageKit API key?
You provide it once during the connection process. The agent uses it to perform the purge actions.
- 05
Can I purge my entire CDN at once?
The agent uses the specific tools provided to target URLs. It cannot perform a global purge unless you provide a pattern the tool supports.
More questions about ImageKit? See everything the ImageKit Connector can do
Connect ImageKit to Claude, Cursor, ChatGPT & more
