OpenAI's mcpfs Lets AI Agents Browse MCP Tools Like Files Instead of Loading Them All
A small OpenAI demo mounts MCP tools as shell scripts. It is a smart idea about agent design, with one word in its pitch you should read carefully.
Every coding agent arrives already fluent in one interface. It knows ls, cat, grep and --help the way a carpenter knows a hammer, because it learned from decades of terminal sessions and Unix documentation.
MCP, the Model Context Protocol that most agents now use to reach outside tools, works differently. A server announces a catalog of tools, each with a name, a description and a JSON schema, and the program running the agent usually loads those definitions into the model's context so the model can pick one. That works for five tools. It gets heavy at fifty, and painful at five hundred, because every definition takes up room in the prompt whether the agent needs it or not.
OpenAI just published a small open-source experiment that sidesteps the problem by asking a simple question. What if the tools were files?
What mcpfs is
mcpfs takes one or more MCP servers and exposes them as a read-only filesystem on Linux. The repo holds a single commit dated December 1, 2026, carries an Apache-2.0 license with an OpenAI copyright, and has no tagged releases. It had about 650 stars on the morning of December 5, and it sat fourth on Trendshift's daily board on December 5.
Mount a server and up to three folders appear, each one only if the server has entries of that kind:
resources/holds the server's resources (the documents and data it offers) as ordinary files you cancat.skills/holds skills, the bundles of instructions some servers publish, each with its ownSKILL.md.tools/holds every tool as an executable Bash script.
There is also a search command at the root that finds tools, resources and skills by name or description.
The tool scripts are the clever part. Open one in a text editor and its name, description and input schema sit in comments at the top. Run it with --help and it prints that information. Run it with named options, --query 'Responses API streaming' --limit=1, and it calls the real MCP tool and prints the result to standard output. A failure returns a nonzero exit code, like any well-behaved command.
There are two ways to mount it. The local way uses FUSE (Filesystem in Userspace, the Linux feature that lets an ordinary program pretend to be a disk). The second way serves the folder into a Linux virtual machine over virtio-fs, a fast channel for sharing a folder between a host and the VM it runs.
Why a folder is a good interface for an agent
Here is the insight in plain terms. With mcpfs, a tool catalog stops being something you paste into the model's prompt and becomes something the agent browses when it needs to.
An agent facing a mounted server can run ls tools/, see a list of names, run search 'invoice' to narrow it down, read one script's --help, and then call it. Only the tools it actually looks at cost it any attention. The rest sit on disk.
Here is what that looks like against OpenAI's public docs server, using commands from the README:
ls /tmp/openai-docs/tools # what exists?
/tmp/openai-docs/search --tools 'OpenAPI' # narrow it down
/tmp/openai-docs/tools/list_api_endpoints --help # read one manual
/tmp/openai-docs/tools/list_api_endpoints # call it
Four commands, and the agent never needed the server's full tool list in its prompt.
That matches how people handle large toolboxes too. Nobody memorizes every command on a Linux system. You know that man and --help exist, and you look things up.
There are smaller wins that add up:
- Pipes work. A tool's output goes to standard output, so an agent can send it through
jq,grepor a file without special code. - Skills arrive as plain files. mcpfs follows the MCP Skills extension and checks each skill file's SHA-256 fingerprint and size when you open it, so a skill that changed in transit does not load unnoticed.
- Metadata is still there. Each file carries its original MCP name, description and schemas as extended attributes (small labels attached to a file), readable with
getfattr -d -m '^user\.mcp\.' PATH. - Several servers can share one mount. Name collisions get prefixed, so two servers that both offer
searchshow up astools/docs:searchandtools/local:search.
The VM mode points at a bigger idea. A sandboxed agent inside a virtual machine could get a folder of tools without a direct network route to the MCP server, because the host process does the talking.
The word to read carefully: read-only
The README calls mcpfs "a read-only filesystem," and that is accurate about the files. You cannot write to the mount, delete from it or edit a tool script.
It does not mean the tools are harmless. Running a mounted tool sends a real MCP request, and if that tool sends an email, files a ticket or deletes a record, it does so. The README is explicit on the VM side: "A process that can execute the mounted tools can act with the backend's MCP credentials." It also says mcpfs starts cancelling a call after five seconds without a response, and that "a timed-out tool may already have changed remote state."
So the read-only label is about the folder, not the actions behind it. If you mount a server that has write tools and give an agent shell access to the mount, you have given the agent those write tools, packaged as scripts. Decide which servers to mount with that in mind.
The README adds two more warnings in bold at the top: mcpfs "is a developer demo and is not production ready," and you should "only use it with MCP servers you trust." Mounting processes a server's whole catalog immediately, before you open a single file, and a slow or faulty server can delay startup for every other server on the same mount.
Put this into practice
You need a Linux machine with Rust and Cargo, a C compiler, pkg-config and the OpenSSL development headers. For an unprivileged mount you also need access to /dev/fuse and the FUSE 3 fusermount3 helper. There is no package to install; you build from source.
Step 1: build the three binaries. From a clone of the repo:
git clone https://github.com/openai/mcpfs.git
cd mcpfs
cargo build --workspace --locked --release
This produces mcpfs-fusefs for local mounts, mcpfs-virtiofs for VMs, and mcpfs, a small helper the tool scripts use. The README says to keep that helper at its original path while a mount is active.
Step 2: run the bundled demo. It mounts a small Python test server, reads a resource and a skill, calls a tool and unmounts when it exits:
./examples/fuse-single/run.sh
Step 3: mount a real, low-risk server. OpenAI's public documentation server is a good first choice because its tools only search docs:
mkdir -p /tmp/openai-docs
target/release/mcpfs-fusefs mount https://developers.openai.com/mcp /tmp/openai-docs
The mount runs in the foreground. In a second terminal, look around:
ls /tmp/openai-docs/tools
/tmp/openai-docs/tools/search_openai_docs --help
/tmp/openai-docs/tools/search_openai_docs --pretty --query 'Responses API streaming' --limit=1
fusermount3 -u -- /tmp/openai-docs
Step 4: point your agent at the folder. Give a coding agent shell access to the mount and a one-line instruction: tools live in tools/, run search to find one and --help before calling it. Watch whether it finds the right tool without having the catalog in its prompt.
Step 5: if a server needs a token, use HTTPS. Set MCPFS_BEARER_TOKEN in the mounting process's environment. The README warns that over plain http:// the token travels in the clear. On a mount with several named servers, each server gets its token from its own --bearer-token-env option instead.
What to expect: the catalog is discovered once when you mount. If the server adds a tool later, you will not see it until you remount. Resource and skill contents are cached in memory for up to 30 seconds per entry (less if the server says so), up to 256 entries and 16 MiB per server.
Who should try it this week
Not everyone needs to build Rust code on a Saturday. Three kinds of builders get the most out of an afternoon with mcpfs.
Teams with big tool catalogs. If your agent connects to several MCP servers and you have watched its context fill with tool definitions it never uses, mcpfs is a working example of the alternative. Even if you never deploy it, you can measure how well your agent finds tools by browsing compared with having them all preloaded.
People running agents inside VMs. If you already sandbox agents in a virtual machine, the virtio-fs mode is the interesting half. The guest sees a read-only folder, and the host process holds the network connection and the credentials. The README's own setup uses QEMU with shared memory and a socket in a private runtime directory.
Anyone designing their own tool layer. The script format is worth copying on its own merits: a name, a description and a schema in comments, --help that prints them, named options or JSON on standard input, results on standard output and a nonzero exit on failure. That is a tool contract any agent and any human can read.
If you only use two or three MCP tools with one desktop agent, skip it for now. The problem it solves is not your problem yet.
Honest limitations
It is Linux only. Both adapters rely on Linux features, so Mac and Windows users need a Linux VM or container to try it.
It is a demo. No releases, one commit and a bold "not production ready" warning mean you should not build a product on today's code. Treat it as a design you can learn from.
Some MCP features have no file equivalent. The README lists prompts, sampling, interactive elicitation (a server asking the user a question mid-task) and interactive OAuth sign-in as unsupported.
There are hard limits. All servers in one mount share a 64 MiB catalog budget, and the mount fails to start if a catalog is larger. Each tool's built-in help is capped at 64 KiB.
The security model is your job. The mount is read-only, the tools are not. Mount only servers whose every tool you would be comfortable letting an agent run.
Why this small repo matters
mcpfs is a few thousand lines of Rust from a lab that could have shipped a bigger framework. What makes it worth an afternoon is the argument it makes: the best interface for an agent may be one it already knows, rather than a new protocol layer stuffed into its prompt.
You do not have to adopt mcpfs to use that argument. When you design your own agent's tools, ask whether they could be browsed instead of preloaded, discovered with a search instead of listed in full, and called like commands with --help. Then decide, tool by tool, which ones an agent with a shell should be allowed to run at all.
Sources: openai/mcpfs on GitHub (README and LICENSE at main, single commit of December 1, 2026) · mcpfs README at commit 48b359f · MCP Skills extension · Trendshift daily board, read December 5, 2026