Navigation
dbx-mcp-server: Rock-Solid Reliability & Effortless Integration - MCP Implementation

dbx-mcp-server: Rock-Solid Reliability & Effortless Integration

Power your cursor .47 workflows with this rock-solid Dropbox MCP server – simple variables, clean wrappers, zero hassle. Deploy, integrate, and dominate." )

Developer Tools
4.4(132 reviews)
198 saves
92 comments

Users create an average of 47 projects per month with this tool

About dbx-mcp-server

What is dbx-mcp-server: Rock-Solid Reliability & Effortless Integration?

dbx-mcp-server is a specialized Model Context Protocol (MCP) server designed to bridge Dropbox services with MCP-compliant applications. It acts as an intermediary, enabling seamless access to Dropbox’s file storage, sharing, and account management features through a robust API interface. While not officially affiliated with Dropbox, it leverages their public API to deliver enterprise-grade reliability and straightforward setup—perfect for developers integrating cloud storage into AI/ML workflows or automation tools.

How to Use dbx-mcp-server: Rock-Solid Reliability & Effortless Integration?

  1. Setup Dropbox App: Create a new app in the Dropbox developer console with scoped access, granting permissions like file read/write and sharing.
  2. Environment Configuration: Set environment variables (e.g., app keys, encryption keys) to secure API interactions.
  3. Run the Server: Build and execute the server using npm scripts, then configure your MCP client to point to its endpoint.
  4. Invoke Tools: Use predefined functions like upload_file or search_file_db via MCP’s standardized API calls.

dbx-mcp-server Features

Key Features of dbx-mcp-server: Rock-Solid Reliability & Effortless Integration?

  • Granular Dropbox Control: Perform actions like secure file deletion with recycle bin preservation, folder creation, and content encryption.
  • OAuth 2.0 Security: Implements PKCE for token exchange, ensuring tamper-proof authentication flows.
  • Self-Healing Auth: Automatically refreshes access tokens with customizable retry logic to prevent service disruptions.
  • Test-Driven Validation: Includes a comprehensive test suite with auto-cleanup for file ops, search, and edge cases.

Use Cases of dbx-mcp-server: Rock-Solid Reliability & Effortless Integration?

Perfect for scenarios requiring:

  • Automated Backups: Schedule file syncs or snapshots using MCP’s workflow engines.
  • Collaboration Tools: Generate shareable links programmatically for real-time document access.
  • AI Data Pipelines: Streamline ingestion of Dropbox-stored datasets into machine learning frameworks.
  • Legacy System Migration: Gradually replace custom Dropbox integrations with MCP’s standardized interface.

dbx-mcp-server FAQ

FAQ from dbx-mcp-server: Rock-Solid Reliability & Effortless Integration?

Is this an official Dropbox product?
No, it’s an independent implementation using Dropbox’s public APIs. Always review their terms of service.
What if authentication fails?
Check scopes in your Dropbox app settings and ensure the TOKEN_ENCRYPTION_KEY matches production requirements.
Can I customize the tools?
Yes, the TypeScript codebase is open-source—tweak endpoints or add new operations via the MCP server framework.
Why use MCP over direct API calls?
MCP abstracts complexity, allowing seamless switching between storage providers (e.g., Google Drive) without client-side changes.

Content

dbx-mcp-server

A Model Context Protocol (MCP) server that provides integration with Dropbox, allowing MCP-compatible clients to interact with Dropbox through a set of powerful tools.

Important Disclaimer: This project is not affiliated with, endorsed by, or sponsored by Dropbox. It is an independent integration that works with Dropbox's public API.

Table of Contents

  • Quick Start
  • Installation
  • Authentication
  • Available Tools
  • Configuration
  • Usage Examples
  • Testing
  • Development
  • License

