Skip to main content
Glama
parthRana26

File Manager MCP

by parthRana26

šŸ—‚ļø File Manager MCP

Open-Source MCP Server for Local File Management

License Python MCP FastMCP Transport Tools Status Open Source

File Manager MCP is an open-source Model Context Protocol (MCP) server that enables AI assistants such as ChatGPT, Cursor, VS Code, Windsurf, and other MCP-compatible clients to perform local filesystem operations through natural language.

Built with FastMCP and Streamable HTTP transport, the server exposes 35 filesystem tools covering file management, directory operations, search, ZIP handling, batch processing, and utility operations.


šŸš€ Why File Manager MCP?

Instead of manually navigating files and folders, users can interact with their filesystem through AI.

Example

User:

Create a FastAPI project structure

AI:

āœ“ Creates folders
āœ“ Creates README.md
āœ“ Creates requirements.txt
āœ“ Creates source files

User:

Zip the project and move it to backups

AI:

āœ“ Creates ZIP archive
āœ“ Moves archive

Everything runs locally on the user's machine.


Related MCP server: folder-mcp

✨ Features

File Operations

  • Create files

  • Read files

  • Update files

  • Append content

  • Delete files

  • Move files

  • Copy files

  • Rename files

Directory Operations

  • Create directories

  • Delete directories

  • Analyze directories

  • Generate directory trees

Search Services

  • Recursive file search

  • Folder search

  • Metadata inspection

ZIP Operations

  • Create ZIP archives

  • Extract ZIP archives

  • List ZIP contents

Batch Operations

  • Batch create files

  • Batch delete files

  • Batch move files

  • Batch copy files

  • Batch rename files

  • Batch create directories

  • Batch delete directories

Utility Operations

  • File hashing

  • Duplicate detection

  • File comparison

  • Directory comparison

  • Large file discovery

  • Empty directory cleanup

  • Temporary file cleanup


šŸ“Š Project Statistics

Metric

Value

MCP Tools

35

Service Modules

5

Transport

Streamable HTTP

Framework

FastMCP

Language

Python

License

MIT


šŸ—ļø Architecture

User
 │
 ā–¼
MCP Client
(ChatGPT / Cursor / VS Code)
 │
 ā–¼
File Manager MCP
(FastMCP Server)
 │
 ā”œā”€ā”€ File Services
 ā”œā”€ā”€ Search Services
 ā”œā”€ā”€ Batch Services
 ā”œā”€ā”€ ZIP Services
 └── Utility Services
 │
 ā–¼
Local Filesystem

šŸ› ļø Technology Stack

  • Python

  • FastMCP

  • Model Context Protocol (MCP)

  • Streamable HTTP Transport

  • pathlib

  • shutil

  • zipfile

  • hashlib

  • logging


šŸš€ Quick Start

Clone Repository

git clone https://github.com/parthRana26/file-manager-mcp.git

cd file-manager-mcp

Install uv

pip install uv

Install Dependencies

uv sync

Start Server

uv run main.py

Server Endpoint:

http://localhost:8000/mcp

šŸ” Testing with MCP Inspector

Start MCP Inspector:

npx @modelcontextprotocol/inspector

Connect using:

Transport: Streamable HTTP

URL:
http://localhost:8000/mcp

Verify that all tools appear successfully.


šŸ”Œ Connecting MCP Clients

Use the following endpoint:

http://localhost:8000/mcp

Example configuration:

{
  "mcpServers": {
    "file-manager-mcp": {
      "type": "http",
      "url": "http://localhost:8000/mcp"
    }
  }
}

Works with:

  • ChatGPT

  • Cursor

  • VS Code

  • Windsurf

  • MCP Inspector

  • Custom MCP Clients


šŸ’¬ Example Prompts

Create a README.md file
Generate a FastAPI project structure
Find duplicate files
Create a ZIP archive of my project
Compare two directories
Find files larger than 500 MB

šŸ“ Project Structure

file-manager-mcp/

ā”œā”€ā”€ main.py
ā”œā”€ā”€ requirements.txt
ā”œā”€ā”€ config.py
ā”œā”€ā”€ README.md

ā”œā”€ā”€ services/
│   ā”œā”€ā”€ file_service.py
│   ā”œā”€ā”€ search_service.py
│   ā”œā”€ā”€ batch_service.py
│   ā”œā”€ā”€ zip_service.py
│   ā”œā”€ā”€ utility_service.py
│   └── security_service.py

└── workspace/

šŸ”’ Security Notes

This MCP server performs real filesystem operations.

Recommended:

  • Run locally

  • Use trusted MCP clients

  • Review destructive operations before approval

  • Use project-specific directories


šŸ‘Øā€šŸ’» Maintainer

Parth Rana

GitHub: https://github.com/parthRana26

LinkedIn: https://linkedin.com/in/parth-rana-profile


šŸ¤ Contributing

Contributions, issues, and feature requests are welcome.

Feel free to fork the repository and submit pull requests.


šŸ“„ License

Licensed under the MIT License.

See LICENSE for details.

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

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

  • F
    license
    -
    quality
    D
    maintenance
    Enables LLMs to securely read, search, and analyze local file systems through the Model Context Protocol. Provides tools for listing files, pattern-based searching, and reading file contents with built-in security validation.
    Last updated
    6
  • A
    license
    -
    quality
    D
    maintenance
    Enables advanced file system operations such as file read/write, directory management, search, archiving, and file watching through natural language.
    Last updated
    18
    2
    MIT

View all related MCP servers

Related MCP Connectors

  • Securely search and manage workspace context files for AI agents and teams.

  • Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.

  • Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.

View all MCP Connectors

Latest Blog Posts

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/parthRana26/file-manager-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server