MCP.so
Sign In

MCP File Server

@abhishekloiwal

Basic information

Category

Other

Transports

stdio

Author

abhishekloiwal

About MCP File Server

MCP server for reading and writing local files

#mcp-file-server#file-access#docker

MCP File Server config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "mcp-file-server-abhishekloiwal": {
      "command": "docker",
      "args": [
        "build",
        "-t",
        "mcp-file-server",
        "."
      ]
    }
  }
}

MCP File Server tools

4

List all files in a directory

Read the contents of a file

Write content to a file

Delete a file or directory

Overview

What is MCP File Server?

A Docker-based MCP server that allows AI assistants like Claude for Desktop to read and write files from your local file system through a set of file operation tools.

How to use MCP File Server?

Deploy using Docker Compose or direct Docker commands with a local directory volume-mounted, then configure Claude for Desktop's claude_desktop_config.json to connect via docker exec.

Key features of MCP File Server

  • List files and directories
  • Read file contents
  • Write content to files
  • Delete files and directories
  • Docker-based deployment with volume mounts

Use cases of MCP File Server

  • Allow an AI assistant to browse and analyze local project files
  • Let an AI assistant read, write, or delete files in a workspace directory
  • Provide controlled file system access to MCP-compatible clients

Frequently asked questions

1

What are the prerequisites for MCP File Server?

Docker must be installed on your system. Git is optional for cloning the repository.

2

How do I connect MCP File Server to Claude for Desktop?

Edit `claude_desktop_config.json` (located at `~/Library/Application Support/Claude/` on Mac or `%AppData%\Claude\` on Windows) and add the server entry using the `docker exec` command.

3

What tools does MCP File Server provide?

Four tools: `list_files`, `read_file`, `write_file`, and `delete_file`.

4

How can I troubleshoot connection issues?

Check the Docker container status with `docker ps -a | grep mcp-file-server`, view logs with `docker logs mcp-file-server`, and verify the volume mount with `docker inspect mcp-file-server | grep -A 10 Mounts`.

5

Where are files stored?

Files are stored on the host machine at the local directory path that is volume-mounted to `/data` inside the container.

Comments

More Other MCP servers