Filesystem MCP Server

Read and write local files from Claude and any MCP-compatible AI agent

By Anthropic (official) ★ 8.2K stars official files local

The Filesystem MCP Server is the most widely-used Model Context Protocol server. It gives Claude Desktop, Cursor, and other MCP hosts secure, sandboxed access to your local file system — letting AI assistants read files, write code, and manage directories without leaving your machine.

Installation & Configuration

Add this block to your claude_desktop_config.json (or your agent framework's MCP config file):

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/dir"]
    }
  }
}

Config file location:

Available Tools (7)

Use Cases

Source & Documentation

GitHub Repository: https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem

Protocol: Model Context Protocol (MCP) — modelcontextprotocol.io

← Back to MCP Server Directory