Skip to main 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

Option 1: Using Docker Compose (Recommended)

  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
    

Metadata

Release files for iflow-mcp_abhishekloiwal_mcp-file-server 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_abhishekloiwal_mcp-file-server 0.1.1
File Size Uploaded
iflow_mcp_abhishekloiwal_mcp_file_server-0.1.1.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_abhishekloiwal_mcp-file-server 0.1.1
File Interpreter ABI Platform
iflow_mcp_abhishekloiwal_mcp_file_server-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.3 kB

Release files / iflow_mcp_abhishekloiwal_mcp_file_server-0.1.1.tar.gz

Download URL iflow_mcp_abhishekloiwal_mcp_file_server-0.1.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8ca4b5dd4298ac61ee233eb7420e23dda3f85528b231749369306aa22a1f2844
BLAKE2b-256 checksum
How to use checksums
9990f2e7ceb32df74656739645ab3407fa4ebdb1ecc62b04f42b7c0016c1f996
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_abhishekloiwal_mcp_file_server-0.1.1-py3-none-any.whl

Download URL iflow_mcp_abhishekloiwal_mcp_file_server-0.1.1-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0c27ab16f1ff5188893fb6308f7b62fda4ad08638061f12395a7574ec4a6d46
BLAKE2b-256 checksum
How to use checksums
3e6932178704c69510d5e5850e095cae0a209f0b80c4df1934a131c72430c264
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page