# file-mcp [Health: Active]

**Category:** 📂 File Systems  
**Repository:** https://github.com/anhnv02/file-mcp  
**GitHub Stars:** 11  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/file-mcp

## Description
Open-source local MCP server for ChatGPT, Claude and Meta Muse AI. Connect local files, code, Git and terminal tools on macOS and Windows via secure MCP tunnels.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/anhnv02/file-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/anhnv02/file-mcp.git
```

2. Install:

```sh
cd file-mcp
```

3. Install:

```sh
./build_macos_app.sh
```

4. Start the server:

```sh
open dist/FileMCP.app
```

5. Install:

```sh
./build_windows_app.ps1 -Architecture x64
```

## Documentation

## What file-mcp does

file-mcp is a native desktop application for macOS and Windows that exposes a selected local folder to MCP-compatible AI assistants. Its tools can list, read, write, search, and delete workspace files; inspect repositories; apply edits; and perform Git operations. Optional terminal tools let an assistant run shell commands and manage command sessions.

The workspace is selected inside the application rather than supplied as an unrestricted filesystem root. File operations are checked against that workspace, including checks for symlinks and Windows reparse points. Git features require Git to be installed, and additional permissions can be enabled separately for shell execution, Git pushing, and Codex history access.

## How it works

The MCP service binds to `127.0.0.1` on the host computer. For remote assistants, file-mcp can create an outbound connection through OpenAI Secure MCP Tunnel on macOS or Windows. On macOS, Cloudflare Tunnel is also available for Claude, Meta Muse AI, and other remote MCP clients. The Cloudflare setup exposes an HTTPS MCP endpoint and uses OAuth with PKCE, expiring access tokens, and rotating refresh tokens.

The application must remain running while the client uses the connection. A connection can be stopped from the application with **Disconnect**. Request sizes, search results, process output, and command execution time are bounded.

## Setup and configuration

macOS requires version 12 or later and Xcode Command Line Tools. Build the application from the repository with:

```bash
git clone https://github.com/anhnv02/file-mcp.git
cd file-mcp
./build_macos_app.sh
open dist/FileMCP.app
```

Windows requires Windows 10 or 11 and the .NET 8 SDK. The Windows build script accepts `x64` or `arm64` architecture targets:

```powershell
git clone https://github.com/anhnv02/file-mcp.git
cd file-mcp
./build_windows_app.ps1 -Architecture x64
```

After launching, choose the workspace, select a connection provider, and click **Connect**. OpenAI Secure MCP Tunnel requires a tunnel ID and a restricted Platform runtime API key with tunnel read and use permissions. Cloudflare Tunnel requires `cloudflared`, a configured tunnel and hostname, and routing to the local MCP port; its default is `127.0.0.1:8008`.

For ChatGPT, configure the custom MCP server using the OpenAI tunnel or Cloudflare HTTPS endpoint. Claude and Meta Muse AI use a Cloudflare endpoint with OAuth. Other compatible remote clients can use the Cloudflare endpoint and OAuth where supported.

## Tools and capabilities

Available tool groups include:

- Filesystem operations such as `list_files`, `read_file`, `read_file_range`, `write_file`, `delete_file`, and `delete_directory`.
- Search and repository analysis through `grep`, `glob`, `search_code`, `repo_overview`, and `batch_read`.
- Coding operations using `workspace_context`, `edit_file`, and `apply_patch`, including conflict-checked patching.
- Git inspection and mutation with status, history, diffs, staging, commits, initialization, and optional push.
- Terminal execution through one-shot and managed commands, output reads, and cancellation.
- `save_conversation_to_codex` for importing conversations into local Codex history.

Tool availability varies by operating system and enabled permissions.

## Limitations and notes

Shell commands are disabled by default and run with the operating system user's permissions rather than an OS sandbox. FileMCP can change or remove workspace files, so use a narrowly scoped, trusted directory. Cloudflare Tunnel support is limited to macOS. Local builds on both platforms are unsigned, and Intel macOS builds require additional upstream binaries. Runtime credentials are stored in macOS Keychain or Windows Credential Manager.

_Full upstream README: https://allmcps.com/mcp/file-mcp/readme_

