# Drop to CDN — how to use (mcp.ai)

Connect your Drop to CDN account and use 6 tools for file management and storage straight from your AI agent. Connect with your own API key. Upload files and publish HTML pages to public CDN URLs, then list, inspect, and delete hosted files.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_drop_to_cdn?ms=1787293500000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `drop_to_cdn_delete_file`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/drop_to_cdn`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/drop_to_cdn/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/drop_to_cdn/delete/file` — Permanently and irreversibly delete a file or hosted page owned by the connected account. This cannot restore monthly upload quota already consumed.
  - body: { file_id: string }
- `POST https://api.mcp.ai/api/drop_to_cdn/get/account/usage` — Return the connected account's plan and current upload/storage usage context for deciding whether an upload is appropriate.
- `POST https://api.mcp.ai/api/drop_to_cdn/get/file` — Get metadata and the public CDN URL for one file or hosted page owned by the connected account.
  - body: { file_id: string }
- `POST https://api.mcp.ai/api/drop_to_cdn/list/files` — Return one newest-first page of files and hosted pages owned by the connected account, with a cursor for the next page.
  - body: { limit?: integer, cursor?: string }
- `POST https://api.mcp.ai/api/drop_to_cdn/publish/page` — Publish HTML as a publicly hosted page and return its CDN URL. Each successful publish consumes monthly upload quota.
  - body: { html: string, never_expire?: boolean, retention_days?: integer }
- `POST https://api.mcp.ai/api/drop_to_cdn/upload/file` — Upload a file and return its public CDN URL and expiration metadata. Each successful upload consumes monthly upload quota even if the file is later deleted.
  - body: { file: object, never_expire?: boolean, retention_days?: integer }

## Example prompts
- "What can I do in Drop to CDN?"
- "Show me a summary of my Drop to CDN account"

## More
- Page: https://mcp.ai/drop_to_cdn
- Agent spec (llms.txt): https://mcp.ai/drop_to_cdn/llms.txt
- Postman collection: https://mcp.ai/drop_to_cdn/postman.json
