SuperAPI AI Directory

filesystem-mcp

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

Open website

About this tool

filesystem-mcp is a Model Context Protocol (MCP) server for filesystem operations. It enables AI assistants such as Claude and Cursor to read, write, and manage files on the local system.

Purpose

The main purpose of this project is to provide AI assistants with controlled access to the local filesystem, allowing them to perform common file management tasks such as reading file contents, browsing directories, creating or updating files, deleting files and directories, searching for files by Glob patterns, retrieving file metadata, and creating, copying, and moving directories.

Main Capabilities

According to the project description, filesystem-mcp provides the following tool capabilities:

  • Read files: read file contents, with a size limit.
  • List directories: view files and their metadata (size, type).
  • Write files: create and update files.
  • Delete files: remove files and directories.
  • Search files: match using Glob patterns.
  • File info: retrieve detailed metadata.
  • Directory operations: create, copy, and move directories.

Usage

This project needs to be configured in an MCP-compatible client. The materials mention that the configuration can be added to claude_desktop_config.json, or added to Cursor's settings (MCP configuration). The specific configuration examples and command contents are not fully shown in the provided materials, so detailed steps are not provided here for now.

Applicable Scenarios

Suitable for scenarios that require an AI assistant to safely operate on local files, such as in AI programming, document processing, or automation tasks, allowing the AI to read project files, write output content, search for specific files, or manage directory structures.

Limitations

  • Path restriction: all operations are restricted to within the specified root directory.
  • File size limit: the maximum size for reading a file is 1MB.
  • Optional read-only mode: all write operations can be disabled via the --readonly flag.

Other Information

Contributions to the project are welcome; Pull Requests can be submitted. It uses the MIT license.