.mcp.json

Filesystem MCP server

The official MCP server that reads and writes files inside the folders you name. Claude Code already reads project files, so this template is mostly for learning how a local MCP server is configured; to add another folder, /add-dir is usually enough.

Tested with Claude Code 2.1.329

Spots to fill

  • {{folder}}Folder the server may access (absolute path)e.g. /Users/you/notes
.mcp.json
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "{{folder}}"]
    }
  }
}

Notes

  • Needs Node.js for npx.
  • The server can only reach the folders listed in args; add more paths if you need them.

Related lessons

Type to search the reference, templates and lessons.