File MCP logo

File MCP

Connects local files, repositories, Git, and optional terminal access to AI assistants through MCP tunnels.

Install File MCP

Run the project’s own setup commands, in order.

Setup steps from the project

file-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/anhnv02/file-mcp.git
    
  2. 2. Install
    cd file-mcp
    
  3. 3. Install
    ./build_macos_app.sh
    
  4. 4. Start the server
    open dist/FileMCP.app
    
  5. 5. Install
    ./build_windows_app.ps1 -Architecture x64
    

Overview

file-mcp connects AI assistants to a selected local workspace on macOS or Windows through the Model Context Protocol. It provides filesystem, code search, editing, Git, optional shell, and Codex conversation tools while keeping the MCP service on loopback. Remote access uses OpenAI Secure MCP Tunnel or, on macOS, Cloudflare Tunnel with OAuth. Reach for it when an agent needs controlled access to local code without uploading an entire workspace.

Use cases

  • Browse and edit a selected local code workspace
  • Search repositories and assemble scoped coding context
  • Inspect, stage, commit, and optionally push Git changes
  • Run controlled shell commands from an AI assistant
  • Import conversations into local Codex history

Key features

  • Workspace-scoped filesystem access
  • Repository search and coding tools
  • Git status, diff, commit, and push operations
  • Optional terminal sessions with cancellation
  • OpenAI and Cloudflare MCP tunnel connectivity
  • OAuth and local credential storage

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars11Stargazers on the source repository.
Last commit5d agoMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How File MCP works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about File MCP

file-mcp is an MCP server that connects ChatGPT, Claude, Meta Muse AI, and other compatible clients to a selected local workspace on macOS or Windows. Its main tools cover file operations, code search, repository context, editing, Git actions, optional shell commands, and Codex conversation import through secure MCP tunnel connections.

Install it by cloning the repository and running the platform build script. macOS uses `./build_macos_app.sh` and requires macOS 12+ plus Xcode Command Line Tools. Windows uses `./build_windows_app.ps1 -Architecture x64` and requires Windows 10/11 with the .NET 8 SDK.

Connect it from ChatGPT's custom MCP server setup under Plugins. Use an OpenAI Secure MCP Tunnel or enter the HTTPS endpoint from a Cloudflare Tunnel and complete OAuth when prompted. OpenAI Secure MCP Tunnel works with file-mcp on both macOS and Windows.

Yes, Claude can connect through a Cloudflare HTTPS MCP endpoint with OAuth. The Cloudflare provider is currently available only on macOS. In Claude, add a custom connector under Customize → Connectors and enter the FileMCP endpoint.

No, shell execution is disabled by default. When enabled, commands run with the operating system user's permissions and are not OS-sandboxed. FileMCP also provides bounded execution time and output, but the workspace should still be trusted and narrowly scoped.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewFile MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/file-mcp?style=directory)](https://allmcps.com/mcp/file-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/file-mcp"><img src="https://allmcps.com/api/badge/file-mcp?style=directory" alt="File MCP on AllMCPs" /></a>