Filesystem MCP

Secure file system operations with path restrictions and safety checks

By ModelContextProtocolMIT
View Repositorynpm install @modelcontextprotocol/server-filesystem

Features

Read/write files with path restrictions
Directory traversal protection
File watching capabilities
Cross-platform support

Use Cases

Code file analysisConfiguration managementDocumentation generationBatch file operations

Installation

NPM Package
npm install @modelcontextprotocol/server-filesystem

Supported Models

Claude 3.5 SonnetClaude 3 HaikuGPT-4

Configuration Example

{
  "mcpServers": {
    "filesystem": {
      "command": "@modelcontextprotocol/server-filesystem",
      "env": {
        // Add your environment variables here
      }
    }
  }
}