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
Authentication

Authentication requirements and methods

Authentication Method

API Key

Examples

Reading a Text File

Read the contents of a text file from a specified path

javascript

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

Write data to a JSON file

javascript

const data = { name: 'Example', value: 42 };
await mcp.invoke('filesystem', {
  operation: 'write',
  path: '/path/to/data.json',
  content: JSON.stringify(data, null, 2),
  encoding: 'utf-8'
});
Server Information

Author

MCP Core Team

Version

1.2.0

Last Updated

12/15/2023

Status

Verified

Pricing

Free
Free Tier

Open source and free to use

Authentication

API Key

Tags

files
storage
io
system