OpenAI open-sources mcpfs, which mounts MCP servers as a read-only
OpenAI open-sourced mcpfs, a Rust developer demo that mounts MCP servers as read-only Linux FUSE or virtio-fs filesystems with a 64 MiB catalog budget.
By Dillip Chowdary • Dec 03, 2026 • Source: github.com

At a glance
- Product
- mcpfs
- Status
- Developer demo, not production ready
- Build stack
- Rust, Cargo, OpenSSL headers, C compiler
- Adapters
- Linux FUSE 3 and QEMU vhost-user virtio-fs
- Catalog limits
- 262,144 projected nodes, 64 MiB budget
- Unsupported features
- Prompts, sampling, elicitation, interactive OAuth
In this post
OpenAI has open-sourced mcpfs, a tool that exposes one or more Model Context Protocol servers as a read-only filesystem, according to OpenAI's mcpfs repository. Users can mount the filesystem locally through Linux FUSE or serve it to a Linux guest over vhost-user virtio-fs, reading resources and skills with standard Unix utilities and running mounted tools as shell commands with named options or JSON input.
This guide covers how mcpfs builds from its Rust workspace, mounts single or multiple servers over FUSE or QEMU virtio-fs, structures its five crates and mapped paths, and enforces catalog limits and search rules. It is written for Linux developers and infrastructure engineers testing local or virtualized MCP integrations.
01Rust workspace build and FUSE mounting
Building mcpfs on Linux requires Rust, Cargo, a C compiler, pkg-config, and OpenSSL development headers for the TLS backend. Running cargo build --workspace --locked --release from the repository root produces three binaries: target/release/mcpfs-fusefs for local mounts, target/release/mcpfs-virtiofs for VM backends, and target/release/mcpfs as the guest helper.
For unprivileged local mounts, users need access to /dev/fuse and the FUSE 3 fusermount3 helper, while mounted tool scripts rely on Bash. Running mcpfs-fusefs mount against a Streamable HTTP endpoint such as https://developers.openai.com/mcp or a stdio:// bridge runs in the foreground until unmounted with fusermount3 -u, and ./examples/fuse-single/run.sh demonstrates a single-server fixture.
| Adapter | One MCP server | Multiple MCP servers |
|---|---|---|
| FUSE | fuse-single | fuse-multi |
| QEMU virtio-fs | qemu-single | qemu-multi |
Single-server mounts accept --resource flags for unlisted URIs or templates and read HTTP credentials from MCPFS_BEARER_TOKEN in the mounting environment. Because http:// endpoints send bearer tokens in the clear, OpenAI recommends using https:// whenever passing a token, and refreshing credentials by remounting.
02Multi-server namespaces and QEMU virtio-fs
Mounting multiple servers uses repeated --server NAME URI flags, placing per-server --resource and --bearer-token-env options before --command for stdio servers. Each server gets its own top-level directory, while merged tools/, resources/, and skills/ directories combine entries across servers and prefix colliding tool or skill names with the server name.
Servers named search, tools, resources, or skills receive a ~server- prefix on their top-level directory to avoid colliding with merged paths. To serve a VM guest instead, administrators install the mcpfs guest helper and Bash inside the Linux guest and launch mcpfs-virtiofs with --guest-helper, --uid, --gid, and a private socket path.
In QEMU, the host passes that socket to a vhost-user-fs-pci device using shared memory-backend-memfd RAM, such as 2 GiB, and the guest mounts it read-only with mount -t virtiofs -o ro mcpfs /mnt/mcp. Each daemon serves one VMM connection, and guest programs using sendfile on unsized resources may see zero bytes until a direct read refreshes attributes.
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
03Workspace crates and mapped filesystem entries
The workspace splits responsibilities across five crates: mcpfs supplies the common tool, search, and guest helper binary, while mcpfs-fusefs and mcpfs-virtiofs adapt the virtual filesystem to local FUSE mounts and vhost-user queues. Under them, mcpfs-vfs manages MCP sessions, namespaces, caches, and file handles, and mcpfs-ioctl maps the Linux tool invocation ABI.
Mounted servers expose resources under resources/, MCP Skills extension manifests under skills/ with SHA-256 digest verification on open, and tools as executable Bash scripts under tools/. Passing --help to a tool script or reading it as text displays its name, description, and schemas, while invocations print output to stdout and return nonzero on errors.
Resource reads return cached bytes when available, converting text to UTF-8, blobs to decoded bytes, and multipart replies to JSON arrays. Open file descriptors maintain consistent contents across seeks and partial reads, while file sizes default to listing metadata or zero before opening.
04URI encoding, discovery, and catalog budgets
Resource paths preserve the URI scheme, authority, and slash-separated segments while encoding unsafe bytes, tildes, percents, and dot segments in uppercase percent encoding. Empty segments become ~empty, non-hierarchical URIs use ~opaque, queries and fragments attach after ~suffix, parent resources store bytes at ~value, and overlong paths switch to SHA-256 names with xattrs holding originals.
Discovery runs once per server during mount, following paginated responses and omitting empty resources/, skills/, or tools/ directories until a remount refreshes names. Prompts, sampling, interactive elicitation, and interactive OAuth flows have no filesystem mapping in the current mcpfs design.
Across all servers in a single mount, discovery reserves up to 262,144 projected nodes, counting parent directories and merged views, and enforces a shared 64 MiB catalog budget. That budget tracks decoded entries, pagination cursors, generated tool scripts, and the search index, failing the mount at startup if exceeded.
05Substring catalog search and trust caveats
A top-level search binary at the mount root performs case-insensitive literal substring matching against entry names and advertised descriptions, printing one relative path per match. Callers can pass --tools, --resources, or --skills to narrow the scan, combine multiple scope flags, or omit flags to search all three categories by default.
OpenAI classifies mcpfs as a developer demo that is not production ready and warns users to mount only MCP servers they trust. Any process inside a local mount or guest VM that can execute mounted tool scripts acts with the backend's MCP credentials.
Note: Mounting a server processes its entire catalog immediately before any file is opened or tool is run, so a single slow or faulty server can delay startup for every server sharing the same mount, and remounting is required to refresh catalog names or HTTP tokens.
Frequently asked questions
How does mcpfs expose MCP tools, resources, and skills?
It mounts them as a read-only filesystem with tools as executable Bash scripts under tools/, resources under resources/, and MCP Skills extension files under skills/. Open file descriptors keep consistent contents across seeks and partial reads.
Can mcpfs mount multiple MCP servers at the same time?
Yes, repeating --server NAME URI mounts multiple servers into per-server directories alongside merged tools/, resources/, and skills/ directories. Colliding tool or skill names are prefixed with the server name.
What are the catalog size limits in mcpfs?
Discovery reserves up to 262,144 projected nodes across all servers in a mount and enforces a shared 64 MiB catalog budget. Exceeding either limit causes the mount to fail at startup.
Is mcpfs ready for production deployments?
No, OpenAI states that mcpfs is a developer demo and is not production ready. Users should mount only trusted MCP servers because any process that can run mounted tools acts with the backend's credentials.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Advertisement