About
Overview
The Filesystem MCP Server provides comprehensive file system operations through the Model Context Protocol. It supports reading, writing, creating, deleting, and searching files and directories. Built with security in mind, it implements sandboxed access to prevent unauthorized file system access outside designated directories.
Capabilities
Tools & Capabilities
⚡read_file
Read the contents of a file at a given path
⚡write_file
Write content to a file, creating it if needed
⚡list_directory
List files and directories at a given path
⚡search_files
Search for files matching a pattern
⚡create_directory
Create a new directory
Setup
Installation
bash
Install
npm install @modelcontextprotocol/server-filesystemExamples
Example Usage
javascript
Usage
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { FileSystemTools } from "@modelcontextprotocol/server-filesystem";
const server = new McpServer({ name: "fs-server" });
const fs = new FileSystemTools({ allowedPaths: ["/home/user/projects"] });
server.tool("read_file", fs.readFile);
server.tool("write_file", fs.writeFile);Quick Info
AuthorAnthropic
LanguageTypeScript
StatusStable
Stars★ 2450
Last UpdatedFeb 12, 2026
Related Servers
development
GitHub MCP Server
Manage repositories, issues, pull requests, and code through GitHub's API via MCP tools.