π
LincolnBurrows2017/filesystem-mcp
Model Context Protocol server for file system operations. Supports read, write, search, copy, move with security path restrictions.
0 installs
Trust: 34 β Low
Search
Ask AI about LincolnBurrows2017/filesystem-mcp
Powered by Claude Β· Grounded in docs
I know everything about LincolnBurrows2017/filesystem-mcp. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
π 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
π¦ 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 --readonly
Claude 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_file | Read contents of a file | β |
list_directory | List files in a directory | β |
write_file | Create or write to a file | β |
delete_file | Delete a file or directory | β |
create_directory | Create a new directory | β |
search_files | Search files by glob pattern | β |
get_file_info | Get file metadata | β |
copy_file | Copy a file or directory | β |
move_file | 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.
