OpenAI mcpfs: MCP tools become shell scripts

OpenAI open-sourced mcpfs, a Linux demo that mounts MCP servers as a read-only filesystem where each tool is a Bash script an agent can run.

An agent with only a shell can now use an MCP server. mcpfs mounts one or more servers as a read-only filesystem: each tool becomes an executable Bash script, and resources and skills become files you read with cat or grep. OpenAI published it as an Apache 2.0 Rust project on GitHub on Dec 1, 2026. It runs on Linux, through FUSE for a local mount or virtio-fs for a VM guest.

Each script carries the tool's name, description and schemas as comments. --help prints them, and you call the tool with named options or a JSON object. A search script at the mount root matches names and descriptions against a local snapshot, without a request to the server.

The practical gain is control over tool output. In a hands-on test, Sulat AI & Tech News fetched a 7,158-byte streaming guide through the mounted OpenAI Docs server and piped it through grep; only two lines left the shell. Loaded as tools in context, the whole page lands in the model's window. The same author gave one task to five models, one run each, which they call "a smoke test, not a benchmark." Four answered correctly through the mount. Claude Haiku 5.5 treated the mount as a document store and never ran the fetch tool. Most models made more tool calls on the mount, and the tools-in-context version added roughly 500 to 1,100 tokens to the first request. The author discloses being an OpenAI, Firecrawl and Devin ambassador.

The README sets the limits. OpenAI calls mcpfs a developer demo, not production ready, to be used only with servers you trust. Discovery runs at mount time, so new tools need a remount, and a slow server delays startup for every server on the mount. Calls are cancelled after five seconds without a response, but a timed-out tool may already have changed remote state. Any process that can run a mounted tool acts with the backend's MCP credentials. Prompts, sampling and interactive OAuth have no filesystem mapping.

Our reading: the token case gets stronger as catalogues grow, but Sulat's comparison ran on a five-tool server, so the trade at hundreds of tools is still untested here.

Try it: on a Linux machine with /dev/fuse, Rust, a C compiler, pkg-config and OpenSSL development headers, build with cargo build --workspace --locked --release, create the mountpoint with mkdir -p /tmp/openai-docs and mount the public docs server with target/release/mcpfs-fusefs mount https://developers.openai.com/mcp /tmp/openai-docs. The mount runs in the foreground, so start your agent in another terminal. Tell your agent something like this (our example): "The files under /tmp/openai-docs/tools are executable MCP tools; run each with --help before using it." It worked if the transcript shows the agent running a script instead of searching the tree for documents.

Sources