How to integrate Dropbox MCP with Claude Code

Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Dropbox logo
Claude Code logo
divider

Introduction

Manage your Dropbox directly from Claude Code with zero worries about OAuth hassles, API-breaking issues, or reliability and security concerns.

You can do this in two different ways:

  1. Via Composio Connect - Direct and easiest approach
  2. Via Composio SDK - Programmatic approach with more control

Also integrate Dropbox with

Why use Composio?

  • Only one MCP URL to connect multiple apps with Claude Code with zero auth hassles.
  • Programmatic tool calling allows LLMs to write its code in a remote workbench to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
  • Handling Large tool responses out of LLM context to minimize context rot.
  • Dynamic just-in-time access to 20,000 tools across 1000+ other Apps for cross-app workflows. It loads the tools you need, so LLMs aren't overwhelmed by tools you don't need.

Connecting Dropbox to Claude Code using Composio

1. Add the Composio MCP to Claude

Terminal

2. Start Claude Code

bash
claude

3. Open your MCP list

bash
/mcp

4. Select Composio and click on Authenticate

Select Composio and click Authenticate

5. This will redirect you to the Composio OAuth page. Complete the flow by authorizing Composio and you're all set.

Composio OAuth authorization page
Composio authorization complete
Ask Claude to connect to your account and authenticate via the link

Supported Tools & Triggers

