loading…
Search for a command to run...
loading…
Model Context Protocol server for file system operations. Supports read, write, search, copy, move with security path restrictions.
Model Context Protocol server for file system operations. Supports read, write, search, copy, move with security path restrictions.
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.
pip install filesystem-mcp
# 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
Add to your claude_desktop_config.json:
{
"mcpServers": {
"filesystem": {
"command": "filesystem-mcp",
"args": ["--directory", "/path/to/your/project"]
}
}
}
Add to Cursor settings (MCP configuration):
{
"mcpServers": {
"filesystem": {
"command": "filesystem-mcp",
"args": ["--directory", "/path/to/your/project"]
}
}
}
| 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 | ✅ |
from filesystem_mcp import FileSystemServer
# Create server instance
server = FileSystemServer(root_directory="/path/to/project")
# Run the server
server.run()
--readonly flag to disable all write operationsContributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)MIT License - see LICENSE for details.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"lincolnburrows2017-filesystem-mcp": {
"command": "npx",
"args": []
}
}
}