Filesystem MCP

Communauté Recherche et web

File system operations: read, write, search, copy and move, with path restrictions.

Que pouvez-vous faire avec Filesystem MCP ?

  • 📖 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

Les étapes d'installation sont dans la documentation ci-dessous. Documentation

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. 📂 filesystem-mcp
  2. 🚀 Features
  3. 📦 Installation
  4. 🔧 Usage
  5. 🛠️ Available Tools
  6. 📝 Example
  7. 🔐 Security
  8. 🤝 Contributing
  9. 📄 License

📂 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

ToolDescriptionWrite
read_fileRead contents of a file❌
list_directoryList files in a directory❌
write_fileCreate or write to a file✅
delete_fileDelete a file or directory✅
create_directoryCreate a new directory✅
search_filesSearch files by glob pattern❌
get_file_infoGet file metadata❌
copy_fileCopy a file or directory✅
move_fileMove 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 --readonly flag to disable all write operations

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

MIT License - see LICENSE for details.

Questions fréquentes

Qu'est-ce que Filesystem MCP ?

File system operations: read, write, search, copy and move, with path restrictions.

Comment installer Filesystem MCP ?

Suivez les étapes d'installation de sa documentation, affichée sur cette page et dans son dépôt.

Filesystem MCP est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient Filesystem MCP ?

Il est publié par LincolnBurrows2017. AI.tn le référence sans le maintenir ni le recommander.

Issu des listes communautaires awesome-mcp-servers et du dépôt GitHub du projet. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.