Cloudizero Iconcloudizero
Model Context Protocol (MCP)

AI Assistant & MCP Setup

Connect Cloudizero directly to your AI agents (Claude Desktop, Cursor, Antigravity, Windsurf) to automate asset ingestion, folder structuring, and zero-egress delivery workflows.

Zero-Install Stdio Execution
Cloudizero MCP is distributed as a zero-overhead Node executable via npx @cloudizero/mcp. Your AI client launches it as a background stdio worker without needing manual cloning or builds.

Choosing the Right API Key Scope

When creating an API key in Settings > API Keys, choose the scope according to your AI agent's role:

All Projects (Full Workspace Access)

Best for: General Workspace Orchestration & Initial Setup.

  • Can create new projects (cloudizero_create_project)
  • Can list and explore all projects in your account
  • Full media upload and folder management across projects

Select Specific Projects (Scoped)

Best for: App Repos & Production Environments (Least Privilege).

  • Sandboxed strictly to the selected project(s)
  • Blocks project creation attempts with a descriptive 403 error
  • Prevents AI from viewing or altering unrelated client assets

Client Configurations

1. Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{
  "mcpServers": {
    "cloudizero": {
      "command": "npx",
      "args": ["-y", "@cloudizero/mcp"],
      "env": {
        "CLOUDIZERO_API_KEY": "cz_live_your_actual_api_key_here"
      }
    }
  }
}

2. Cursor IDE

Add to .cursor/mcp.json in your project root or Cursor settings:

json
{
  "mcpServers": {
    "cloudizero": {
      "command": "npx",
      "args": ["-y", "@cloudizero/mcp"],
      "env": {
        "CLOUDIZERO_API_KEY": "cz_live_your_actual_api_key_here"
      }
    }
  }
}

3. Google Antigravity / Gemini CLI

Add to your global or project mcp.json:

json
{
  "mcpServers": {
    "cloudizero": {
      "command": "npx",
      "args": ["-y", "@cloudizero/mcp"],
      "env": {
        "CLOUDIZERO_API_KEY": "cz_live_your_actual_api_key_here"
      }
    }
  }
}

Available MCP Tools

Tools registered with the Model Context Protocol that AI models can execute:

Tool NameDescriptionParameters
cloudizero_list_projectsLists all projects accessible by the configured API key.None
cloudizero_create_projectCreates a new project. Requires API key with Full Workspace Access.name (string), description (optional string)
cloudizero_list_contentsExplores folders and files within a project or folder.projectId (string), folderId (optional string)
cloudizero_create_folderCreates virtual folders for categorizing media assets.projectId (string), name (string), parentId (optional string)
cloudizero_upload_local_fileUploads a local file from the developer machine to Cloudflare R2 zero-egress storage.filePath (string), projectId (string), folderId (optional), fileName (optional), mimeType (optional)
cloudizero_get_fileGets file metadata and presigned download URL.fileId (string)
cloudizero_delete_filePermanently deletes a file from Cloudflare R2 and Neon DB.fileId (string)

Environment Variables

PropertyTypeDefaultDescription
CLOUDIZERO_API_KEY*requiredstring—Secret API key starting with cz_live_... generated from Cloudizero Dashboard.
CLOUDIZERO_BASE_URLstringhttps://api-cloudizero.wismannur.proBase API URL of your Cloudizero deployment.
CLOUDIZERO_CDN_URLstringhttps://cdn-cloudizero.wismannur.proCustom public CDN domain for Cloudflare R2 media delivery.