Files

v1.0.0File Systemsstable

Enables AI agents to safely explore directories, read files, search content by pattern or filename, and edit files with checksum verification and dry-run preview within sandboxed filesystem access.

files-mcp-servermcpai-integration
Share:
73
Stars
0
Downloads
0
Weekly
0/5

What is Files?

Files is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables ai agents to safely explore directories, read files, search content by pattern or filename, and edit files with checksum verification and dry-run preview within sandboxed filesystem access.

Enables AI agents to safely explore directories, read files, search content by pattern or filename, and edit files with checksum verification and dry-run preview within sandboxed filesystem access.

This server falls under the File Systems category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Enables AI agents to safely explore directories, read files,

Use Cases

Explore directories and read files safely with sandboxed access.
Search content by pattern or filename and edit files with verification.
iceener

Maintainer

LicenseISC License
Languagetypescript
Versionv1.0.0
UpdatedMay 13, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx files-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Files

Files MCP Server gives AI agents sandboxed access to your local filesystem, exposing four core tools for browsing directories, reading files, searching content by pattern or filename, and making verified file edits. It enforces safety through configurable root directory restrictions (FS_ROOTS), mandatory checksum verification before writes, and a dry-run mode that previews changes as a unified diff before applying them. Developers use it to let AI assistants explore codebases, find and refactor files, and automate file management tasks — all within a well-defined, auditable boundary.

Prerequisites

  • Bun runtime installed (bun.sh) for running the server from source
  • Node.js 18+ if using npx instead of bun
  • An MCP-compatible client such as Claude Desktop or Cursor
  • Local directories you want to expose to the AI agent
1

Clone the repository

Clone the files-mcp-server repository to your local machine and install dependencies using Bun.

git clone https://github.com/iceener/files-stdio-mcp-server.git
cd files-stdio-mcp-server
bun install
2

Create a .env configuration file

Create a .env file in the project root specifying which directories the agent is allowed to access. Multiple paths are separated by commas.

FS_ROOTS=/Users/you/projects,/Users/you/documents
LOG_LEVEL=info
3

Test the server locally

Run the server in development mode to verify it starts correctly before connecting to Claude Desktop.

bun dev
4

Configure Claude Desktop

Add the files MCP server to your Claude Desktop configuration. Point to the built server script and set FS_ROOTS in the env block.

{
  "mcpServers": {
    "files": {
      "command": "bun",
      "args": ["/absolute/path/to/files-stdio-mcp-server/src/index.ts"],
      "env": {
        "FS_ROOTS": "/Users/you/projects",
        "LOG_LEVEL": "info"
      }
    }
  }
}
5

Restart Claude Desktop and verify

Fully quit and relaunch Claude Desktop. Ask Claude to list the contents of your configured root directory to confirm the connection is working.

Files Examples

Client configuration

Claude Desktop configuration with FS_ROOTS pointing to a projects directory.

{
  "mcpServers": {
    "files": {
      "command": "bun",
      "args": ["/Users/you/files-stdio-mcp-server/src/index.ts"],
      "env": {
        "FS_ROOTS": "/Users/you/projects",
        "MAX_FILE_SIZE": "5242880"
      }
    }
  }
}

Prompts to try

Once connected, use these prompts to explore and edit files through Claude.

- "List all files in my projects directory and show me the folder structure"
- "Find all TypeScript files that import from 'react-router' in my project"
- "Read the contents of src/index.ts and suggest improvements"
- "Search for all TODO comments across the codebase"
- "Preview what would change if you rename the function 'fetchUser' to 'getUser' in all files"

Troubleshooting Files

Agent refuses to access a file outside the configured roots

This is intentional sandbox behavior. Add the required directory path to FS_ROOTS in your .env file or MCP config env block. Separate multiple paths with commas: FS_ROOTS=/path/one,/path/two.

File write fails with 'checksum mismatch'

The server requires reading a file before modifying it to ensure consistency. Use the fs_read tool to read the file first — this provides the checksum that must accompany the fs_write call.

Bun command not found when starting the server

Install Bun by running: curl -fsSL https://bun.sh/install | bash. After installation, restart your terminal and verify with 'bun --version'. Alternatively, use Node.js with 'npx ts-node src/index.ts'.

Frequently Asked Questions about Files

What is Files?

Files is a Model Context Protocol (MCP) server that enables ai agents to safely explore directories, read files, search content by pattern or filename, and edit files with checksum verification and dry-run preview within sandboxed filesystem access. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Files?

Follow the installation instructions on the Files GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Files?

Files works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Files free to use?

Yes, Files is open source and available under the ISC License license. You can use it freely in both personal and commercial projects.

Browse More File Systems MCP Servers

Explore all file systems servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "files-mcp-server": { "command": "npx", "args": ["-y", "files-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Files?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides