dbx-mcp-server logo

dbx-mcp-server

Community
amgadabdelhafez

MCP Server for Dropbox

Publisheramgadabdelhafez
Repositorydbx-mcp-server
LanguageTypeScript
Forks
21
Stars
29
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    dbx-mcp-server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    29 stars and 21 forks from the linked repository.

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

  1. Clone the repository
  2. Run npm install to install dependencies
  3. Run npm run build to build the project
  4. Run npm run setup
  5. Configure your MCP client to use the server

Prerequisites

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 desired permissions for the actions you will be using, for example:
    • files.metadata.read
    • files.content.read
    • files.content.write
    • sharing.write
    • account_info.read
  • Add http://localhost as your redirect URI
  • Note your App key and App secret

Installation

  1. Clone the repository

    bash
    git clone https://github.com/your-username/dbx-mcp-server.git
    cd dbx-mcp-server
  2. Install dependencies and build

    bash
    npm install
    npm run build
  3. Run the setup script

    bash
    npm run setup
  4. Add to MCP settings

    Add the following to your MCP settings file:

    json
    {
      "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

Required Dropbox Permissions

Below is a mapping of server actions to the minimum Dropbox OAuth scopes (permissions) required:

Server ActionRequired Dropbox Scopes
list_filesfiles.metadata.read
upload_filefiles.content.write, files.metadata.write
download_filefiles.content.read
safe_delete_itemfiles.metadata.write
create_folderfiles.metadata.write
copy_itemfiles.content.write, files.metadata.write
move_itemfiles.content.write, files.metadata.write
get_file_metadatafiles.metadata.read
search_file_dbfiles.metadata.read
get_sharing_linksharing.write
get_file_contentfiles.content.read
get_account_infoaccount_info.read

Additional Scopes (if needed):

  • sharing.read: View sharing settings and collaborators
  • file_requests.read / file_requests.write: For file request features
  • contacts.read / contacts.write: For accessing Dropbox contacts

For more details on Dropbox scopes, see the Dropbox Permissions Documentation.

Usage Examples

typescript
// 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,
});

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.

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "your-username-dbX-mcp-server": {
      "command": "",
      "args": []
    }
  }
}

Use dbx-mcp-server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once dbx-mcp-server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add dbx-mcp-server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the dbx-mcp-server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "your-username-dbX-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "dbx-mcp-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the dbx-mcp-server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the dbx-mcp-server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use dbx-mcp-server to help me with this task?
dbx-mcp-server
Sure. I read it.
Here is what I found using dbx-mcp-server.

Frequently asked questions

What is the dbx-mcp-server MCP server used for?

dbx-mcp-server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use dbx-mcp-server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use dbx-mcp-server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use dbx-mcp-server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With dbx-mcp-server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect dbx-mcp-server MCP to TypingMind?

dbx-mcp-server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does dbx-mcp-server MCP provide in TypingMind?

dbx-mcp-server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use dbx-mcp-server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If dbx-mcp-server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