📁 OpenAI mcpfs: mount MCP servers as a read-only filesystem on Linux
In brief
- 📁 [OpenAI](https://openai.com) published mcpfs, an open-source tool that mounts MCP servers as a read-only filesystem.
- Resources show up as files, skills as directories and tools as shell scripts.
- Runs on Linux through FUSE, or for guest VMs through virtio-fs; Apache 2.0.
- The repository calls it a developer demo, not production ready.
📁 OpenAI has published [openai/mcpfs](https://github.com/openai/mcpfs) on GitHub, a tool that exposes one or more MCP servers as a read-only filesystem. The server's resources become ordinary files, its skills directories and its tools executable Bash scripts that take named options or JSON. That lets people read and search MCP content with plain Unix tools. The repository itself calls mcpfs a developer demo that is not production ready and says to use it only with MCP servers you trust. It is licensed under Apache 2.0.
🛠️ Building and trying it. The project is written in Rust and, per the README, runs on Linux. You build it with `cargo build --workspace --locked --release`, which needs a C compiler, pkg-config and OpenSSL development headers. Three binaries result: `mcpfs-fusefs` for local mounts, `mcpfs-virtiofs` as the backend for virtual machines and `mcpfs` as the helper inside a guest. The README's example mounts OpenAI's public documentation server: `mcpfs-fusefs mount https://developers.openai.com/mcp /tmp/openai-docs`. Afterwards `ls /tmp/openai-docs/tools` lists the tools, `--help` explains one, and a search is simply a run of its script. Unprivileged mounts need access to `/dev/fuse` and the `fusermount3` helper.
🗂️ How a server becomes files. A server can be reached over Streamable HTTP or as a local stdio process, and several servers can share one mount with `--server NAME URI`. Resources appear under `resources/`, skills (following the MCP Skills extension, with SHA-256 digests verified) under `skills/` and tools under `tools/`. When two servers both have a tool called search, it shows up as `tools/docs:search` and `tools/local:search`. A search command matches names and descriptions as plain substrings and needs no MCP request. Tools are Bash scripts with name, description and schema as comments; an error gives a nonzero exit code. Prompts, sampling and interactive OAuth flows have no filesystem mapping.
⚠️ Limits and safety. Mounting processes the catalog immediately, so a slow or faulty server can delay startup for every server on the same mount. The catalog is capped at 262,144 nodes and 64 MiB, otherwise the mount fails. Bearer tokens belong in environment variables and should only travel over https; with http they are sent in the clear. Anyone who can run a mounted tool acts with the backend's MCP credentials. mcpfs cancels a call after five seconds without a response, though a tool may already have changed remote state by then. Names are read once at mount time, so new tools need a remount. The aim is to give agents and scripts access to MCP content through familiar file commands; the repository does not promise production use.