An MCP server that exposes Dropbox Dash search and file metadata via STDIO using the Python MCP server library (fastmcp). Authenticate with Dropbox, then search across all company content and fetch detailed file metadata and content.
-
dash_get_auth_url- Summary: Start Dropbox OAuth; returns the authorization URL.
- Args: none
- Returns (text): A short instruction message followed by the URL.
- Notes: Use when not yet authenticated or when a token has expired. After approval in the browser, call
dash_authenticatewith the one-time code. Tokens are stored securely in your system keyring, so this is typically a one-time setup.
-
dash_authenticate- Summary: Complete OAuth using the one-time authorization code.
- Args:
auth_code(string, required)
- Returns (text): Account display name and email on success; a human-readable error on failure.
- Notes: Persists a token for subsequent tool calls. Typically only needed once until the token expires or is revoked.
-
dash_company_search- Summary: Search company content indexed by Dropbox Dash.
- Args:
query(string, required) — search textfile_type(string or null, optional) — one of:document,image,video,audio,pdf,presentation,spreadsheet; ornullfor no filter. Default:null. The valuedocumentis also treated as no filter.max_results(integer, optional) — default20, range1..100
- Returns (text): A formatted list of results. Each result includes labeled fields such as
UUID:,Type:,URL:,Preview:,Description:,File Type:,MIME Type:,Source:,Creator:,Last Modified By:,Updated:,Source Updated:,Relevance:,Source ID:. Results are separated by a divider line. - Errors: Human-readable messages for invalid parameters or missing authentication.
-
dash_get_file_details- Summary: Fetch detailed metadata (and optional content snippet) for a result UUID.
- Args:
uuid(string, required) — UUID from search results
- Returns (text): A summary with labeled fields (Title, Link, Updated, Source Updated, MIME Type, Source, Creator, Last Modified By). Media sections are included when present (Video/Image metadata). Content, when available, is shown with a MIME type and may be truncated to ~20,000 characters.
- Errors: Human-readable messages for missing authentication or unknown UUID.
If the user is not yet authenticated (or the token has expired):
dash_get_auth_url→ open the URL and approve access.dash_authenticate(auth_code)→ store the token.- Proceed with
dash_company_search(...)anddash_get_file_details(uuid).
Before installing and running the MCP server, you need to create a Dropbox app to obtain API credentials:
- Go to dropbox.com/developers/apps
- Click on Create app
- Select Scoped access as the API type
- Choose Full Dropbox access
- Give your app a name
- After creating the app, go to the Permissions tab and enable:
files.metadata.readfiles.content.read
- Take note of the App key value from the Settings tab (you'll need this for configuration)
This credential will be used as APP_KEY in the installation steps below.
- Python 3.10 or higher
- Dropbox Dash API credentials (App key)
- Network access to Dropbox APIs
git clone https://github.com/dropbox/mcp-server-dash
cd mcp-server-dash
macOS (Homebrew)
brew install uv
macOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows (PowerShell):
irm https://astral.sh/uv/install.ps1 | iex
uv sync
export APP_KEY=your_dropbox_app_key
# or create a .env file with APP_KEY
# e.g., copy the example file:
cp .env.example .envuv run src/mcp_server_dash.pyAuthenticate via tools: call dash_get_auth_url, then dash_authenticate with the code. The access token is securely stored in your system's keyring (macOS Keychain, Windows Credential Manager, or Linux Secret Service).
Tokens are stored securely in your system keyring under the service name mcp-server-dash.
To clear a stored token, use your system's credential management tool (Keychain Access on macOS, Credential Manager on Windows, or Secret Service on Linux) to delete the mcp-server-dash entry.
For most MCP clients, including Claude and Cursor, you need to insert the below JSON configuration into a specific configuration file. See the specific instructions for Claude and Cursor below.
❗ Important: Update the configuration below with the path to your installation and with your APP_KEY.
MCP Server Configuration:
{
"mcpServers": {
"Dropbox Dash Search": {
"command": "uv",
"args": [
"--directory",
"/path/to/mcp-server-dash/",
"run",
"src/mcp_server_dash.py"
],
"env": {
"APP_KEY": "your_dropbox_app_key"
}
}
}
}Security Note: For better security, consider using environment variables or a .env file with restrictive permissions (excluded from version control) instead of placing credentials directly in the MCP config file.
- Open
Claude Desktop → Settings → Developer → Local MCP Servers → Edit Config - Add the JSON MCP Server configuration shown above.
- Restart Claude Desktop after saving the config.
- Press
Cmd+Shift+P(macOS) orCtrl+Shift+P(Windows) to open the Command Palette - Type "View: Open MCP Settings"
- Add the JSON MCP Server Configuration to the
mcp.jsonfile as instructed.
- Select
Extensions → Add custom extension - Fill out the form:
- Extension Name: Dropbox Dash Search
- Type: STDIO
- Description: Provide company context to your workflows
- Command:
uv --directory /path/to/mcp-server-dash/ run src/mcp_server_dash.py - Environment:
APP_KEY: Your Dropbox Client ID
- Click
Add Extension
Install dev tools (ruff, black, mypy, pytest, coverage) using uv:
uv pip install -e ".[dev]"Run checks (via uv):
# Lint (imports, style, bugbear, etc.)
uv run ruff check .
# Format (apply changes)
uv run black .
# Type-check
uv run mypy srcTip: use uv run ruff format . (or uv run black .) to auto-format, and uv run ruff check --fix . to apply safe autofixes.
Run the test suite (quiet mode with coverage summary) using uv:
uv run pytest
# or explicitly with coverage flags
uv run pytest -q --cov=src --cov-report=term-missingYou can inspect and debug the server with the Model Context Protocol Inspector:
npx @modelcontextprotocol/inspector uv run src/mcp_server_dash.pyEnsure APP_KEY is set in your environment or .env before running the inspector.
Apache License 2.0
Copyright (c) 2025 Dropbox, Inc.
See LICENSE for details.