pixeldrive

MCP

Local stdio server @pixeldrive-dev/mcp. An agent can upload, replace, or delete a file, list the key’s project, and fetch a file. It wraps the SDK, same HTTP as the API. Create a Write key in project settings.

SetupToolsnpm

Cursor / Claude Desktop

Point the host at npx -y @pixeldrive-dev/mcp. Cursor: .cursor/mcp.json. Claude Desktop: the app’s MCP config. Same JSON either way.

mcp.json
{
  "mcpServers": {
    "pixeldrive": {
      "command": "npx",
      "args": ["-y", "@pixeldrive-dev/mcp"],
      "env": {
        "PIXELDRIVE_API_KEY": "pd_live_…"
      }
    }
  }
}
EnvRequiredWhat
PIXELDRIVE_API_KEYyesProject key (pd_live_…). Write to upload; a read key can still list and get.
PIXELDRIVE_API_URLnoDefault https://api.pixeldrive.dev

Tools

ToolDoes
uploadUpload a file (path or base64). Optional name, tags, folder, contentType. upsert defaults to true — replaces a ready file at that path.
replaceReplace a ready file’s bytes (publicId + path or base64). Folder and tags stay; name becomes the new basename.
delete_fileDelete a file by publicId. Purges retained versions.
list_projectList the key’s project root, or a folder if you pass folder (publicId).
get_fileOne file by publicId or path. Tokened URL if the project is private; optional ttl in seconds.

name can be a path (selects/hero.jpg) — folders are find-or-created. Optional folder is an existing folder publicId; the path is relative to it. The project’s Upload rules apply the same as the dashboard.

upload argRequiredNotes
pathone ofFilesystem path to the file
base64one ofFile bytes as base64, if path is omitted
nameif base64Defaults to the path basename. Required when using base64.
contentTypenoGuessed from the extension when omitted
tagsnoString array
foldernoExisting folder publicId

Rename, move, and tags stay on the dashboard. Remote hosted MCP is not available yet — this server runs on the machine that has the key.