Skip to content
FeaturesPricingBlogDownload

← All posts

MCP filesystem server: let an AI assistant read your notes folder

The MCP filesystem server gives a desktop AI app tools to list and read files in folders you name. How to set it up for notes, read-only, and what it cannot do.

Diagram card on a light background showing an MCP filesystem server limited to a notes folder exposing read, list and search tools

The MCP filesystem server is a small program that runs on your computer and gives an AI app such as Claude Desktop a set of file tools, limited to the folders you list in its configuration: list a directory, read a file, search by file name and, unless you turn it off, write and edit. Point it at your notes folder and the assistant can answer questions from your notes without you pasting them in. For notes, the setting that matters most is --read-only, which removes every tool that could change a file.

This guide sets the server up for a notes folder, explains what each tool does, and covers the limits that affect how an assistant finds things in your notes. Details come from the server's README and the MCP guide to connecting local servers, both checked in November 2026.

What does the MCP filesystem server do?

MCP (Model Context Protocol) is a standard way for an AI app to call tools that live outside it. The filesystem server, published on npm as @modelcontextprotocol/server-filesystem, is one of the reference servers. The app starts it in the background, and the model can then call its tools during a conversation.

The server may touch only its allowed directories. The README recommends passing them on the command line, which it says works on every protocol version. Anything outside those folders is refused.

What do you need before setting it up?

  • An MCP client. Claude Desktop is the example in the MCP guide; it runs on macOS, Windows and Linux. VS Code and other clients also support MCP servers.
  • Node.js. The README says the server needs Node.js 24 or later when run through npx. Check with node --version.
  • A folder. Your notes folder, or better, the one subfolder you actually want the assistant to see.

Docker is an alternative to Node.js; the README has a Docker configuration that mounts folders under /projects, where a bind mount's ro flag makes a folder read-only.

How do you connect your notes folder in Claude Desktop?

  1. In Claude Desktop, open Settings… from the Claude menu in the system menu bar, not the settings inside the chat window.
  2. Choose the Developer tab and click Edit Config. This opens claude_desktop_config.json, creating it if needed. It lives at ~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on Windows and ~/.config/Claude/ on Linux.
  3. Add the server, with your notes folder as an absolute path:
{
  "mcpServers": {
    "notes": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "--read-only",
        "/Users/you/Notes"
      ]
    }
  }
}
  1. Quit Claude Desktop completely and start it again. The server only loads at startup.
  2. Ask something your notes can answer: "List the folders in my notes, then summarize the files in projects/launch/."

On Windows, the README's example uses "command": "cmd" with "/c", "npx" at the start of args, and paths such as C:\\Users\\you\\Notes. If the server does not appear, the MCP guide's first checks are the JSON syntax and that every path is absolute. Logs are in ~/Library/Logs/Claude on macOS and %APPDATA%\Claude\logs on Windows.

The notes key is only a label shown in the app. Several entries can point at different folders.

Which tools does it give the assistant?

Tool What it does Changes files
list_directory, list_directory_with_sizes Lists files and folders in one directory No
directory_tree Returns a recursive tree as JSON No
read_text_file Reads a file, optionally only the first or last lines No
read_multiple_files Reads several files in one call No
read_media_file Returns an image or audio file No
search_files Finds files and folders by name pattern No
get_file_info, list_allowed_directories Metadata; the allowed folders No
write_file, append_file, edit_file Creates, overwrites, appends to or edits a file Yes
create_directory, move_file, copy_file Creates folders; moves, renames or copies Yes

With --read-only, the README says, the server registers only the reading and listing tools, so the write tools are not listed at all and a call to one fails. The server enforces this regardless of what the client is configured to allow. To keep one folder protected while another stays writable, use --read-only-dir /Users/you/Notes/reference next to a writable folder instead.

The MCP guide adds that Claude Desktop asks for your approval before it runs a filesystem operation. It also gives the reason for keeping the path narrow: the server "runs with your user account permissions."

How does the assistant find the right note?

By names first, then by reading. This is the limit that shapes everything else. The README is explicit that search_files finds files "by name (a glob over their paths), not by content: it never reads or searches inside files." There is no full-text search tool.

So to answer "what did we decide about pricing?", the assistant has to guess from file and folder names which notes to open, then read them. In a folder of notes named meeting.md, meeting (2).md and notes-final.md, it cannot do that well. Three things help a great deal:

  • Descriptive file names. 2026-11-12-pricing-decision.md is found by a search for *pricing*.
  • An index file. An index.md at the top that lists each file with one line about it lets the assistant read one file and know where to go.
  • A summary at the top of each note. read_text_file can read just the first lines of a file (its head option), so a one-line summary or front matter lets the assistant triage many notes cheaply.

How to lay a folder out for this is covered in a folder structure AI agents can navigate. The README also notes that search_files and directory_tree stop at 100,000 entries, which matters if you point the server at a whole home folder instead of a notes folder.

Should you allow writing?

Start read-only. Most of what people want from their notes, answers, summaries, drafts in the chat, needs no write access. If you later want the assistant to file notes or fix links, give it a separate working folder rather than your whole notes tree, and put the notes in Git first so every change can be reviewed with git diff.

The README's advice for edit_file is to "always use dryRun first to preview changes before applying them." That is good advice for the person approving, too: ask for the change as a preview before you let it apply. AI agents that read and write your files covers review habits and why sync folders and writing agents do not mix well.

Do coding agents need the filesystem server?

Usually not. Claude Code and similar terminal agents already have their own tools for reading, searching and editing files in the folder you start them in, including full-text search. The filesystem server is mainly for chat apps that otherwise have no access to your disk. How to use a notes folder with Claude Code covers the agent route.

Pointing the server at a Noteline folder

Noteline, which we make, keeps every note as a plain .md file in the folder you open, so the path you give the filesystem server is simply that folder, with no export or vault format in between. If you allow writes and the assistant edits a note you have open in the desktop app, a bar offers Use disk version or Keep my version, and new files it creates appear in the sidebar. Noteline itself has no AI features and does not include an MCP server.

Start with one note. Keep the file.

Open a folder and write. Every note is a plain .md file, with no account to create.

Try desktop free for 14 days ↓Free on iPhone, iPad and Android →

Desktop: 14-day trial, then $9.99 once. Mobile apps: free. No account.

Keep reading

  • Local Markdown files
  • How to keep AI meeting notes as Markdown files you own
  • AI memory files: what your assistant should remember, kept in Markdown
  • An AI research workflow in Markdown: sources, summaries and claims

A Markdown note editor with everything you need

We’re listening

Tell us what you need or what gets in your way. If something isn’t working, write to us any time.

contact@noteline.io→

Product

  • Download
  • Pricing
  • Features
  • Changelog

Learn

  • Markdown syntax
  • Use cases
  • Blog

Compare

  • vs Obsidian
  • vs Notion

Support

  • Help
  • Support
  • Privacy
  • Terms

© 2026 Notelinecontact@noteline.io