FIELD NOTE / MCP SERVER

Filesystem.

Expose selected local files and folders to an MCP client.

DataMCP projectSource checked 9 Nov 2026
01 / FIT

When it earns a place.

An agent should work within a specific local directory rather than the whole machine.

02 / SETUP

How to start.

Start `npx -y @modelcontextprotocol/server-filesystem --confine-roots /path/to/allowed/files` from your client's MCP configuration. Add `--read-only` when writes are not needed.

Open the original instructions
03 / COMPATIBILITY

What it needs.

Local stdio server for clients that can launch Node.js 24 or newer.

04 / WATCH FOR

Before you connect it.

Legacy clients can replace command-line directories through Roots unless --confine-roots is set. Choose narrow directories, review write access, and use OS-level protection where needed.

Compare this field note with other tools ↗ · Choose 2–4 entries in the local workbench.

Privacy