folder_stats
Click on "Install 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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 gradedqualityCmaintenanceProvides a tool to calculate basic text metrics including character count, characters without spaces, and word count.MIT
Related MCP Connectors
Count occurrences of any character in your text instantly. Specify the character and get precise c…
Compare two JSON files deeply, regardless of order. Get a detailed difference report highlighting…
Generate SBOMs, scan vulnerabilities, and analyze dependencies from local projects or Git repos.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dakshhgondaliyaa/mcp-folder-stats'
If you have feedback or need assistance with the MCP directory API, please join our Discord server