folder_stats
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@folder_statscount files and folders in /home/user/project recursively"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Local MCP: File Management Tools
This is a Model Context Protocol (MCP) server written in Python using the official mcp SDK (FastMCP). It provides a suite of tools that allows LLMs to retrieve statistics about folders and directly manipulate your local file system.
Features
get_folder_stats: Lists and counts files and subdirectories directly inside the target path (supports recursive counting).create_folder: Creates a new folder (and any necessary parent folders) at the specified path.edit_file: Creates a new file or overwrites an existing file with the provided text content.delete_path: Safely deletes a specific file or folder (and all its contents).Error handling: Returns clear JSON error messages for invalid paths or permission issues.
Related MCP server: File Operations MCP Server
Setup Instructions
Install dependencies: Make sure you have Python installed, then install the required
mcppackage:pip install -r requirements.txtTest the server (optional): You can run the server directly to make sure it executes without errors. It will wait for MCP JSON-RPC messages via standard input/output.
python server.py(Press
Ctrl+Cto exit)
Registering the MCP Server
To use these tools, you need to add the server to your AI editor or chat app configuration.
1. Claude Desktop
Open your Claude Desktop config file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add the following entry. CRITICAL: You must use the absolute path to your python executable and the absolute path to server.py.
{
"mcpServers": {
"folder-tools": {
"command": "C:\\Users\\YourUsername\\AppData\\Local\\Programs\\Python\\Python313\\python.exe",
"args": [
"D:/absolute/path/to/server.py"
]
}
}
}(Make sure to restart Claude Desktop completely for the config to take effect!)
2. VS Code (Cline / Roo Code extensions)
Create a file at .vscode/cline_mcp_settings.json in your workspace with the same JSON configuration shown above.
3. Antigravity IDE
Register it globally by editing your ~/.gemini/config/mcp_config.json with the same JSON configuration shown above.
Example Tool Usage
Input arguments to edit_file:
{
"path": "C:\\path\\to\\hello.txt",
"content": "Hello World!"
}Output returned (JSON string):
{
"success": true,
"message": "File edited successfully: C:\\path\\to\\hello.txt"
}This server cannot be deployed
Maintenance
Related MCP Connectors
Count occurrences of any character in your text instantly. Specify the character and get precise c…
Manage files and folders directly from your workspace. Read and write files, list directories, cre…
Counts tokens under OpenAI-compatible (tiktoken) encodings, by model or encoding name.
package.json key count, values discarded
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables counting characters or bytes in text with options to include or exclude whitespace. Provides a simple tool for text analysis and length measurement.1MIT
- FlicenseNot gradedqualityDmaintenanceProvides tools for common file processing operations including reading files, listing directories, searching across files, getting file info, and counting lines with built-in security features like path traversal protection.-
- AlicenseNot gradedqualityDmaintenanceProvides tools for AI models to count characters and words in text, supporting English and other space-delimited languages.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables file operations such as counting, listing, compressing images, creating/extracting archives, copying/moving files, and merging/splitting PDFs via natural language.5MIT