Filesystem

Storage
System

Access and manipulate the local file system through a controlled API.

4.8 (5,200 ratings)
869,000 downloads
120,000 usage count
Documentation

Overview

The Filesystem MCP Server provides a secure and controlled API that allows AI models to interact with the local file system. Through this server, models can read, write, and manage files while ensuring security and privacy protection. All file operations are performed within specific permission boundaries to prevent unauthorized access to sensitive data.

Features

  • Secure file reading and writing
  • Directory navigation and management
  • File metadata access
  • Permission-controlled operations
  • Multiple encoding support

API Guide

API Overview

Available endpoints and interactions

Endpoints 1

  • /api/filesystem/read
  • /api/filesystem/write
  • /api/filesystem/delete
  • /api/filesystem/list
File Operations

Basic file read, write and management operations

File Operations 1

  • fs_readRead file content
  • fs_writeWrite content to file
  • fs_appendAppend content to existing file
  • fs_deleteDelete a file

File Operations 2

  • fs_existsCheck if file exists
  • fs_statsGet file metadata and stats
  • fs_copyCopy a file to another location
Directory Operations

Directory management and navigation functions

Directory Operations 1

  • dir_listList directory contents
  • dir_createCreate a new directory
  • dir_removeDelete a directory

Directory Operations 2

  • dir_existsCheck if directory exists
  • dir_currentGet current working directory
  • dir_changeChange current directory
Path Utilities

Path manipulation and information utilities

Path Utilities 1

  • path_joinJoin path segments
  • path_resolveResolve to absolute path
  • path_dirnameGet directory portion of path

Path Utilities 2

  • path_basenameGet base name of file
  • path_extensionGet file extension
Usage Example

How to use this server

javascript

const response = await mcp.invoke('filesystem', {
  operation: 'read',
  path: '/path/to/file.txt',
  encoding: 'utf-8'
});
console.log(response.content);

Usage Statistics

Response Time

45.2 ms

Average latency

Throughput

1250 req/s

Maximum capacity

Uptime

99.9%

Service reliability

Provided by
M

MCP Foundation

Visit website
Tags
files
storage
io
system