OpenAI released mcpfs on December 1, 2026 — a Rust workspace that turns one or more Model Context Protocol servers into a read-only filesystem you can mount with Linux FUSE or feed to a VM through virtio-fs. The README is explicit that the project is a developer demo, not production ready, yet it is a concrete pattern for teams that want Unix tools, ripgrep, and shell scripts on top of the same MCP catalogs that power Claude Desktop and Cursor MCP hosts.
Quick answers
| Question | Answer |
|---|---|
| Do I need OpenAI API keys for the docs demo mount? | The public Docs MCP endpoint in the README works without your own API key for the documented read-only demo paths. Private servers need whatever auth that server defines. |
| Is mcpfs free to use? | Yes under Apache-2.0 per the repository LICENSE. |
| Can I write through the mount? | No. The layout is read-only; tools execute through MCP, not by editing files in place. |
| Linux only? | FUSE and virtio-fs paths target Linux. There is no macOS FUSE story in the Dec 1 README. |
| How is this different from Claude Desktop MCP? | Desktop hosts call MCP over stdio or HTTP inside the app. mcpfs exports the same catalog as paths for shell automation and VMs. |
What mcpfs does
Linux terminal motif for MCP tools exposed as shell scripts
Instead of asking an agent to re-list tools on every task, mcpfs discovers the MCP catalog once and projects it under predictable paths:
| Path | Contents |
|---|---|
resources/ | Cached MCP resources as files |
skills/ | Skill trees with SKILL.md and supporting files |
tools/ | Executable Bash wrappers for each MCP tool |
search | Case-insensitive substring search across the snapshot |
The design mirrors how operators already reason about data lakes and config repos, which is why it pairs naturally with serverless MCP on Fargate patterns that keep agents near structured metadata.
Build requirements and binaries
OpenAI documents a Linux-only build from the repository root:
cargo build --workspace --locked --release
The release artifacts are mcpfs-fusefs (local FUSE mounts), mcpfs-virtiofs (VM backend), and mcpfs (guest helper for tool encoding). The README notes OpenSSL development headers for the TLS stack when mounting HTTPS MCP endpoints.
Trust boundaries matter on day one. Mounting runs catalog discovery before you open a file, and a slow or faulty server delays startup for every server on the same mount. That behavior is why the README tells you to mount only MCP servers you trust.
Mount a single HTTP MCP server
The bundled example targets OpenAI's public documentation MCP endpoint documented at developers.openai.com/mcp:
mkdir -p /tmp/openai-docs
target/release/mcpfs-fusefs mount https://developers.openai.com/mcp /tmp/openai-docs
In a second terminal you can list tools, read help, and invoke search without a custom MCP client:
ls /tmp/openai-docs/tools
/tmp/openai-docs/tools/list_api_endpoints --help
/tmp/openai-docs/tools/search_openai_docs --pretty --query 'Responses API streaming' --limit=1
fusermount3 -u -- /tmp/openai-docs
For authenticated HTTP servers, set MCPFS_BEARER_TOKEN in the mounting process environment. The README recommends https:// whenever a bearer token is in play because http:// sends the token in the clear.
Stdio servers use the stdio:// URI form with -- program arg1 arg2 after the mountpoint, the same bridging style teams use when wiring local media MCP like Captae.
Multi-server mounts and name collisions
Production agents rarely talk to one MCP server. The README's multi-server form repeats --server NAME URI:
target/release/mcpfs-fusefs mount /tmp/mcp \
--server docs https://developers.openai.com/mcp \
--server local stdio:// --command /path/to/mcp-server
When two servers expose a tool both call search, the merged tree exposes tools/docs:search and tools/local:search. Skill directory collisions pick up a server prefix so each SKILL.md tree stays intact. Reserved top-level names like tools or resources get a ~server- prefix on the server directory.
That naming scheme is worth documenting in your internal MCP registry before you automate mounts in CI, alongside lessons from OpenAI WebMCP experiments that expose tools to browsers instead of FUSE.
Tools as shell scripts, not opaque RPCs
Each MCP tool becomes a Bash script you can open as text. Help lives in comments above the logic; --help prints schemas when they fit in 64 KiB. Arguments accept named flags, --name=VALUE, or a JSON object on stdin.
The README shows three equivalent invocations of a documentation search tool, which is the pattern automation authors want when piping JSON from jq or from another agent harness.
Successful calls prefer structuredContent when the server returns it. Errors surface as nonzero exit codes with JSON diagnostics on stderr. Tool calls clear cached resource and skill contents for that server when they finish, so repeated shell loops do not silently serve stale MCP bytes.
Resources, skills, and extended attributes
Resources materialize under resources/ with deterministic path encoding for hierarchical URIs. Skills follow the MCP Skills extension: manifests paginate, SHA-256 digests verify on open, and duplicate declarations must agree on size and hash.
Linux xattr keys such as user.mcp.uri, user.mcp.input_schema, and user.mcp.digest let you inspect metadata with getfattr without invoking the tool. That is a debugging win when you compare against skills folders in coding agents.
virtio-fs for QEMU guests
MCP server tower illustration for multi-server agent tool catalogs
The mcpfs-virtiofs daemon exposes the same layout to a Linux guest. OpenAI documents a vhost-user socket, QEMU vhost-user-fs-pci device lines, and a read-only virtiofs mount inside the guest. The guest must ship the mcpfs helper and Bash because tool scripts depend on both.
Limits are explicit: eight deferred opens, eight concurrent tool calls, 1,024 open files, and separate 64 MiB buffers for open resources and tool I/O. Guests see EAGAIN, EMFILE, or ENOSPC when those budgets fill, which is the kind of edge case you should rehearse before pairing mcpfs with sandboxed Codex profiles.
Invocation ABI and timeouts
Behind the scripts, tool runs use a small Linux ioctl protocol (APPEND, RUN, NEXT) documented in the README. The mounting host keeps a consistent mcpfs binary path while FUSE stays mounted.
OpenAI caps MCP resource reads and tool calls at five seconds without a response, warns that a timed-out tool may still have changed remote state, and limits Streamable HTTP bodies to 16 MiB per JSON response or SSE event. Those numbers belong in your runbooks next to CISA guidance on agentic offensive frameworks.
How mcpfs fits the agent stack in late 2026
| Layer | Example in our coverage |
|---|---|
| Hosted computer use | OpenAI Codex cloud browser |
| Browser-native tools | WebMCP challenge |
| Desktop MCP bridges | Captae media MCP |
| OS filesystem view | mcpfs FUSE and virtio-fs |
mcpfs does not replace MCP hosts. It gives platform engineers a read-only lens for auditing catalogs, snapshotting skill trees, and scripting tool calls in environments that already standardize on FUSE and QEMU.
What to try on a safe workstation
- Run the bundled demo:
./examples/fuse-single/run.shafter a release build. - Mount OpenAI Docs MCP read-only and
searchfor an API phrase you are implementing this week. - Diff a skill directory under
skills/against your internal skills repo. - Only then point mcpfs at a private stdio server with production credentials, on
https://endpoints with short-lived tokens.
URI paths, caches, and catalog budgets
OpenAI spends much of the README on how MCP URIs become filenames. Hierarchical URIs keep scheme, authority, and slash segments. Unsafe bytes, percent signs, and dot segments use uppercase percent encoding. Empty components become ~empty; non-hierarchical URIs land under ~opaque. Query strings and fragments attach to the final component as ~suffix data.
When a resource is both a file and a parent path, its bytes live at resources/foo/a/b/~value so children can coexist. Overlong components fall back to SHA-256 names, with the original URI stored in xattrs for round-tripping during debugging.
The mount cache keeps up to 256 entries and 16 MiB of resource and skill payloads per server, with a default 30 second TTL unless a resource advertises shorter ttlMs. Each tool invocation clears that server's resource and skill cache when it finishes, which surprises engineers who expect FUSE to behave like a static NFS export.
Resource subscriptions watch up to eight recently read URIs per server when the protocol supports them. Updates evict entries; list changes wipe the whole server cache. If your agent shell loops alternate between two hot resources, expect extra MCP traffic after every tool call.
Discovery itself is bounded. OpenAI estimates catalog size against a 64 MiB shared budget counting pagination cursors, generated tool scripts, and the search index. Hitting the ceiling fails the mount during discovery, not mid-query. Plan separate mounts for large skill packs instead of one mega-mount in production experiments.
Security checklist before you mount production MCP
The README's warning that mcpfs is not production ready is not boilerplate. Treat these items as a minimum bar:
- Mount only servers you operate or have reviewed, because discovery executes immediately and may trigger server-side logging of your client identity.
- Never pass bearer tokens over
http://; prefer TLS endpoints and short-lived tokens rotated out of shell history. - Remember guest risk: a QEMU guest that can execute mounted tool scripts inherits the backend's MCP credentials. Lock down who can open files under
tools/. - Timeout semantics: a five-second cancel does not roll back remote side effects. Pair mounts with human approval for destructive tools, similar to lessons from pgstack agent Postgres credentials.
- Prompt injection via resources: mounting untrusted MCP is equivalent to letting an attacker supply files your shell and agents will read. Keep mounts on known catalogs while you evaluate.
Workspace crates and tests OpenAI ships
The repository splits responsibilities across crates named in the README:
| Crate | Role |
|---|---|
mcpfs-vfs | MCP sessions, namespace, caches, open handles |
mcpfs-fusefs | FUSE adapter for bare-metal Linux |
mcpfs-virtiofs | vhost-user queues for VM guests |
mcpfs-ioctl | Shared Linux tool invocation encoding |
mcpfs | Guest helper plus shared CLI utilities |
OpenAI documents cargo test --workspace --locked, cargo fmt --check, and cargo clippy with -D warnings. A separate linux_mount integration test requires /dev/fuse and is marked ignored in default CI. The virtio-fs test exercises real vhost-user queues without booting a full VM, which is the signal that virtio-fs support is more than a README sketch.
If you are standardizing MCP in a platform team, schedule a brown-bag around this repo before you fork it. Our MCP bootcamp curriculum covers protocol basics; mcpfs is the Linux plumbing layer on top.
What is not mapped yet
The README is equally clear about negative space. Prompts, sampling, interactive elicitation, and interactive OAuth flows have no filesystem mapping today. Agents that depend on human-in-the-loop OAuth inside MCP still need the host application, not mcpfs alone.
That gap matters when you compare mcpfs to Greenlight automated reasoning on Bedrock, which keeps policy and proofs in the managed service rather than on a developer laptop mount.
