openai/mcpfs
Developer ToolsA Rust demo that mounts MCP servers as a read-only Linux filesystem, exposing resources, skills, and tools as files and shell commands.
What it does
mcpfs exposes one or more MCP servers as a read-only filesystem. The FUSE backend mounts it on a local Linux host; the virtio-fs backend serves it to a Linux guest over vhost-user queues. Resources and skill files become ordinary files you can read with Unix tools, and each advertised tool becomes an executable Bash script whose options map to the tool's input schema.
It is explicitly a developer demo, not production ready. Mounting processes a server's catalog immediately, so a slow or faulty server delays startup for every server on the same mount. Only mount MCP servers you trust README note.
Build and try it
Build all three binaries on Linux from the repository root. The TLS backend needs a C compiler, pkg-config, and OpenSSL development headers:
cargo build --workspace --locked --release
Binaries land in target/release/: mcpfs-fusefs for local mounts, mcpfs-virtiofs for the VM backend, and mcpfs for the guest helper. To confirm a working setup, run the single-server demo, which uses a bundled Python fixture and unmounts on exit:
./examples/fuse-single/run.sh
For a real mount on a FUSE-capable host (unprivileged users need /dev/fuse and fusermount3), mount the OpenAI Docs MCP server and query it from another terminal OpenAI Docs MCP:
mkdir -p /tmp/openai-docs
target/release/mcpfs-fusefs mount https://developers.openai.com/mcp /tmp/openai-docs
ls /tmp/openai-docs/tools
/tmp/openai-docs/tools/search_openai_docs --pretty --query 'Responses API streaming' --limit=1
fusermount3 -u -- /tmp/openai-docs
The mount runs in the foreground. Multiple servers use repeated --server NAME URI flags, plus --command for stdio servers; the examples cover single and multi-server FUSE and QEMU setups fuse-single, fuse-multi, qemu-single, qemu-multi.
Inspecting and invoking tools
Open a tool script as text to read its name, description, and schema in comments, or pass --help. Named options and JSON input are equivalent; JSON can also come from stdin or a positional argument. Results go to stdout, and errors exit nonzero. A built-in search command matches literal, case-insensitive substrings against names and descriptions and runs from the local catalog snapshot without an MCP request README tool arguments.
Limits and constraints
- Linux only; the virtio-fs path needs a guest with the
mcpfsbinary and Bash installed for executable tool scripts. - All servers share a 64 MiB catalog budget and a 262,144-node projection limit; exceeding either fails the mount at discovery.
- Resources and skills are cached per server with a 30-second default TTL; names and tool schemas require a remount to refresh.
- Tool calls time out after five seconds without a response, and a timed-out tool may already have changed remote state.
- Use
https://whenever supplying a bearer token; overhttp://the token is sent in the clear. - Prompts, sampling, interactive elicitation, and interactive OAuth flows have no filesystem representation.
- A process that can execute mounted tools can act with the backend's MCP credentials.
HotRepo's take
In its first recorded day on HotRepo's new-project list for Rust, mcpfs picked up a handful of stars and sat at about 105 by the 2026-12-03 snapshot. That is a small sample and the daily all-language rank is unrecorded, so the numbers describe early developer interest rather than adoption. The interesting design choice is the boundary itself: exposing MCP resources, skills, and tools through the file and process interfaces Unix already has, with a shared VFS crate reused across FUSE and virtio-fs. The README is candid about the demo status, the per-mount catalog budget, and the five-second cancellation behavior, which gives readers concrete criteria for judging whether it fits a prototype or a sandboxed VM workflow.
License
Apache-2.0 LICENSE.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.