# mcpfs

> Open-source developer demo from OpenAI that mounts MCP servers as a read-only Linux filesystem with tools runnable as shell commands.

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.

## 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

## Integrations
Model Context Protocol, FUSE, virtio-fs, QEMU, MCP Skills extension, OpenAI Docs MCP

## Platforms
LINUX, API, CLI

## Pricing
Open Source

## Links
- Website: https://github.com/openai/mcpfs
- Documentation: https://github.com/openai/mcpfs
- Repository: https://github.com/openai/mcpfs
- EveryDev.ai: https://www.everydev.ai/tools/mcpfs
