Filesystem MCP Server logo

Filesystem MCP Server

by mark3labs

The Filesystem MCP Server is a Go server that implements the Model Context Protocol (MCP) for performing filesystem operations. It allows reading, writing, creating, listing, deleting, moving, and searching files and directories within specified directories.

View on GitHub

Last updated: N/A

What is Filesystem MCP Server?

A Go server implementing the Model Context Protocol (MCP) to provide controlled access and manipulation of the filesystem.

How to use Filesystem MCP Server?

Install the server using go install github.com/mark3labs/mcp-filesystem-server. Then, configure your claude_desktop_config.json to include the server with the command and allowed directories in the args array.

Key features of Filesystem MCP Server

  • Read/write files

  • Create/list/delete directories

  • Move files/directories

  • Search files

  • Get file metadata

  • Restricted access to specified directories

Use cases of Filesystem MCP Server

  • Allowing AI models to read and write files in a controlled environment

  • Providing a secure interface for file manipulation

  • Integrating file system access into AI workflows

  • Managing files within a specific context

FAQ from Filesystem MCP Server

What is Model Context Protocol (MCP)?

MCP is a protocol for enabling communication and data exchange between different components, in this case, between an AI model and a filesystem server.

How do I specify which directories the server can access?

You specify the allowed directories using the args array in the claude_desktop_config.json file.

What happens if I try to access a file outside of the allowed directories?

The server will not allow operations outside the directories specified via args.

Can I use this server with other applications besides Claude Desktop?

While the README specifically mentions Claude Desktop, the server can potentially be used with other applications that support the Model Context Protocol.

What kind of file metadata can I retrieve?

You can retrieve the size, creation time, modified time, access time, type (file/directory), and permissions of a file or directory.