mcp-local-file-server
MCP Local File Server is a server for accessing and manipulating local files using MCP (Managed Control Panel).
The MCP Local File Server is designed to facilitate the management of local files through a web-based interface. It allows users to perform various file operations such as listing, reading, uploading, updating, and deleting files. The server is built using Node.js and can be easily set up by cloning the repository and installing the necessary dependencies. Once started, it runs on the local machine and provides a set of API endpoints to interact with the file system. This server is particularly useful for developers and system administrators who need to manage files on a local server or during development. However, due to its full access to the file system, it should be used with caution and only in trusted environments.
Features
- File Listing: Allows users to list all files in a specified directory.
- File Reading: Provides the ability to read the content of a specified file.
- File Upload: Supports uploading files using multipart/form-data.
- File Update: Enables updating the content of an existing file.
- File Deletion: Allows for the removal of files or directories.
Usage with Different Platforms
Node.js
javascript
// Listar arquivos
fetch('http://localhost:3000/files')
.then(response => response.json())
.then(files => console.log(files));
// Ler arquivo
fetch('http://localhost:3000/file?path=/caminho/do/arquivo.txt')
.then(response => response.json())
.then(data => console.log(data.content));
// Upload de arquivo
const formData = new FormData();
formData.append('file', arquivoParaUpload);
fetch('http://localhost:3000/file', {
method: 'POST',
body: formData
});
// Atualizar arquivo
fetch('http://localhost:3000/file', {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
path: '/caminho/do/arquivo.txt',
content: 'Novo conteúdo'
})
});
// Deletar arquivo
fetch('http://localhost:3000/file?path=/caminho/do/arquivo.txt', {
method: 'DELETE'
});
Related MCP Servers
View all file_systems servers →Filesystem MCP Server
by modelcontextprotocol
Node.js server implementing Model Context Protocol (MCP) for filesystem operations.
markdownify-mcp
by zcaceres
Markdownify is a Model Context Protocol (MCP) server that converts various file types and web content to Markdown format.
DesktopCommanderMCP
by wonderwhy-er
Desktop Commander MCP is a tool that allows users to search, update, manage files, and run terminal commands using AI, without incurring API token costs.
edgeone-pages-mcp
by TencentEdgeOne
An MCP service for deploying HTML content, folder, and zip file to EdgeOne Pages and obtaining a publicly accessible URL.
mcp-obsidian
by MarkusPfundstein
MCP server to interact with Obsidian via the Local REST API community plugin.
excel-mcp-server
by haris-musa
A Model Context Protocol (MCP) server that lets you manipulate Excel files without needing Microsoft Excel installed.
claude-code-mcp
by steipete
An MCP (Model Context Protocol) server that allows running Claude Code in one-shot mode with permissions bypassed automatically.