A lightweight plugin to list all files and folders on the current macOS user's desktop.
mini_mcp is a lightweight plugin built with FastMCP that retrieves the list of all files located on the current macOS user's desktop.
It is recommended to use Conda to create an isolated environment:
conda create -n mcp python=3.12
conda activate mcp
pip install fastmcp
If you want to install with the requirements.txt file, install dependencies with:
pip install -r requirements.txt
To invoke the list_desktop_files tool from an external MCP client, use the following configuration:
{
"mcpServers": {
"list_desktop_files": {
"command": "/Users/hzq/anaconda/anaconda3/envs/mcp/bin/python",
"args": [
"/Users/hzq/py_projects/mini_mcp/main.py"
]
}
}
}
β οΈ Make sure to update the paths to match your local Python interpreter and project location.
list_desktop_files()
Purpose: Lists all files and folders on the current user's desktop.
Platform: macOS only
Returns: A list of strings, each representing a file or folder name.
Example output
[
"report.pdf",
"screenshot.png",
"MyFolder"
]
mini_mcp/
βββ main.py # Main script that registers the FastMCP tool
βββ README.md # This documentation file
βββ requirements.txt # (Optional) Dependency definitions
This tool is implemented specifically for macOS due to the use of the ~/Desktop
path.
To adapt this tool for Windows or Linux, modify the desktop path accordingly in the main.py
script.
Ensure that fastmcp
is installed and compatible with your Python version.
This project is provided as-is without any warranty. For licensing terms, refer to FastMCPβs license if applicable.
Parses various file formats using the 302.AI API, requiring a 302AI_API_KEY.
A server for performing filesystem operations such as reading/writing files, managing directories, and searching.
Fast Windows file search using Everything SDK
Convert files between various formats, including images, documents, audio, video, and more.
Perform filesystem operations within specified directories.
Visualize directory structures with real-time updates, configurable depth, and smart exclusions for efficient project navigation.
Securely browse and read files within an Android project, with built-in validation and access controls for sensitive directories.
A read-only MCP server for querying live FTP data using the CData JDBC Driver.
A secure server for filesystem operations with controlled access to specified directories.
Batch convert PNG, JPG, and JPEG images to WebP format with options for quality, lossless mode, and multi-threaded processing.