filesystem-mcp
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., "@filesystem-mcp list files in the current directory"
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.
๐ filesystem-mcp
Model Context Protocol (MCP) server for file system operations. Enable AI assistants like Claude, Cursor, and others to read, write, and manage files on your local system.
๐ Features
๐ Read files - Read file contents with size limits
๐ List directories - View files with metadata (size, type)
โ๏ธ Write files - Create and update files
๐๏ธ Delete files - Remove files and directories
๐ Search files - Glob pattern matching
๐ File info - Get detailed metadata
๐ Directory operations - Create, copy, move directories
Related MCP server: Filesystem MCP
๐ฆ Installation
pip install filesystem-mcp๐ง Usage
CLI Mode
# Start the MCP server (read-write mode)
filesystem-mcp --directory /path/to/your/project
# Start in read-only mode
filesystem-mcp --directory /path/to/your/project --readonlyClaude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"filesystem": {
"command": "filesystem-mcp",
"args": ["--directory", "/path/to/your/project"]
}
}
}Cursor
Add to Cursor settings (MCP configuration):
{
"mcpServers": {
"filesystem": {
"command": "filesystem-mcp",
"args": ["--directory", "/path/to/your/project"]
}
}
}๐ ๏ธ Available Tools
Tool | Description | Write |
| Read contents of a file | โ |
| List files in a directory | โ |
| Create or write to a file | โ |
| Delete a file or directory | โ |
| Create a new directory | โ |
| Search files by glob pattern | โ |
| Get file metadata | โ |
| Copy a file or directory | โ |
| Move or rename a file | โ |
๐ Example
from filesystem_mcp import FileSystemServer
# Create server instance
server = FileSystemServer(root_directory="/path/to/project")
# Run the server
server.run()๐ Security
Path restrictions: All operations are restricted to the specified root directory
File size limits: Maximum 1MB for file reads
Optional read-only mode: Use
--readonlyflag to disable all write operations
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add some amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
๐ License
MIT License - see LICENSE for details.
Available Tools
9 toolscopy_fileB
Copy a file or directory
Inputs: source (required), destination (required).
create_directoryB
Create a new directory
Inputs: path (required).
delete_fileB
Delete a file or directory
Inputs: path (required), recursive.
get_file_infoB
Get detailed file metadata
Inputs: path (required).
list_directoryC
List files and directories with metadata
Inputs: path (required), show_hidden.
move_fileB
Move or rename a file or directory
Inputs: source (required), destination (required).
read_fileB
Read contents of a file
Inputs: path (required).
search_filesB
Search files by glob pattern
Inputs: pattern (required), path.
write_fileC
Create or write to a file
Inputs: path (required), content (required), append.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 9 tools
Each tool targets a distinct filesystem operation with no overlap, making selection unambiguous.
All tool names follow a consistent verb_noun pattern in snake_case, e.g., copy_file, create_directory.
9 tools cover essential filesystem operations without being excessive or insufficient.
The set covers CRUD for files and directories, listing, searching, metadata, and move/rename with no obvious gaps.
Maintenance
Related MCP Connectors
Safe folder access for ChatGPT and Claude: read, write and search files, risky tools opt-in.
Your own computer's files from ChatGPT or Claude: folder rules, confirmations and undo.
User-owned files and explicit AI Memories for authorized assistants with scoped access.
Files and tables your AI reads and writes from any chat, with version history and sharing.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to read, search, and analyze local file systems with tools for reading file contents, listing directories, searching by patterns, and analyzing folder structures for context-aware queries.MIT
- AlicenseNot gradedqualityDmaintenanceProvides secure filesystem access for AI assistants with optimizations like file reading limits and depth-limited traversal to improve token efficiency. It enables AI models to read, write, and search files within explicitly allowed directories while automatically skipping large system folders.4MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to perform file system operations within a specified project directory, including reading, writing, editing, and managing files, with optional read-only access to reference projects.417 PyPI49MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI models to securely read, write, and query metadata of local files through a controlled file system interface, with support for local and Azure deployment.-