Tools
Activate team folderTool to activate an archived team folder.
Add file memberTool to add specified members to a Dropbox file with configurable access levels.
Add file propertiesTool to add custom properties to a Dropbox file using a filled property template.
Add tag to file or folderTool to add a tag to a file or folder in Dropbox.
Add folder memberTool to add members to a shared folder with specified access levels.
Add users to space limits exclusion listTool to add users to the team's space limits exclusion list in Dropbox.
Add sharing allowlistTool to add domains or email addresses to the team sharing allowlist.
Add members to team groupTool to add members to a team group with specified access levels.
Add team membersTool to add new members to a Dropbox team.
Add secondary emails to team membersTool to add secondary email addresses to Dropbox team members.
Add property template for teamTool to add a property template for a team in Dropbox.
Alpha Upload FileTool to upload a new file to Dropbox using the alpha upload endpoint.
Append data to upload sessionTool to append more data to an existing upload session.
Append to multiple upload sessionsTool to append data to multiple upload sessions in a single request.
Archive team folderTool to archive an active team folder in Dropbox.
Check copy batch job statusTool to check the status of an asynchronous copy batch job in Dropbox.
Check delete batch statusTool to check the status of an asynchronous delete batch job in Dropbox.
Check folder batch statusTool to check the status of an asynchronous folder batch creation job.
Check sharing job statusTool to check the status of an asynchronous sharing job in Dropbox.
Check move batch job statusTool to check the status of an asynchronous move batch job.
Check move former member files job statusTool to check the status of an asynchronous move former member files job.
Check remove member job statusTool to check the status of an asynchronous remove folder member job in Dropbox.
Check save URL job statusTool to check the status of a save_url job in Dropbox.
Check share job statusTool to check the status of an asynchronous folder sharing job in Dropbox.
Check team folder archive statusTool to check the status of an asynchronous team folder archive job in Dropbox.
Check upload batch statusTool to check the status of an asynchronous upload batch job in Dropbox.
Check userTool to test Dropbox API connection and validate access token by echoing back a supplied string.
Copy multiple files or foldersTool to copy multiple files or folders to different locations at once in Dropbox.
Copy file or folderTool to copy a file or folder to a different location in Dropbox.
Count file requestsTool to get the total number of file requests owned by the authenticated user.
Create file requestTool to create a new file request in Dropbox.
Create folderTool to create a new folder at a specified path in Dropbox.
Create multiple foldersTool to create multiple folders at once in Dropbox.
Create paper documentCreates a new Dropbox Paper document at the specified path using HTML or Markdown content.
Create Paper folderTool to create a new Paper folder with the provided info.
Create shared linkTool to create a stable, long-lived shared link for a Dropbox file or folder.
Create team folderTool to create a new, active team folder with no members in Dropbox.
Create team groupTool to create a new, empty team group in Dropbox with a specified name.
Delete all closed file requestsTool to delete all closed file requests owned by the current user.
Delete multiple files/foldersTool to delete multiple files or folders at once in Dropbox.
Delete file or folderTool to delete a file or folder at the specified path in Dropbox.
Delete file requestsTool to delete a batch of closed file requests in Dropbox.
Delete manual contacts batchTool to delete specific manually added contacts from Dropbox by their email addresses.
Permanently delete archived team folderTool to permanently delete an archived team folder in Dropbox.
Delete team groupTool to delete a Dropbox team group.
Delete team member profile photoTool to delete a team member's profile photo.
Delete team members secondary emailsTool to delete secondary email addresses from Dropbox team members.
Download Folder as ZipTool to download a folder from Dropbox as a zip file.
Export FileTool to export non-downloadable Dropbox files (especially Dropbox Paper) to Markdown/HTML/plain text and return usable content.
Search files and foldersTool to search for files and folders in Dropbox by name or content.
Finish upload sessionTool to finish an upload session and save the uploaded data to the given file path.
Finish batch upload sessionsTool to commit many files at once into a user's Dropbox after uploading file contents via upload_session/start and upload_session/append.
Get about meTool to get information about the current user's Dropbox account.
Get accountTool to get information about a user's Dropbox account using their account ID.
Get account batchTool to get information about multiple user accounts in a single request.
Get available team member rolesTool to retrieve all available team member roles for the connected Dropbox team.
Get copy referenceTool to get a copy reference to a file or folder.
Get file lock batchTool to return lock metadata for multiple files in a single batch request.
Get shared file metadata batchTool to retrieve metadata for multiple shared files in a single batch request.
Get file previewTool to get a preview for a file.
Get file request detailsTool to retrieve details of an existing file request by ID.
Get file or folder tagsTool to get list of tags assigned to files or folders in Dropbox.
Get folder state cursorTool to get a cursor representing the current state of a folder without listing its contents.
Get JWKSTool to retrieve JSON Web Key Set containing public verification keys for Dropbox signed ID tokens.
Get file or folder metadataTool to fetch metadata for a file or folder by path.
Get file or folder metadata (alpha)Tool to fetch metadata for a file or folder using the alpha endpoint.
Get OpenID configTool to retrieve Dropbox's OpenID Connect discovery document describing supported OAuth 2.
Get shared file metadataTool to retrieve metadata for a shared file in Dropbox.
Get shared folder metadataTool to retrieve metadata for a specific shared folder by its ID.
Download file from shared linkTool to download a file from a Dropbox shared link.
Get shared link metadataTool to resolve a Dropbox shared link URL into structured metadata.
Get space usageTool to get space usage information for the current user's Dropbox account.
Get team feature valuesTool to get values for one or more team features.
Get team folder infoTool to retrieve metadata for team folders.
Get team groups infoTool to retrieve information about one or more team groups by their IDs or external IDs.
Get team groups job statusTool to check the status of an asynchronous team groups job in Dropbox.
Get team infoTool to retrieve information about a Dropbox team.
Get team audit log eventsTool to retrieve team audit log events from Dropbox.
Get team log events (continue)Tool to paginate through team audit log events using a cursor from team_log/get_events.
Get team member custom quotaTool to retrieve custom storage quotas for team members.
Get team members add job status v2Tool to poll the status of an asynchronous team member addition job.
Get team members infoTool to retrieve information about multiple team members in a single request.
Get property template for teamTool to get the schema for a specified property template for a team.
Get temporary linkTool to get a one-click temporary (expiring) download link.
Get temporary upload linkTool to get a one-time use temporary upload link to upload a file to Dropbox.
Get thumbnailTool to get a thumbnail for an image file.
Get thumbnail batchTool to get thumbnails for multiple image files in a single batch request.
Get thumbnail v2Tool to get a thumbnail for an image file.
Get user featuresTool to get a list of feature values configured for the current Dropbox account.
List member space limits excluded users (continue)Tool to paginate through team members excluded from space limits using a cursor from a previous list call.
List file membersTool to obtain the members who have been invited to a file, both inherited and uninherited members.
List file members batchTool to get members of multiple files at once.
List file requestsTool to list all file requests owned by the current user.
List file requests (continue)Tool to paginate through file requests using a cursor from a previous list call.
List file revisionsTool to retrieve the revision history for a file.
List files in folderTool to list files and folders in a specified Dropbox directory.
List folder continueTool to continue paginating through folder contents using a cursor from list_folder.
List folder membersTool to list members of a shared folder, including users, groups, and invitees.
List folder members continueTool to continue paginating through shared folder members using a cursor from list_folder_members.
List shared folders continueTool to continue paginating through shared folders using a cursor from list_folders.
List member linked appsTool to list all applications linked to a specific team member's account.
List excluded users from space limitsTool to list team members excluded from space limits.
List mountable foldersTool to list all shared folders the current user can mount or unmount.
List mountable folders continueTool to paginate through mountable shared folders using a cursor.
List Paper docsTool to return the list of all Paper docs according to filter and sort specifications.
List Paper documents (continue)Tool to continue paginating through Paper documents using a cursor from paper/docs/list.
List received filesTool to list all files shared with the current user.
List shared foldersTool to list all shared folders the authenticated user has access to.
List shared linksTool to list existing shared links for the current user, optionally filtered by path.
List team sharing allowlistTool to list Approve List entries for a team from newest to oldest.
List team devicesTool to list all device sessions of a team including web sessions, desktop clients, and mobile clients.
List team foldersTool to list all team folders for a Dropbox Business team.
List team folders continueTool to continue paginating through team folders using a cursor from team_folder/list.
List team group membersTool to list members of a Dropbox team group.
List team groupsTool to list all groups on a Dropbox team.
List team groups continueTool to continue listing team groups using a cursor from team/groups/list.
List team group members continueTool to continue listing team group members using a cursor from team/groups/members/list.
List members linked appsTool to list all applications linked to team members' accounts.
List team member devicesTool to list all device sessions of a team's member, including web sessions, desktop clients, and mobile clients.
List team membersTool to list members of a Dropbox team.
List team members continue (v2)Tool to continue listing team members using a cursor from team/members/list or team/members/list/continue_v2.
List team namespacesTool to list all team-accessible namespaces in a Dropbox Business team.
List team namespaces continueTool to continue paginating through team-accessible namespaces using a cursor from team/namespaces/list.
List team sharing allowlist continueTool to continue paginating through team sharing allowlist entries using a cursor.
List property templates for teamTool to list all property templates for a team.
List user templatesTool to get the template identifiers for a user.
Modify shared link settingsTool to modify settings of an existing Dropbox shared link.
Mount shared folderTool to mount a shared folder for the current user after they have been added as a member.
Move multiple files or folders in batchTool to move multiple files or folders to different locations at once in Dropbox.
Move file or folderMove file or folder
Overwrite file propertiesTool to overwrite property groups associated with a file or folder.
Read a fileDownloads a file from the specified Dropbox path, requiring `files.
Remove file memberTool to remove a specified member from a file's sharing permissions.
Remove File PropertiesTool to permanently remove specified property groups from a file or folder.
Remove file properties template for teamTool to remove a property template from a team.
Remove tag from file or folderTool to remove a tag from a file or folder in Dropbox.
Remove folder memberTool to remove a member from a shared folder.
Remove group membersTool to remove members from a Dropbox team group.
Remove sharing allowlistTool to remove domains or email addresses from the team sharing allowlist.
Remove team member custom quotaTool to remove custom storage quota for team members, reverting them to the team's default quota.
Remove member space limits excluded usersTool to remove users from the member space limits excluded users list.
Rename team folderTool to rename an existing team folder in Dropbox.
Resend secondary email verificationTool to resend secondary email verification emails to team members.
Restore file to specific revisionTool to restore a specific revision of a file to the given path in Dropbox.
Revoke shared linkTool to revoke a Dropbox shared link.
Save copy referenceTool to save a copy reference to the user's Dropbox.
Save file from URLTool to save a file to Dropbox directly from a public URL via server-side fetch.
Continue Dropbox SearchTool to fetch the next page of search results from a previous Dropbox search.
Search File or FolderTool to search for files and folders in Dropbox by name or content, optionally scoped to a path, with pagination support.
Search File PropertiesTool to search across property templates for particular property field values.
Send team member welcome emailTool to send a welcome email to a pending team member.
Set profile photoTool to set the profile photo for the current user's Dropbox account.
Set team member custom quotaTool to set custom storage quotas for team members in Dropbox.
Share folderTool to share a folder with collaborators in Dropbox.
Start upload sessionTool to start a new upload session with the given data.
Start batch of upload sessionsTool to start a batch of upload sessions.
Unlock multiple filesTool to unlock multiple files at specified paths in a single batch operation.
Unmount shared folderTool to unmount a shared folder for the current user.
Unshare fileTool to remove all members from a Dropbox file.
Unshare folderTool to allow a shared folder owner to unshare the folder.
Update file memberTool to change a member's access level on a shared file.
Update file propertiesTool to update custom properties on a file or folder in Dropbox.
Update file requestTool to update an existing file request in Dropbox.
Update folder memberTool to update another member's permissions in a shared folder.
Update folder policyTool to update the sharing policies for a shared folder.
Set group member access typeTool to change a member's access type in a team group.
Update Paper DocumentTool to update an existing Dropbox Paper document with new content in Markdown, HTML, or plain text format.
Update property template for teamTool to update a property template for a team in Dropbox.
Update team folder sync settingsTool to update the sync settings on a team folder or its contents in Dropbox.
Update team groupTool to update a team group's name, external ID, and/or management type.
Set team member admin permissionsTool to update a team member's admin permissions.
Set team member profileTool to update a team member's profile information.
Set team member profile photoTool to update a team member's profile photo.
Upload FileUploads a file (up to ~150 MB) to a specified path in the user's Dropbox, with options for handling existing files.

What is the Dropbox MCP server, and what's possible with it?

The Dropbox MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Dropbox account. It provides structured and secure access to your cloud files, so your agent can perform actions like searching, uploading, organizing, reading, and deleting files and folders on your behalf.

  • Smart file search and retrieval: Ask your agent to search for files or folders by name, keyword, or within specific directories, and quickly locate what you need.
  • Automated file uploads and folder creation: Direct your agent to create new folders for organization or request file uploads with unique shareable links, streamlining content collection and storage.
  • Seamless file reading and downloads: Have your agent read the contents of any file or download important documents from your Dropbox, whenever you need them.
  • Effortless organization and cleanup: Let your agent move, delete, or reorganize files and folders to keep your Dropbox tidy and efficient.
  • Account insights and management: Retrieve up-to-date details about your Dropbox account, including user info and storage status, for complete oversight.

Connecting Dropbox via Composio SDK

Composio SDK is the underlying tech that powers Rube. It's a universal gateway that does everything Rube does but with much more programmatic control. You can programmatically generate an MCP URL with the app you need (here Dropbox) for even more tool search precision. It's secure and reliable.

How the Composio SDK works

The Composio SDK follows a three-phase workflow:

  1. Discovery: Searches for tools matching your task and returns relevant toolkits with their details.
  2. Authentication: Checks for active connections. If missing, creates an auth config and returns a connection URL via Auth Link.
  3. Execution: Executes the action using the authenticated connection.

Step-by-step Guide

Prerequisites

Before starting, make sure you have:
  • Claude Pro, Max, or API billing enabled Anthropic account
  • Composio API Key
  • A Dropbox account
  • Basic knowledge of Python or TypeScript

Install Claude Code

bash
# macOS, Linux, WSL
curl -fsSL https://claude.ai/install.sh | bash

# Windows PowerShell
irm https://claude.ai/install.ps1 | iex

# Windows CMD
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

To install Claude Code, use one of the following methods based on your operating system:

Set up Claude Code

bash
cd your-project-folder
claude

Open a terminal, go to your project folder, and start Claude Code:

  • Claude Code will open in your terminal
  • Follow the prompts to sign in with your Anthropic account
  • Complete the authentication flow
  • Once authenticated, you can start using Claude Code
Claude Code initial setup showing sign-in prompt
Claude Code terminal after successful login

Set up environment variables

bash
COMPOSIO_API_KEY=your_composio_api_key_here
USER_ID=your_user_id_here

Create a .env file in your project root with the following variables:

  • COMPOSIO_API_KEY authenticates with Composio (get it from Composio dashboard)
  • USER_ID identifies the user for session management (use any unique identifier)

Install Composio library

pip install composio-core python-dotenv

Install the Composio Python library to create MCP sessions.

  • composio-core provides the core Composio functionality
  • python-dotenv loads environment variables from your .env file

Generate Composio MCP URL

import os
from composio import Composio
from dotenv import load_dotenv

load_dotenv()

COMPOSIO_API_KEY = os.getenv("COMPOSIO_API_KEY")
USER_ID = os.getenv("USER_ID")

composio_client = Composio(api_key=COMPOSIO_API_KEY)

composio_session = composio_client.create(
    user_id=USER_ID,
    toolkits=["dropbox"],
)

COMPOSIO_MCP_URL = composio_session.mcp.url

print(f"MCP URL: {COMPOSIO_MCP_URL}")
print(f"\nUse this command to add to Claude Code:")
print(f'claude mcp add --transport http dropbox-composio "{COMPOSIO_MCP_URL}" --headers "X-API-Key:{COMPOSIO_API_KEY}"')

Create a script to generate a Composio MCP URL for Dropbox. This URL will be used to connect Claude Code to Dropbox.

What's happening:

  • We import the Composio client and load environment variables
  • Create a Composio instance with your API key
  • Call create() to create a Tool Router session for Dropbox
  • The returned mcp.url is the MCP server URL that Claude Code will use
  • The script prints this URL so you can copy it

Run the script and copy the MCP URL

python generate_mcp_url.py

Run your Python script to generate the MCP URL.

  • The script connects to Composio and creates a Tool Router session
  • It prints the MCP URL and the exact command you need to run
  • Copy the entire claude mcp add command from the output

Add Dropbox MCP to Claude Code

bash
claude mcp add --transport http dropbox-composio "YOUR_MCP_URL_HERE" --headers "X-API-Key:YOUR_COMPOSIO_API_KEY"

# Then restart Claude Code
exit
claude

In your terminal, add the MCP server using the command from the previous step. The command format is:

  • claude mcp add registers a new MCP server with Claude Code
  • --transport http specifies that this is an HTTP-based MCP server
  • The server name (dropbox-composio) is how you'll reference it
  • The URL points to your Composio Tool Router session
  • --headers includes your Composio API key for authentication

After running the command, close the current Claude Code session and start a new one for the changes to take effect.

Verify the installation

bash
claude mcp list

Check that your Dropbox MCP server is properly configured.

  • This command lists all MCP servers registered with Claude Code
  • You should see your dropbox-composio entry in the list
  • This confirms that Claude Code can now access Dropbox tools

If everything is wired up, you should see your dropbox-composio entry listed:

Claude Code MCP list showing the toolkit MCP server

Authenticate Dropbox

The first time you try to use Dropbox tools, you'll be prompted to authenticate.

  • Claude Code will detect that you need to authenticate with Dropbox
  • It will show you an authentication link
  • Open the link in your browser (or copy/paste it)
  • Complete the Dropbox authorization flow
  • Return to the terminal and start using Dropbox through Claude Code

Once authenticated, you can ask Claude Code to perform Dropbox operations in natural language. For example:

  • "List files in my shared projects folder"
  • "Create a new folder for invoices"
  • "Search for last month's sales report"

Complete Code

Here's the complete code to get you started with Dropbox and Claude Code:

import os
from composio import Composio
from dotenv import load_dotenv

load_dotenv()

COMPOSIO_API_KEY = os.getenv("COMPOSIO_API_KEY")
USER_ID = os.getenv("USER_ID")

composio_client = Composio(api_key=COMPOSIO_API_KEY)

composio_session = composio_client.create(
    user_id=USER_ID,
    toolkits=["dropbox"],
)

COMPOSIO_MCP_URL = composio_session.mcp.url

print(f"MCP URL: {COMPOSIO_MCP_URL}")
print(f"\nUse this command to add to Claude Code:")
print(f'claude mcp add --transport http dropbox-composio "{COMPOSIO_MCP_URL}" --headers "X-API-Key:{COMPOSIO_API_KEY}"')

Conclusion

You've successfully integrated Dropbox with Claude Code using Composio's MCP server. Now you can interact with Dropbox directly from your terminal using natural language commands.

Key features of this setup:

  • Terminal-native experience without switching contexts
  • Natural language commands for Dropbox operations
  • Secure authentication through Composio's managed MCP
  • Tool Router for dynamic tool discovery and execution

Next steps:

  • Try asking Claude Code to perform various Dropbox operations
  • Add more toolkits to your Tool Router session for multi-app workflows
  • Integrate this setup into your development workflow for increased productivity

You can extend this by adding more toolkits, implementing custom workflows, or building automation scripts that leverage Claude Code's capabilities.

How to build Dropbox MCP Agent with another framework

FAQ

What are the differences in Tool Router MCP and Dropbox MCP?

With a standalone Dropbox MCP server, the agents and LLMs can only access a fixed set of Dropbox tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Dropbox and many other apps based on the task at hand, all through a single MCP endpoint.

Can I use Tool Router MCP with Claude Code?

Yes, you can. Claude Code fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Dropbox tools.

Can I manage the permissions and scopes for Dropbox while using Tool Router?

Yes, absolutely. You can configure which Dropbox scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Dropbox data and credentials are handled as safely as possible.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.