MCP server

Filesystem

Secure local file operations with configurable directory access

Reference MCP server for reading, writing, editing, moving and searching files within allowed directories. Access is restricted to directories passed as arguments or provided via MCP Roots.

Connect

  1. 1Add the server to Codex
    codex mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/dir

Configs are generated from the publisher's documented endpoint. Check their docs for plan requirements and scopes. New to this? Read the step-by-step tutorial.

Tools 12

read_text_fileread_media_fileread_multiple_fileswrite_fileedit_filecreate_directorylist_directorylist_directory_with_sizesmove_filesearch_filesdirectory_treeget_file_info

Things to ask

  • “List the files in my Desktop folder”
  • “Find all markdown files mentioning 'roadmap'”
  • “Create a notes.txt file with today's meeting summary”
  • “Show me the directory tree of my project”

Related