I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

mcp-local-file-server
Servidor para acessar e manipular arquivos locais usando MCP
3 years
Works with Finder
1
Github Watches
1
Github Forks
0
Github Stars
MCP Local File Server
Servidor para acessar e manipular arquivos locais usando MCP (Managed Control Panel).
Instalação
- Clone o repositório:
git clone https://github.com/fmorus/mcp-local-file-server.git
cd mcp-local-file-server
- Instale as dependências:
npm install
- Inicie o servidor:
npm start
O servidor estará rodando em http://localhost:3000
API Endpoints
Listar Arquivos
-
GET
/files?dir={diretório}
- Lista todos os arquivos em um diretório
- O parâmetro
dir
é opcional (padrão: diretório atual)
Ler Arquivo
-
GET
/file?path={caminho_do_arquivo}
- Lê o conteúdo de um arquivo
Upload de Arquivo
-
POST
/file
- Faz upload de um arquivo
- Use
multipart/form-data
com o campofile
Atualizar Arquivo
-
PUT
/file
- Atualiza o conteúdo de um arquivo
- Body:
{ "path": "caminho_do_arquivo", "content": "novo_conteudo" }
Deletar Arquivo
-
DELETE
/file?path={caminho_do_arquivo}
- Remove um arquivo ou diretório
Exemplo de Uso
// 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'
});
Segurança
⚠️ Atenção: Este servidor tem acesso total aos arquivos do sistema. Use com cautela e apenas em ambientes confiáveis.
相关推荐
Converts Figma frames into front-end code for various mobile frameworks.
I find academic articles and books for research and literature reviews.
Confidential guide on numerology and astrology, based of GG33 Public information
Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.
A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.
Mirror ofhttps://github.com/suhail-ak-s/mcp-typesense-server
本项目是一个钉钉MCP(Message Connector Protocol)服务,提供了与钉钉企业应用交互的API接口。项目基于Go语言开发,支持员工信息查询和消息发送等功能。
Short and sweet example MCP server / client implementation for Tools, Resources and Prompts.
Reviews

user_h4TQke2d
As a devoted MCP application user, I highly recommend mysql-mcp-server by MCP-Mirror. This server offers excellent performance and stability for database management. The seamless integration and easy-to-navigate interface make it a top choice for developers. For more details, visit: https://mcp.so/server/Mineru98_mysql-mcp-server/MCP-Mirror