Quick Start

  1. Clone the repository

  2. Run npm install to install dependencies

  3. Run npm run build to build the project

  4. Register a Dropbox app at Dropbox App Console:
    * Choose "Scoped access" API
    * Choose the access type your app needs
    * Name your app and click "Create app"
    * Under "Permissions", select the required permissions:

    • files.metadata.read
    • files.content.read
    • files.content.write
    • sharing.write
    • account_info.read
      • Add http://localhost:3000/callback as your redirect URI
      • Note your App key and App secret
  5. Run the setup script:

    npm run setup

  6. Configure your MCP client to use the server

Installation

  1. Clone the repository

    git clone https://github.com/your-username/dbx-mcp-server.git

cd dbx-mcp-server
  1. Install dependencies and build

    npm install

npm run build
  1. Run the setup script

    npm run setup

  2. Add to MCP settings

Add the following to your MCP settings file:

    {
  "mcpServers": {
    "dbx": {
      "command": "node",
      "args": ["/path/to/dbx-mcp-server/build/index.js"]
    }
  }
}

Authentication

The server uses OAuth 2.0 with PKCE for secure authentication with Dropbox.

Environment Variables

Required:

  • DROPBOX_APP_KEY: Your Dropbox app's key
  • DROPBOX_APP_SECRET: Your Dropbox app's secret
  • DROPBOX_REDIRECT_URI: OAuth redirect URI
  • TOKEN_ENCRYPTION_KEY: 32+ character key for token encryption

Optional:

  • TOKEN_REFRESH_THRESHOLD_MINUTES: Minutes before expiration to refresh token (default: 5)
  • MAX_TOKEN_REFRESH_RETRIES: Maximum number of refresh attempts (default: 3)
  • TOKEN_REFRESH_RETRY_DELAY_MS: Delay between refresh attempts in ms (default: 1000)

Available Tools

File Operations

  • list_files: List files in a directory
  • upload_file: Upload a file
  • download_file: Download a file
  • safe_delete_item: Safely delete with recycle bin support
  • create_folder: Create a new folder
  • copy_item: Copy a file or folder
  • move_item: Move or rename a file/folder

Metadata and Search

  • get_file_metadata: Get file/folder metadata
  • search_file_db: Search files and folders
  • get_sharing_link: Create sharing links
  • get_file_content: Get file contents

Account Operations

  • get_account_info: Get account information

Usage Examples

// List files in root directory
await mcp.useTool("dbx-mcp-server", "list_files", { path: "" });

// Upload a file
await mcp.useTool("dbx-mcp-server", "upload_file", {
  path: "/test.txt",
  content: Buffer.from("Hello World").toString("base64"),
});

// Search for files
await mcp.useTool("dbx-mcp-server", "search_file_db", {
  query: "report",
  path: "/Documents",
  max_results: 10,
});

Testing

Run the test suite:

npm test

Tests verify all operations including authentication, file operations, and error handling.

Test Structure

The test suite is organized into several modules:

  • Dropbox Operations : Tests for basic file operations (upload, download, list, etc.)
  • Account Operations : Tests for accessing account information
  • Search and Delete : Tests for search functionality and safe deletion with recycle bin support
  • Resource System : Tests for the MCP resource system integration

Handling Test Data

The tests use dynamically generated file and folder names based on timestamps to avoid conflicts. Test data is automatically cleaned up after test execution.

Running Specific Tests

To run a specific test file or test group:

npm test -- tests/dropbox/search-delete.test.ts  # Run specific test file
npm test -- -t "should search for files"        # Run tests matching description

Troubleshooting Tests

If tests fail with timing or authentication issues:

  1. Check that the mock implementations in tests/setup.ts match your test expectations
  2. Ensure test helpers are correctly configured
  3. For Jest scope errors, avoid referencing imported variables in mock factory functions

Development

Built with:

  • TypeScript
  • Model Context Protocol SDK
  • Dropbox SDK v10.34.0
  • Dropbox API v2

License

MIT License

Copyright (c) 2025 MCP Server Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

smithery badge

Related MCP Servers & Clients