Sponsored by Deepsite.site

MCP File Server

Created By
abhishekloiwal8 months ago
MCP server for reading and writing local files
Content

MCP File Server

An MCP server for reading and writing files from your local file system. This server can be used with Claude for Desktop or any other MCP client to provide file system access for AI assistants.

Features

  • List files and directories
  • Read file contents
  • Write content to files
  • Delete files and directories

Prerequisites

  • Docker installed on your system
  • Git (optional, for cloning the repository)

Setup and Deployment

  1. Clone this repository:

    git clone https://github.com/abhishekloiwal/mcp-file-server.git
    cd mcp-file-server
    
  2. Edit the docker-compose.yml file to update the volume mount path if needed. By default, it's set to:

    volumes:
      - /Users/abhishekloiwal/CascadeProjects/ClaudeProjects:/data
    

    Replace with your desired local path if different.

  3. Deploy with Docker Compose:

    docker-compose up -d
    

Option 2: Using Docker directly

  1. Clone the repository:

    git clone https://github.com/abhishekloiwal/mcp-file-server.git
    cd mcp-file-server
    
  2. Build the Docker image:

    docker build -t mcp-file-server .
    
  3. Run the container with your local directory mounted:

    docker run -d --name mcp-file-server -v /Users/abhishekloiwal/CascadeProjects/ClaudeProjects:/data mcp-file-server
    

    Replace the path with your desired local directory path.

Connecting to Claude for Desktop

  1. Create or update your Claude for Desktop configuration file at:

    • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %AppData%\Claude\claude_desktop_config.json
  2. Add the mcp-file-server to your configuration:

    {
      "mcpServers": {
        "file-server": {
          "command": "docker",
          "args": ["exec", "-i", "mcp-file-server", "python", "server.py"]
        }
      }
    }
    
  3. Restart Claude for Desktop.

  4. You should now see the file-server tools available in Claude.

Available Tools

The following tools are available through this MCP server:

  • list_files: List all files in a directory
  • read_file: Read the contents of a file
  • write_file: Write content to a file
  • delete_file: Delete a file or directory

License

MIT

Troubleshooting

  • If Claude for Desktop doesn't connect to the server, check the Docker container status:

    docker ps -a | grep mcp-file-server
    
  • View server logs:

    docker logs mcp-file-server
    
  • Make sure the volume is correctly mounted:

    docker inspect mcp-file-server | grep -A 10 Mounts
    
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
CursorThe AI Code Editor
Tavily Mcp
WindsurfThe new purpose-built IDE to harness magic
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
DeepChatYour AI Partner on Desktop
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Playwright McpPlaywright MCP server
Serper MCP ServerA Serper MCP Server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
ChatWiseThe second fastest AI chatbot™
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Amap Maps高德地图官方 MCP Server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.