# KeyCDN MCP for AI Agents AI Agent Connect

> KeyCDN MCP lets you manage your content delivery network directly through your AI agent. You can purge specific URLs or entire zones, create new pull zones, and check your bandwidth usage without jumping between tabs. It's built for anyone who needs to keep their global assets updated and monitored in real-time without the friction of a web dashboard.

## Overview
- **Category:** cloud-infrastructure
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_X4dbihYIcXpwDjS6eYYuJErAoYDfxb1T1uEzRUUv/ai-agent-connect
- **Tags:** cdn, edge-caching, content-delivery, web-performance, cache-invalidation, traffic-monitoring

## Description

Imagine you just pushed a major update to your site and need to clear the cache immediately. Instead of hunting for the right dashboard, logging in, and manually entering URLs, you just tell your AI agent to do it. This Connector connects your KeyCDN account to your workspace, letting you handle the heavy lifting of edge caching through natural conversation. You can spin up new pull zones to connect your origin servers, bind custom domain aliases to your existing assets, and audit your TLS settings to make sure everything is secure. If you're looking for a way to manage global infrastructure without the friction of a web UI, this is it. Because it's hosted on the Vinkius marketplace, you can plug it into your existing workflow and keep your content moving. It's about getting the job done faster by letting your agent handle the repetitive clicks of CDN management. You can verify your configurations, check your spending patterns, and manage your distributed acceleration zones all in one place. It turns complex infrastructure tasks into simple, conversational commands.

## Tools

### list_zone_aliases
List custom domain aliases for all zones. This gives you a full overview of your domain mappings.

### add_zone_alias
Bind a new custom domain alias to an existing KeyCDN zone. This helps you manage branded URLs easily.

### get_zone
Get details for a specific KeyCDN zone. Use this to inspect your current configuration and settings.

### list_traffic_reports
List traffic bandwidth consumption reports. This helps you track your CDN spending over time.

### purge_specific_url
Purge a specific cached URL in a KeyCDN zone. This ensures a single file is updated without clearing the whole cache.

### purge_zone_cache_all
Purge the entire cache for a KeyCDN zone. Use this when you need to invalidate every asset instantly.

### add_pull_zone
Create a new KeyCDN pull zone. Use this to connect your origin servers to the global edge network.

### delete_zone_alias
Delete a custom domain alias from a KeyCDN zone. This cleans up your domain mappings quickly.

### delete_zone
Delete a specific KeyCDN zone. This revokes wildcard subdomains and drops proxy connections natively.

### list_zones
List all KeyCDN zones. This returns your immutable endpoints and current zone configurations.

## Prompt Examples

**Prompt:** 
```
What's our bandwidth usage for the last 7 days?
```

**Response:** 
```
### Traffic Report (Last 7 Days)

| Metric | Value |
| :--- | :--- |
| **Total Bandwidth** | 1.24 TB |
| **Peak Usage** | 45 GB/hour |
| **Peak Time** | Tuesday at 4 PM |

Your current credit balance is sufficient for this usage level. Would you like to see a breakdown for a different time period?
```

**Prompt:** 
```
Purge the cache for the new styles.css file in the production zone.
```

**Response:** 
```
### Cache Purge Status

**Action:** Purge specific URL
**Resource:** `styles.css`
**Status:** ✅ Success

The resource has been invalidated across the global network. It will be re-fetched from your origin server on the next visitor request.
```

**Prompt:** 
```
Show me all my active zones and their endpoints.
```

**Response:** 
```
### Active KeyCDN Zones

*   **main-assets**
    *   ID: 123
    *   Endpoint: `main-123.kxcdn.com`
*   **video-streaming**
    *   ID: 456
    *   Endpoint: `video-456.kxcdn.com`
*   **staging-static**
    *   ID: 789
    *   Endpoint: `staging-789.kxcdn.com`
```

## Capabilities

