A local MCP server that reads and writes files over stdio. Every path must stay inside the directories you pass on the command line.
Requires Python 3.10 or newer and uv.
Each argument is an allowed directory. It must already exist.
uv run filesystem-mcp /absolute/path/you/allowThe process stays quiet. It waits for a client on stdin. Stop it with Ctrl-C.
To try it in the MCP Inspector, from a second terminal:
npx @modelcontextprotocol/inspector --cwd . -- uv run filesystem-mcp /absolute/path/you/allowlist_allowed_directorieslist_directoryread_text_filewrite_file
Text files must be valid UTF-8 and at most 1 MiB. write_file overwrites an existing file and does not create parent directories.
uv run pytest