dvirshasha1/mcp-filesystem-server
3.1
If you are the rightful owner of mcp-filesystem-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
A Model Context Protocol (MCP) server designed for filesystem operations.
Tools
5
Resources
0
Prompts
0
mcp-filesystem-server
A Model Context Protocol (MCP) server for filesystem operations.
Available Makefile Commands
make init— Create a Python virtual environment and install all dependencies.make install— Install Python dependencies into the existing virtual environment.make run— Run the MCP server (ensure the virtual environment is activated).make test— Run all unit tests.
Available Tools (Handlers)
open_file— Open and read the contents of a file. Expects{ "path": "relative/path/to/file.txt" }.list_allowed_dir— List files and directories in the allowed root. Expects{}.read_file— Read a portion of a file. Expects{ "path": "...", "offset": int, "length": int }.edit_file— Edit or replace part/all of a file. Expects{ "path": "...", "content": "...", "offset": int (optional) }.make_dir— Create a new directory. Expects{ "path": "relative/path/to/newdir" }.
Quick Start
- Initialize the environment:
make init - Run the server:
make run - Run tests:
make test
Requirements
- Python 3.8+
- GNU Make
Project Structure
src/mcp_server/— Server implementation and handlerstests/— Unit testsrequirements.txt— Python dependenciesMakefile— Automation commands