### Purge specific URLs or entire zones
Clear your cache instantly to ensure your users see the latest content.

### Create and configure new pull zones
Connect your origin servers to the global edge with a few words.

### Bind custom domain aliases
Map your branded URLs to existing zones without leaving your workspace.

### Check bandwidth and traffic reports
Monitor your CDN spending and usage patterns over any time period.

### Audit origin and TLS settings
Inspect your caching rules and security configurations on the fly.

### Enable or delete acceleration zones
Manage your content delivery pipeline by adding or removing zones.

## Use Cases

### Post-deployment updates
A developer pushes a new CSS file and tells their agent to use purge_specific_url to make it live for users immediately.

### Scaling infrastructure
An SRE needs to add a new origin server and uses add_pull_zone to create a new zone for the new hardware.

### Traffic auditing
A site admin asks their agent to check bandwidth usage over the last week using list_traffic_reports to plan for next month.

### Domain migration
A user needs to bind a new branded URL and uses add_zone_alias to map it to an existing zone without manual DNS work.

## Benefits

- Instant cache invalidation. Use purge_specific_url to update assets without clearing your entire zone.
- Faster infrastructure setup. Use add_pull_zone to connect new origin servers to the edge in seconds.
- Simplified domain management. Use add_zone_alias to bind branded URLs without leaving your current workspace.
- Real-time traffic monitoring. Use list_traffic_reports to track your bandwidth spending and peak usage patterns.
- Easier configuration audits. Use get_zone to check TLS settings and caching rules on the fly.
- Rapid zone cleanup. Use delete_zone to drop proxy connections and revoke subdomains instantly.

## How It Works

The bottom line is you get direct control over your CDN infrastructure without ever opening a separate browser tab.

1. Subscribe to the Connector and provide your KeyCDN API Key.
2. Connect the Connector to your preferred client like Claude, Cursor, or Windsurf.
3. Ask your agent to perform tasks like purging cache, listing zones, or checking traffic.

## Frequently Asked Questions

**Can I use the KeyCDN MCP to clear my cache?**
Yes, you can purge specific URLs or entire zones instantly through your AI agent. This ensures your users see the most recent content without you having to manually clear it in a dashboard.

**How does the KeyCDN MCP help with traffic monitoring?**
It pulls your bandwidth consumption reports directly into the chat. You can ask about usage over specific time periods to track your spending and identify peak traffic times.

**Can I add new domains to my KeyCDN zone using this Connector?**
Yes, you can bind custom domain aliases to your existing zones. This allows you to map branded URLs to your assets using natural language commands.

**Does the KeyCDN MCP support origin server configuration?**
It allows you to audit and inspect your current zone configurations, including your caching rules and TLS settings, to ensure your infrastructure is set up correctly.

**Is the KeyCDN MCP good for DevOps teams?**
It's excellent for DevOps and SRE teams who need to manage global infrastructure quickly. It replaces manual clicks with conversational commands for common tasks like zone management and cache purging.

**How do I connect my KeyCDN account to my AI agent?**
Simply subscribe to the Connector and provide your KeyCDN API key. Once connected to your preferred client like Claude or Cursor, you can start managing your CDN immediately.

**Can I purge the entire cache for a specific zone using my agent?**
Yes. Use the `purge_zone_cache_all` tool with your Zone ID. Your agent will instantly trigger a global invalidation across all Edge servers, forcing KeyCDN to re-fetch all assets from your origin upon the next request.

**How do I invalidate a single file instead of purging the whole zone?**
The `purge_specific_url` tool allows for granular cache invalidation. You just need to provide the Zone ID and the absolute URL of the resource (e.g. your CDN subdomain + path) to clear that specific file from the edge nodes.

**Can my agent check how much traffic I've used this month?**
Absolutely. Use the `list_traffic_reports` tool and provide a start and end timestamp. Your agent will retrieve the bandwidth consumption analytics for your account, helping you track CDN usage and spending in real-time.