Sulat.com / Writing on AIWednesday, December 2, 2026
Enter →
Agent Engineering/2 December 2026

OpenAI’s mcpfs mounts MCP servers as a filesystem

OpenAI's mcpfs mounts MCP servers as a read-only filesystem, so an agent runs each tool as a shell command. I built it, mounted the OpenAI docs server and ran five models through it.

Green 3D OpenAI logo beside a stack of three folders with a cable plugged in
Illustration: Sulat, featuring the OpenAI logo

At a glance

  • OpenAI's mcpfs mounts MCP servers as a read-only filesystem: tools become Bash scripts, resources and skills become files.
  • Nick Cooper at OpenAI says MCP is a shape and a transport, and clients can present it however they like, including as plain files.
  • I mounted the OpenAI Docs server and piped a 7,158-byte guide through grep so only two lines reached the shell output.
  • Four of five models answered a two-part docs question from the mount, and all five did with tools in context, a smoke test with one run each.
  • With five tools in context the first request carried roughly 500 to 1,100 more tokens; the gap grows with the size of the catalogue.

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.

Nick Cooper announcing mcpfs.

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. cat and dd read 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 --help for 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.

Code
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.

Terminal listing the mounted OpenAI docs tools, a search piped to jq, and a grep for output_text.delta
The mount, a search piped through jq, and a fetched guide cut to two lines with grep.

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.

Code
target/release/mcpfs-fusefs mount /tmp/mcp-multi \
  --server docs https://developers.openai.com/mcp \
  --server fixture stdio:// --command python3 tests/mcp_server.py
Terminal showing two servers merged under one mount, a skill file, a tool run returning foo 7, and a catalogue search
Two servers under one mount, with merged tools and skills directories.

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.

Results grid: five models, mount versus in-context tools, ticks and tool-call counts, one Haiku miss on the mount
Four of five models answered both questions from the mount; all five did it with the tools in context.

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.

Two panels: tools in context lists every definition up front, an mcpfs mount lists two names
With a mount, the model reads a two-name listing and opens a tool only when it needs one.

Where it sits among the options

ApproachWhat the model seesWhere the glue runs
Tools in contextEvery definition up frontThe model, one call at a time
Tool searchA search tool, then the definitions it findsThe model
Code mode (Cloudflare, OpenCode)One execute tool plus a lookupA sandboxed script
Tools as files (Anthropic)A generated file tree of wrappersCode the agent writes
mcpfsA real directory it lists and opensThe shell
Five ways to put an MCP server in front of a model.

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

  1. Clone openai/mcpfs on a Linux machine with /dev/fuse, Rust and a C compiler, pkg-config and OpenSSL headers.
  2. Build with cargo build --workspace --locked --release.
  3. Mount the docs server with the command above, or run ./examples/fuse-single/run.sh for the bundled demo.
  4. Run ls on the mount, then tools/search_openai_docs --help.
  5. 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:

Code
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:

Code
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.