Data as of

MCP Filesystem Server for Cursor: Setup & Config

MCP Filesystem Server gives Cursor file and directory operations within explicitly allowed paths.

What you can do with MCP Filesystem in Cursor

Scoped local file operations, content search, and directory trees in a Go binary or library.

  • Apply literal or regex text replacements.
  • Generate directory trees and inspect file metadata.

Before you start: MCP Filesystem in Cursor

  • Go for the documented go install method
  • Install github.com/mark3labs/mcp-filesystem-server@latest
  • Allowed directories supplied at launch

Replace the example allowed paths. The README also documents Docker and embedding the filesystemserver package in Go applications.

MCP Filesystem Cursor configuration

  1. Choose Cursor configuration scope

    For MCP Filesystem Server, open Project: .cursor/mcp.json User: ~/.cursor/mcp.json. Merge into mcpServers at project or user scope.

  2. Add MCP Filesystem Server to Cursor

    Use the mcp-filesystem-server entry below in mcpServers. Keep MCP Filesystem Server's documented stdio connection fields and your other Cursor entries.

  3. Check MCP Filesystem Server in Cursor

    MCP Filesystem Server: Enable in Cursor’s MCP settings; inspect tools.

Config file · Project: .cursor/mcp.json

User: ~/.cursor/mcp.json

JSON
{
  "mcpServers": {
    "mcp-filesystem-server": {
      "command": "mcp-filesystem-server",
      "args": [
        "/path/to/allowed/directory",
        "/another/allowed/directory"
      ],
      "env": {}
    }
  }
}

MCP Filesystem tools available to Cursor

MCP Filesystem's stored tool list documents 14 tools; compare it with Cursor's connected tool list, because the stored list is not a live check.

read_file

Find read_file under MCP Filesystem in Cursor's MCP settings; inspect its arguments when the agent requests a call.

read_multiple_files

Find read_multiple_files under MCP Filesystem in Cursor's MCP settings; inspect its arguments when the agent requests a call.

write_file

Find write_file under MCP Filesystem in Cursor's MCP settings; inspect its arguments when the agent requests a call.

copy_file

Find copy_file under MCP Filesystem in Cursor's MCP settings; inspect its arguments when the agent requests a call.

move_file

Find move_file under MCP Filesystem in Cursor's MCP settings; inspect its arguments when the agent requests a call.

delete_file

Find delete_file under MCP Filesystem in Cursor's MCP settings; inspect its arguments when the agent requests a call.

modify_file

Find modify_file under MCP Filesystem in Cursor's MCP settings; inspect its arguments when the agent requests a call.

list_directory

Find list_directory under MCP Filesystem in Cursor's MCP settings; inspect its arguments when the agent requests a call.

List entries within a directory.

create_directory

Find create_directory under MCP Filesystem in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Create a directory or ensure it exists.

tree

Find tree under MCP Filesystem in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Return a nested JSON directory tree with depth controls.

search_files

Find search_files under MCP Filesystem in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Find files and directories whose names match a pattern.

search_within_files

Find search_within_files under MCP Filesystem in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Find text inside files across a directory tree.

get_file_info

Find get_file_info under MCP Filesystem in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Inspect metadata for a file or directory.

list_allowed_directories

Find list_allowed_directories under MCP Filesystem in Cursor's MCP settings; inspect its arguments when the agent requests a call.

Report the directories the server may access.

MCP Filesystem: full stored tool descriptions

Troubleshooting MCP Filesystem in Cursor

  • Cursor must find mcp-filesystem-server for MCP Filesystem Server. Enable the project/user entry in MCP settings and inspect its tools.
  • MCP Filesystem Server uses stdio here: Cursor must keep the configured process running; protocol output belongs on stdout and diagnostics on stderr.
  • Known limitation: The tool set includes overwriting and deletion, not only reads.
  • Known limitation: Docker needs a volume mount to modify host files.
  • General Cursor troubleshooting lives in the /clients/cursor guide.

MCP Filesystem Server — details. Cursor guide

Frequently asked questions

Cursor's MCP Filesystem Server entry belongs under mcpServers in .cursor/mcp.json (project) or ~/.cursor/mcp.json (user). Confirm the active scope in MCP settings.