OpenAI has open-sourced mcpfs, a Rust tool that mounts one or more MCP servers as a read-only filesystem. Tools become shell scripts you run, resources and skills become files you read, and the agent needs nothing but a shell. Nick Cooper at OpenAI introduced it as a demonstration that MCP is a shape and a transport, and that you don’t have to put it in the harness at all. I built it, mounted the OpenAI Docs server, ran the examples below and put five models through it. Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.
What Cooper is saying
Cooper wrote that the debate over MCP versus a command line, or over tools in context, strikes him as entertaining. To him MCP is a shape and a transport, and a client can present it to a model however it likes: tools in context, abbreviated tools, tool search, code mode or a mix. mcpfs is his demonstration of one more option, a conventional filesystem that sits between the model and the server.
The idea has been building for months. Anthropic proposed presenting tools as files an agent opens on demand, Cloudflare and OpenCode have the model write a script against the tools, and Claude Code now loads skills straight from MCP servers. mcpfs goes a step further and makes the files real, so every Unix tool the agent already knows works on them.
What mcpfs is
The repo is an Apache 2.0 Rust workspace whose first commit is the public release. It builds three binaries: mcpfs-fusefs mounts a server on a local Linux machine through FUSE, mcpfs-virtiofs serves the same tree to a Linux guest over vhost-user virtio-fs, and mcpfs is the small helper that guests use to run tools. It talks to servers over streamable HTTP or stdio, and a bearer token can come from an environment variable.
A mounted server shows up as three folders, each present only when it has entries.
- resources/ holds the server’s resources as files, named after their URIs.
catandddread them. - skills/ holds skills from the MCP Skills extension. Each one is a folder with a
SKILL.md, and mcpfs checks the advertised SHA-256 digests when a file is opened. - tools/ holds one executable Bash script per tool. Open it as text and you get its name, description and schemas in comments. Run it with
--helpfor a manual, with named options, or with a JSON object as an argument or on stdin.
A search script at the root matches names and descriptions across all three folders without making a request to the server. The repo’s own docs call mcpfs a developer demo and ask you to use it only with servers you trust.
Mounting the OpenAI Docs server
The build took under two minutes on a Linux box, and the mount came up as root on the first try. I pointed it at OpenAI’s public docs server, the same example the README uses.
cargo build --workspace --locked --release
mkdir -p /tmp/openai-docs
target/release/mcpfs-fusefs mount https://developers.openai.com/mcp /tmp/openai-docs
The mount shows two entries, search and tools, and the docs server’s five tools sit under tools/. The screenshot is a session I ran against it. Watch the last two commands.

fetch_openai_doc returned the whole Streaming API responses guide, 7,158 bytes. Piped through grep -n output_text.delta, only two lines left the shell: the line in the TypeScript example that checks the event type, and the entry in the event list. With tools in context, the full page lands in the model’s window. With a mount, the agent decides what to keep, and ordinary tools do the cutting.
Two servers, one mount, skills included
A named mount takes several servers at once. I mounted the docs server beside the test server that ships in the repo, a stdio fixture that exposes a few tools, a resource and a skill.
target/release/mcpfs-fusefs mount /tmp/mcp-multi \
--server docs https://developers.openai.com/mcp \
--server fixture stdio:// --command python3 tests/mcp_server.py

The root now has a folder per server plus merged tools/, resources/ and skills/ views. Unique names keep their paths. If both servers had a tool called search, the merged view would show docs:search and fixture:search. The fixture’s skill reads as a plain file, and do_stuff --foo 7 returned {"foo":7}.
Errors act like any shell command’s. I called fetch_openai_doc with an empty URL and got the server’s validation message as JSON and a nonzero exit code. Each tool also carries its metadata as extended attributes, such as user.mcp.name, user.mcp.description and user.mcp.input_schema, so a script can read a schema without parsing the help page.
Does an agent actually use it?
To see how agents cope, I gave one task to five models in opencode, once with the mount and once with the same server loaded as ordinary MCP tools. The task has two parts with known answers: the maximum limit on list_openai_docs, which is 50, and the event type the streaming guide’s TypeScript example checks, response.output_text.delta. The field was Kimi K3.1 Pro, DeepSeek V4.1 Flash, Claude Haiku 5.5, GPT-6.2 Sol and Gemini 4 Neon. Each cell is one run, so it’s a smoke test, not a benchmark.

