--- title: "Using Gemini-CLI and MCP server to organize my dropbox" date: 2025-08-31 author: "haopengzhan" category: "Tech" tags: ["AI Era", "Dropbox", "Gemini", "LLM", "Productivity", "k8s"] excerpt: "I think many people face the same dilemma I did: Dropbox fills up with thousands of disorganized files. Here is how I leveraged Gemini-CLI and Model Context Protocol to automate organization." cover: images/cover.svg lang: en --- I think many people face the same dilemma I did: years of accumulated receipts, research papers, camera uploads, and archives scattered across folders. When managing workloads in modern infrastructure, we treat our nodes cleanly with a streamlined **container image** deployed across clusters. But our personal storage often looks like a monolithic legacy system. ## The Problem with Cloud Storage Cloud storage services like Dropbox offer immense space, but search and organization remain rudimentary. You often remember *concepts* rather than filenames: - "That invoice from AWS last quarter" - "The PDF paper on distributed consensus" - "A screenshot of my terminal settings" ## Introducing MCP (Model Context Protocol) The Model Context Protocol connects LLMs with local or remote toolsets. By creating an MCP server for Dropbox, we expose simple tools: ```bash # Running the MCP server locally or in a container npx -y @modelcontextprotocol/server-dropbox ``` And in Python: ```python import dropbox def list_unorganized_files(dbx, path="/Inbox"): res = dbx.files_list_folder(path) return [entry.name for entry in res.entries] ``` ## Results and Workflow Once configured, Gemini can inspect file headers, categorize documents into appropriate directories, and even rename messy receipts into normalized ISO dates (`YYYY-MM-DD-merchant-amount.pdf`).