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.
相关推荐
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Converts Figma frames into front-end code for various mobile frameworks.
Advanced software engineer GPT that excels through nailing the basics.
Therapist adept at identifying core issues and offering practical advice with images.
Take an adjectivised noun, and create images making it progressively more adjective!
Discover the most comprehensive and up-to-date collection of MCP servers in the market. This repository serves as a centralized hub, offering an extensive catalog of open-source and proprietary MCP servers, complete with features, documentation links, and contributors.
Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx
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/agentience/practices_mcp_server
Mirror ofhttps://github.com/bitrefill/bitrefill-mcp-server
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