All five got both answers with the tools in context. On the mount, four did. Kimi, DeepSeek, Sol and Neon found the tool scripts, ran search_openai_docs and fetch_openai_doc, and pulled the event name out of the fetched page. Sol opened each script with the file reader to learn its options, then ran two commands. Haiku read the first answer from the list_openai_docs script, then went looking for the guide inside the mount as if it held documents, searched the tree for the word “stream” and reported that the guide wasn’t there. It never ran the fetch tool. The mount only pays off once the agent knows the tools are executable scripts.
Tool calls were mostly higher on the mount, because the agent explores before it acts. Sol used eight against three, Kimi nine against three, DeepSeek five against two. Gemini 4 Neon used nine on the mount and eleven with the tools in context.
The other side of the trade showed up in the first request. With the five tool definitions in context, that request carried between roughly 500 and 1,100 more tokens across the five models. A five-tool server doesn’t strain anyone. The gap grows with the catalogue, and Cloudflare and Anthropic both quote far bigger savings for servers with many tools.

Where it sits among the options
| Approach | What the model sees | Where the glue runs |
|---|---|---|
| Tools in context | Every definition up front | The model, one call at a time |
| Tool search | A search tool, then the definitions it finds | The model |
| Code mode (Cloudflare, OpenCode) | One execute tool plus a lookup | A sandboxed script |
| Tools as files (Anthropic) | A generated file tree of wrappers | Code the agent writes |
| mcpfs | A real directory it lists and opens | The shell |
Both vendors have published big numbers. Anthropic reports a worked example falling from 150,000 tokens to 2,000, Cloudflare reports 1.17 million tokens falling to about 1,000, and Anthropic puts its tool search saving above 85 percent. Those are their figures, from their own examples. mcpfs needs no sandbox and no new tool, only a shell, so it can sit under any agent that already has one. My own earlier look at an agent-native MCP server template had the same question in reverse: what a server should expose so agents can use it.
Before you mount one
A few facts from the README decide where this fits. The mount is read-only and runs on Linux, through FUSE locally or virtio-fs for a VM. Discovery runs once per server at mount time, so a catalogue change means a remount. Prompts, sampling, interactive elicitation and interactive OAuth have no filesystem equivalent, and a server that needs OAuth is reached through a bridge that supplies the token. A tool call that gets no response in five seconds is cancelled. The mount holds your credentials, and any process that can run a mounted tool can act with them. Start with servers you trust, such as the public docs server.
Try it yourself
- Clone openai/mcpfs on a Linux machine with
/dev/fuse, Rust and a C compiler,pkg-configand OpenSSL headers. - Build with
cargo build --workspace --locked --release. - Mount the docs server with the command above, or run
./examples/fuse-single/run.shfor the bundled demo. - Run
lson the mount, thentools/search_openai_docs --help. - Point your agent at the mount and tell it the tools are executable scripts.
The exact prompts and setup
The prompt for the mount runs:
The OpenAI docs MCP server is mounted as a read-only filesystem at /tmp/openai-docs. Using only what is under that path, answer two questions.
1. What is the maximum value of the limit option on the list_openai_docs tool?
2. In the Streaming API responses guide, which event type does the TypeScript example check for to print text as it arrives?
Reply with two lines: the answer, then the file or command you used.
The prompt for the in-context runs:
Use the OpenAI docs MCP tools to answer two questions.
1. What is the maximum value of the limit option on the list_openai_docs tool?
2. In the Streaming API responses guide, which event type does the TypeScript example check for to print text as it arrives?
Reply with two lines: the answer, then the tool you used.
Each ran with opencode run -m MODEL --format json PROMPT in a folder whose config either left MCP off or added the server as a remote MCP at https://developers.openai.com/mcp. Both configs allowed shell access. Kimi ran through Synthetic and DeepSeek through Morph.




