mcp-filesystem-server
315
The MCP Filesystem Server provides secure file system operations via the Model Context Protocol. It features directory access, file manipulation tools, and supports integrations with Docker and Go projects.
MCP Filesystem Server
This MCP server provides secure access to the local filesystem through the Model Context Protocol (MCP).
Features
- Secure access to specified directories
- Path validation to prevent directory traversal attacks
- Symlink resolution with security checks
- MIME type detection
- Support for text, binary, and image files
- Size limits for inline content and base64 encoding
Components
Tools
File Operations
- read and write files
- copy and move files
- delete files
Directory Operations
- list and create directories
- view directory trees
Search and Information
- search for files and directories
- retrieve file metadata
Getting Started
Installation
Use Go install to add the server to your project.
Usage
Run the server standalone with specified directories, or integrate it into Go projects.
Docker
Run the server using Docker with preferred configurations.