openai/mcpfs
A Rust FUSE and virtio-fs adapter that turns MCP catalogs into files and shell commands
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
mcpfs is a client-side filesystem adapter for existing MCP servers. It presents a shared read-only VFS through mcpfs-fusefs on a Linux host or mcpfs-virtiofs over vhost-user queues to a Linux guest. mcpfs-vfs owns sessions, namespace construction, caches and open handles. The common mcpfs helper and mcpfs-ioctl crate implement the invocation path shared by both adapters. The Rust 2024 workspace lists rmcp pinned to 3.6.0, plus Tokio, serde_json and sha2 among its shared dependencies.
Reading a generated Bash tool script reveals its help and schemas without calling the tool. Execution passes arguments to the helper, which builds a JSON object and opens the script read-only. The daemon identifies the tool by inode; APPEND, RUN and NEXT ioctls transfer arguments and results in fixed-size frames, with independent state for each open. Tool calls and resource fetches run outside the FUSE dispatcher, so a pending MCP request does not block directory listings, metadata lookups or reads from already-open files.
Key Capabilities & Differentiators
The adapter connects over Streamable HTTP, including request-scoped SSE, or launches a local stdio server directly from its argument vector. A multi-server mount exposes both named server roots and merged tools/, resources/ and skills/ views, prefixing colliding entries with the server name. Catalog search runs locally against advertised names and descriptions. Resources expose UTF-8 text, decoded blobs or multipart JSON. The MCP Skills extension adds paginated manifests, size and SHA-256 verification on open, and dynamic enumeration through resources/directory/read where supported.
Tools take named options or JSON from an argument or stdin. Successful calls prefer structuredContent, including explicit null; otherwise they return the content array or the verbatim body of a single unannotated text block. Tool and protocol errors produce a nonzero exit status. The content cache holds up to 256 entries and 16 MiB per server for up to 30 seconds, subject to a shorter resource TTL. Completing a tool call clears that server's content cache, while open handles keep their snapshots.
Trade-offs & Limitations
Compared with a native MCP client, mcpfs lets shell scripts and file-oriented applications use MCP without implementing the protocol. In return, deployment depends on Linux filesystem support, and every server's catalog is processed at mount time. A slow server can delay the entire mount. Search uses the resulting snapshot: content invalidation does not refresh names or tool schemas, so catalog changes require a remount. In virtio-fs guests, sendfile may see a resource's initial zero size before attributes refresh; a direct read fetches the bytes.
The read-only label applies to the filesystem, not to upstream tool behavior. A process that can execute mounted tools can act with the backend's MCP credentials. Cancellation starts after five seconds without a response, but a timed-out tool may already have changed remote state. Use only trusted MCP servers and scope mount access accordingly. The virtio-fs backend also has explicit backpressure and memory limits: up to eight deferred opens, eight tool calls, 1,024 open files, 64 MiB of open resource snapshots and a separate 64 MiB for tool input and output per connection.
Hardware & Deployment Guide
Build on Linux with cargo build --workspace --locked --release. The TLS backend requires a C compiler, pkg-config and OpenSSL development headers. Local unprivileged mounts need access to /dev/fuse and the FUSE 3 fusermount3 helper; mounted tool scripts need Bash. The FUSE mount runs in the foreground, and the bundled ./examples/fuse-single/run.sh exercises the path using a local Python fixture. The adapter is self-hosted and can connect to a local stdio process or an upstream HTTP service; it does not require a model runtime or GPU.
For a VM, install mcpfs and Bash in the Linux guest, run mcpfs-virtiofs on the host with a socket in a private runtime directory, and attach it to a vhost-user virtio-fs device. The QEMU setup uses shared memory, and the guest mounts the share read-only. Each backend daemon serves one VMM connection. Use HTTPS for HTTP bearer authentication and remount after replacing the token. The workspace is version 0.1.0, is marked publish = false, and has no listed GitHub release. Treat it as a source-built developer demo, not a production-ready dependency.
Linux developers testing shell or coding-agent workflows that consume trusted MCP resources, skills and tools on a host or in a VM.
You need production support, live catalog updates, per-user upstream authorization, or a non-Linux mount.
Quick Start & Installation
cargo build --workspace --locked --release
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| mcpfs ★ | 150 | +48 | Rust | Apache-2.0 | A Rust FUSE and virtio-fs adapter that turns MCP catalogs into files and shell c |
| agent-browser | 55.4k | +1k | Rust | Apache-2.0 | Rust CLI and stdio MCP for agents that read and act on live web pages |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
| skills | 338.7k | +4.4k | Shell | MIT | Composable Markdown skills that bring engineering workflows to coding agents |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/openai/mcpfs.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about mcpfs
How do I integrate mcpfs with an existing MCP server or coding agent?
search and inspect tools with --help. Reading a tool file does not call it; executing it sends an MCP request through the mount daemon.What hardware does the adapter need, and what drives memory use?
Can a company self-host or redistribute mcpfs?
When is a native MCP client a better choice?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy