Skip to main content
Glama
zerodrive-mcp-server

zerodrive-mcp-server

ZeroDrive MCP Server

A Model Context Protocol (MCP) server for ZeroDrive file management. This server enables AI assistants like Claude to interact with ZeroDrive cloud storage through a standardized interface.

Features

  • 28 MCP Tools across 4 categories:

    • File Operations (8 tools): List, get, upload, download, move, share files

    • Folder Operations (7 tools): Create, list, update, delete, move, share folders

    • Workspace Operations (10 tools): Manage collaborative workspaces with files and folders

    • Trash Operations (3 tools): List, restore, and empty trash

  • Production-Ready:

    • Zod validation for all inputs

    • Structured logging with pino

    • Comprehensive error handling

    • TypeScript with strict mode

Related MCP server: Filesystem MCP Server

Requirements

  • Node.js 22.0.0 or higher

  • ZeroDrive API key

Installation

npx @futurixai-labs/zerodrive-mcp-server

From Source

# Clone the repository
git clone https://github.com/futurixai/zerodrive-mcp-server.git
cd zerodrive-mcp-server

# Install dependencies
npm install

# Build
npm run build

Configuration

Set the required environment variable:

export ZERODRIVE_API_KEY="your-api-key-here"

Optional environment variables:

Variable

Default

Description

ZERODRIVE_BASE_URL

https://drive.futurixai.com

API base URL

LOG_LEVEL

info

Log level (trace, debug, info, warn, error, fatal, silent)

NODE_ENV

production

Environment mode

Usage with Claude Desktop

Add to your Claude Desktop configuration (claude_desktop_config.json):

{
  "mcpServers": {
    "zerodrive": {
      "command": "npx",
      "args": ["@futurixai-labs/zerodrive-mcp-server"],
      "env": {
        "ZERODRIVE_API_KEY": "your-api-key-here"
      }
    }
  }
}

Available Tools

File Tools

Tool

Description

list_files

List files with filtering, pagination, and sorting

get_file

Get detailed file metadata

upload_file

Upload a file from local path

download_file

Generate download URL for a file

generate_signed_url

Generate time-limited signed URL

fetch_file_content

Fetch text content of a file

move_file

Move file to different folder

share_file

Share file with other users

Folder Tools

Tool

Description

list_folders

List folders with filtering and pagination

create_folder

Create a new folder

get_folder

Get folder details

update_folder

Update folder properties

delete_folder

Delete folder (to trash or permanent)

move_folder

Move folder to different parent

share_folder

Share folder with other users

Workspace Tools

Tool

Description

list_workspaces

List all accessible workspaces

create_workspace

Create a new workspace

get_workspace

Get workspace details

upload_workspace_file

Upload file to workspace

list_workspace_files

List files in workspace

list_workspace_folders

List folders in workspace

create_workspace_folder

Create folder in workspace

get_workspace_folder

Get workspace folder details

update_workspace_folder

Update workspace folder

delete_workspace_folder

Delete workspace folder

Trash Tools

Tool

Description

list_trash

List trashed items

restore_from_trash

Restore item from trash

empty_trash

Permanently delete all trashed items

Development

# Install dependencies
npm install

# Run type checking
npm run typecheck

# Build
npm run build

# Run linting
npm run lint

# Run tests
npm test

# Format code
npm run format

Project Structure

src/
├── index.ts              # Entry point
├── api/                  # HTTP client layer
│   ├── client.ts         # API client with auth
│   └── endpoints.ts      # API endpoint constants
├── config/               # Configuration
│   ├── env.ts            # Environment validation
│   └── constants.ts      # Application constants
├── errors/               # Error handling
│   └── base.ts           # Error classes
├── logging/              # Structured logging
│   └── logger.ts         # Pino logger setup
├── schemas/              # Zod validation schemas
│   ├── common.ts         # Shared schemas
│   ├── files.ts          # File tool schemas
│   ├── folders.ts        # Folder tool schemas
│   ├── workspaces.ts     # Workspace tool schemas
│   └── trash.ts          # Trash tool schemas
├── server/               # MCP server setup
│   ├── server.ts         # Server creation
│   └── handlers.ts       # Request handlers
├── tools/                # Tool implementations
│   ├── files/            # File tools
│   ├── folders/          # Folder tools
│   ├── workspaces/       # Workspace tools
│   ├── trash/            # Trash tools
│   └── registry.ts       # Tool dispatcher
├── types/                # TypeScript types
│   ├── entities.ts       # Domain types
│   └── api.ts            # API types
└── utils/                # Utilities
    ├── query-builder.ts  # URL query builder
    ├── request-builder.ts # Request body builder
    ├── upload-handler.ts # File upload logic
    └── response-formatter.ts # Response formatting

Contributing

See CONTRIBUTING.md for contribution guidelines.

License

MIT License - see LICENSE for details.

Available Tools

28 tools
create_folderB

Create a new folder in ZeroDrive. Can be created at root level or as a subfolder of an existing folder.

Inputs: name (required), parentId, description.

create_workspaceA

Create a new workspace with allocated storage. The storage is deducted from the user's available quota.

Inputs: name (required), storageAllocation (required), description, icon, +1 more.

create_workspace_folderB

Create a new folder in a workspace. Requires EDITOR role or higher.

Inputs: workspaceId (required), name (required), parentId, description, +1 more.

delete_folderA

Delete a folder and all its contents. By default, moves to trash (soft delete). Use permanent=true to permanently delete.

Inputs: folderId (required), permanent.

delete_workspace_folderA

Delete a folder from a workspace. By default, folders are moved to trash. Use permanent=true to permanently delete.

Inputs: workspaceId (required), folderId (required), permanent.

download_fileB

Generate a signed URL for downloading a file from ZeroDrive. The URL is valid for 1 hour.

Inputs: fileId (required).

empty_trashA

Permanently delete all items in the trash. This action cannot be undone and will free up storage space.

Inputs: no named parameters.

fetch_file_contentB

Fetch and return the content of a text-based file from ZeroDrive. Best for text files, code files, JSON, etc.

Inputs: fileId (required), download.

generate_signed_urlA

Generate a time-limited signed URL for accessing a file without requiring API key authentication. Useful for sharing files or embedding in applications.

Inputs: fileId (required), expires.

get_fileB

Retrieve detailed metadata for a specific file by its ID from ZeroDrive.

Inputs: fileId (required).

get_folderA

Retrieve detailed information about a specific folder by its ID from ZeroDrive.

Inputs: folderId (required).

get_workspaceB

Retrieve detailed information about a specific workspace, including members, storage usage, and user permissions.

Inputs: workspaceId (required).

get_workspace_folderA

Get detailed information about a folder in a workspace, including its full breadcrumb path.

Inputs: workspaceId (required), folderId (required).

list_filesC

Retrieve a paginated list of files from ZeroDrive with optional filtering, sorting, and search capabilities.

Inputs: folderId, includeSubfolders, starred, shared, +6 more.

list_foldersC

Retrieve a paginated list of folders from ZeroDrive with optional filtering, sorting, and search capabilities.

Inputs: folderId, starred, shared, trashed, +5 more.

list_trashA

Retrieve all files and folders in the trash. Items remain in trash until permanently deleted or restored.

Inputs: limit, offset, sortBy, sortOrder.

list_workspace_filesB

List files in a workspace with filtering, pagination, and sorting options.

Inputs: workspaceId (required), folderId, trashed, starred, +5 more.

list_workspace_foldersA

List folders in a workspace with filtering, pagination, and sorting options.

Inputs: workspaceId (required), parentId, trashed, starred, +5 more.

list_workspacesA

Retrieve all workspaces the authenticated user owns or is a member of. Returns owned workspaces and member workspaces.

Inputs: no named parameters.

move_fileA

Move a file to a different folder. Set folderId to null to move the file to the root directory.

Inputs: fileId (required), folderId.

move_folderA

Move a folder to a different parent folder. Set parentId to null to move the folder to the root directory.

Inputs: folderId (required), parentId.

restore_from_trashA

Restore a file or folder from the trash back to its original location. If the original parent folder no longer exists, the item is restored to the root directory.

Inputs: itemId (required), type.

share_fileA

Share a file with other users by email. Recipients will receive an email notification and can access the file through their ZeroDrive account.

Inputs: fileId (required), emails (required), role, canShare, +1 more.

share_folderA

Share a folder and its contents with other users by email. Recipients will receive an email notification and can access the folder through their ZeroDrive account.

Inputs: folderId (required), emails (required), role, canShare, +1 more.

update_folderB

Update folder properties such as name, description, color, or starred status. Can also restore a folder from trash.

Inputs: folderId (required), name, description, color, +2 more.

update_workspace_folderA

Update a folder's properties including name, description, color, parent (move), starred status, or trash status. Requires EDITOR role or higher.

Inputs: workspaceId (required), folderId (required), name, description, +4 more.

upload_fileB

Upload a file to ZeroDrive. Supports uploading from a local file path with optional folder path for automatic folder creation.

Inputs: filePath (required), folderPath.

upload_workspace_fileB

Upload a file directly to a workspace. Requires EDITOR or higher workspace role.

Inputs: workspaceId (required), filePath (required), folderId.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 28 tools

    Disambiguation5/5

    Each tool targets a specific action and domain (personal vs workspace), with clear descriptions. The only potential overlap (download_file vs generate_signed_url) is resolved by distinct use cases.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern in snake_case, making them predictable and easy to navigate.

    Tool Count4/5

    28 tools is higher than typical, but the dual-domain coverage (personal and workspace) justifies the count. No obvious redundancy, though slightly over-scoped.

    Completeness3/5

    Covers most CRUD operations for files and folders, but lacks explicit delete_file and update_file tools, which are notable gaps for a file management system.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A Model Context Protocol server that enables Claude Desktop and other MCP clients to interact with WebDAV file systems through natural language commands for CRUD operations.
      8
      129 npm
      20
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that extends AI capabilities by providing file system access and management functionalities to Claude or other AI assistants.
      5
      -
    • A
      license
      A
      quality
      D
      maintenance
      A Model Context Protocol server that enables AI assistants to interact with Proton Drive files, supporting operations like listing, reading, creating, and deleting files and folders.
      7
      777 npm
      16
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables Claude Desktop to perform file operations like reading, writing, listing directories, and managing files through natural language commands.
      MIT