mcpfs
Open-source developer demo from OpenAI that mounts MCP servers as a read-only Linux filesystem with tools runnable as shell commands.
At a Glance
About mcpfs
mcpfs is an open-source project from OpenAI that exposes one or more MCP servers as a read-only filesystem on Linux. Agents and users can open resource and skill files with ordinary Unix tools and run each mounted MCP tool as a shell command. The README states plainly that mcpfs is a developer demo, is not production ready, and should only be used with MCP servers you trust.
What It Is
mcpfs turns an MCP server's catalog into a directory tree. It can be mounted locally through Linux FUSE or served to a Linux guest over vhost-user virtio-fs. Resources appear under resources/, skills under skills/, and tools under tools/ as executable Bash scripts. A search script matches names and descriptions across the catalog snapshot.
How the Workflow Runs
You build three Rust binaries: mcpfs-fusefs for local mounts, mcpfs-virtiofs as the VM backend, and mcpfs as a guest helper. You then mount a Streamable HTTP endpoint or a local stdio server, or several named servers at once. Merged views handle name collisions by prefixing tool names with the server name.
Tools accept named options or a JSON object, and print structuredContent or text output to stdout. Tool errors, protocol errors, and invalid input produce a nonzero exit. Tool scripts carry their name, description, and schemas in comments and respond to --help. Resource and skill metadata is exposed as extended attributes.
Behavior and Limits to Know
Mounting processes the server catalog immediately, so a slow or faulty server can delay startup for every server on the same mount. Discovery runs once per server, so you remount to refresh names and tool schemas. Prompts, sampling, interactive elicitation, and interactive OAuth flows have no filesystem mapping. Bearer tokens should be sent only over https://, since http:// sends them in the clear. In virtio-fs mode, a process that can execute the mounted tools can act with the backend's MCP credentials.
Collections
Popular collections
- Code Knowledge Graphs
Collection by @evtuff
- Obsidian Agentic & AI plugins
Collection by @samofcode
- Codebase Context Generators
Collection by @joemseifi
- Frameworks
Collection by @joemseifi
Add mcpfs to one of your collections.
Community Discussions
Be the first to start a conversation about mcpfs
Share your experience with mcpfs, ask questions, or help others learn from your insights.
Pricing
Open Source (Apache-2.0)
Self-hosted mcpfs core under the Apache License 2.0. The README describes it as a developer demo that is not production ready.
- Licensed under Apache License, Version 2.0
- Mounts MCP servers as a read-only filesystem via Linux FUSE or vhost-user virtio-fs
- Run mounted MCP tools as shell commands with named options or JSON input
- Developer demo, not production ready; use only with trusted MCP servers
- Build from source with Rust and Cargo on Linux
Capabilities
Key Features
- Mounts MCP servers as a read-only Linux filesystem
- Local mounts via Linux FUSE
- Guest serving over vhost-user virtio-fs
- Resources and skills readable with normal Unix tools
- MCP tools exposed as executable Bash scripts with --help
- Tool input via named options, JSON argument, or stdin
- Mounts multiple named servers with merged tools, resources, and skills views
- Catalog search script across names and descriptions
- Supports Streamable HTTP and local stdio servers
- Bearer token authentication through environment variables
- MCP Skills extension support with digest verification
- Metadata exposed as extended attributes
- Resource and skill content cache with TTL and subscription-based invalidation
