Skip to content

MCP server · Reference servers

Filesystem MCP server

Reference MCP server that gives an agent scoped read and write access to a directory on the local filesystem.

Official
npm package (runs locally)

Verified · editorial policy

Filesystem MCP server TL;DR

TL;DR
Server
Filesystem MCP server
Vendor
Anthropic (reference)
Category
Reference servers
Distribution
npm package (runs locally)
TL;DR
The Filesystem reference server is one of the canonical MCP examples published by Anthropic. It exposes a sandboxed read and write surface scoped to a directory you pass at startup, so an agent can browse, read, edit, and create files inside that root without ever leaving the sandbox. The right baseline server for any local agent workflow.
Founder fit
If you are pair-programming with Claude on the codebase of your indie SaaS, this is the first MCP server you install. It lets the assistant read and write files in the project root without asking you to copy-paste, while keeping anything outside the chosen root off-limits.
Last verified
May 22, 2026

What an agent can do with it

Read files

Read text or binary file contents anywhere inside the sandboxed root.

Write and edit files

Create new files, overwrite existing files, or apply targeted edits.

Browse directories

List contents, search, and follow the tree without leaving the sandbox.

Why an indie SaaS founder cares

If you are pair-programming with Claude on the codebase of your indie SaaS, this is the first MCP server you install. It lets the assistant read and write files in the project root without asking you to copy-paste, while keeping anything outside the chosen root off-limits.

Install

Access: Local, free, sandboxed to the directory you pass at startup.

Claude Desktop

Add the following block to your claude_desktop_config.json and restart Claude:

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem"]
    }
  }
}

Cursor

Add the following block to .cursor/mcp.json in your home directory or project root:

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem"]
    }
  }
}

Install snippets are derived from the vendor's published distribution shape. If your client is neither Claude Desktop nor Cursor, see the vendor docs for client-specific configuration.

Filesystem MCP server – FAQ

Can the server access files outside the directory I configure?

No – the sandbox root is enforced. Paths outside it are rejected.

Does the server require a network connection?

No. Filesystem MCP is local-only.

How do I install it in Claude Desktop?

Add an mcpServers entry that runs `npx -y @modelcontextprotocol/server-filesystem /absolute/path/to/your/sandbox` and restart Claude.

Git MCP server

Reference MCP server that lets an agent run common git operations against a local repository.

Memory MCP server

Reference MCP server that gives an agent a persistent key-value knowledge graph it can read and write across sessions.

Fetch MCP server

Reference MCP server that lets an agent fetch a URL and convert the response to a representation suited to the model.

Want an agent that knows your SaaS offer?

Install the UnlockSaaS MCP server alongside this one and the assistant can diagnose your live landing page, pull funnel and pricing teardowns of competitors, and walk the Brunson Playbook with you.

Browse more

Browse every MCP server

🚀 Explore Our Network

Full disclosure: UnlockSaaS is one of ten small products built and run by one independent operator. These are the other nine.

60 days
To First Paying Customer
7 steps
Proven Playbook
100%
Money-Back Guarantee
$49
Founding Price /mo

You shipped. Nobody paid. The playbook breaks the pattern or the code refunds you automatically.

Get Free Diagnosis

Refund runs from your dashboard, not a support ticket — the server re-checks eligibility and issues it through Stripe automatically.