MCP.so
登录

MCP File Server

@abhishekloiwal

基本信息

分类

其他

传输方式

stdio

作者

abhishekloiwal

关于 MCP File Server

MCP server for reading and writing local files

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

MCP File Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

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

MCP File Server 工具

4

List all files in a directory

Read the contents of a file

Write content to a file

Delete a file or directory

概览

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

常见问题

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.

评论

其他 分类下的更多 MCP 服务器