OpenAI mcpfs is an open-source tool that mounts one or more MCP servers as a read-only Linux filesystem. Resources and skills become files you open with cat and grep. Each tool becomes an executable script with --help. Your coding agent explores MCP with plain shell commands instead of tool-call schemas.
OpenAI published the repo on December 1, 2026 under Apache-2.0. It’s written in Rust and picked up close to 100 GitHub stars in its first two days. OpenAI calls it a developer demo, not production software, and says to use it only with MCP servers you trust.
Below: what it does, why it suits coding agents, how to mount it, its limits, and how to pair it with Apidog CLI so your agent tests the code it writes.
What is OpenAI mcpfs?
OpenAI mcpfs is a Rust program that turns an MCP server’s catalog into a directory tree. You mount it locally through Linux FUSE, or serve it to a Linux guest VM over vhost-user virtio-fs. Inside the mount, resources/ and skills/ hold readable files, tools/ holds runnable scripts, and a search command finds entries by name or description.
The mcpfs repository builds three binaries:
| Binary | What it does |
|---|---|
mcpfs-fusefs |
Mounts MCP servers on a local Linux host with FUSE |
mcpfs-virtiofs |
Serves the same tree to a Linux guest VM over vhost-user virtio-fs |
mcpfs |
Guest-side helper that runs tool scripts inside the VM |
For a server that advertises a resource at foo://a/b/c, a skill called demo and a tool called do_stuff, the mount looks like this:
search
resources/foo/a/b/c
resources/skill/demo/SKILL.md
skills/demo/SKILL.md
skills/demo/references/guide.txt
tools/do_stuff
Skills follow the MCP Skills extension, and mcpfs checks each file’s advertised SHA-256 digest and size when you open it. Prompts, sampling, interactive elicitation and interactive OAuth flows have no filesystem mapping, so they don’t show up.

Why a filesystem view of MCP matters for coding agents
Today a coding agent reaches an MCP server through its client, which loads every tool’s name, description and JSON schema into the session. The catalog sits in context whether the agent needs it or not, and only MCP clients can use it.
mcpfs flips that around. Every coding agent already knows how to use a shell, so the catalog becomes something it reads on demand:
- Discovery is
lsandsearch. The agent liststools/or runssearch --tools 'OpenAPI'and reads only what matches. - Docs are files. A resource or
SKILL.mdis opened withcat, filtered withgrepand piped like any other file. - Tools are commands.
tools/<name> --helpprints the tool’s description and parameters, and running it prints the result to stdout. - Any agent with a shell works. Claude Code, Codex, OpenCode or a script in CI can use the mount without an MCP client.
The agent pays tokens for the files it reads, not the whole catalog up front. No benchmark exists yet, so treat that as a design property, not a measured number.
If you’re new to the protocol, start with what MCP is and how MCP servers work. The trade-off mcpfs makes is close to the one in MCP skills vs MCP servers: move knowledge out of the tool list and into files the agent opens when it needs them.
How to build and mount OpenAI mcpfs
You need Linux, Rust and Cargo, a C compiler, pkg-config and the OpenSSL development headers. For an unprivileged mount, your user needs access to /dev/fuse and the FUSE 3 fusermount3 helper. The tool scripts run in Bash.
- Clone and build all three binaries from the repository root:
git clone https://github.com/openai/mcpfs.git
cd mcpfs
cargo build --workspace --locked --release
- Mount the public OpenAI Docs MCP server. The mount runs in the foreground, so keep this terminal open:
mkdir -p /tmp/openai-docs
target/release/mcpfs-fusefs mount https://developers.openai.com/mcp /tmp/openai-docs
- Use it from a second terminal, or let your agent do it:
ls /tmp/openai-docs/tools
/tmp/openai-docs/tools/search_openai_docs --help
/tmp/openai-docs/tools/search_openai_docs --pretty --query 'Responses API streaming' --limit=1
- Unmount when you’re done:
fusermount3 -u -- /tmp/openai-docs
The OpenAI Docs MCP server is public, so this mount needs no token. The repo also ships ./examples/fuse-single/run.sh, a self-contained demo.
Running tools as shell commands
Each tool script accepts input three ways, and all three send the same request:
tool=/tmp/openai-docs/tools/search_openai_docs
"$tool" --query 'Responses API streaming' --limit=1
printf '%s\n' '{"query":"Responses API streaming","limit":1}' | "$tool"
"$tool" '{"query":"Responses API streaming","limit":1}'
A few rules worth knowing before your agent starts calling tools:
- Named options accept
--name VALUEor--name=VALUE. Numbers, booleans, arrays and objects are passed as JSON, so--items '[1,2]'sends an array. - Output is compact JSON by default. Add
--prettyto indent it. A single plain text block prints as text. - Errors return a nonzero exit code, so
set -escripts and agents notice failures. - Timeouts: mcpfs starts cancelling a tool call after five seconds without a response. A timed-out tool may already have changed remote state.
Opening a tool script as text never runs it, so an agent can read its schema safely first.

Mount multiple MCP servers, stdio servers and tokens
One mount can hold several servers. Repeat --server NAME URI, and use stdio:// with --command for a local server:
mkdir -p /tmp/mcp
target/release/mcpfs-fusefs mount /tmp/mcp \
--server docs https://developers.openai.com/mcp \
--server local stdio:// --command /path/to/mcp-server
Each server gets its own directory, plus merged tools/, resources/ and skills/ views. If two servers both expose a search tool, the merged view shows tools/docs:search and tools/local:search.
For a remote server that needs a bearer token:
- Single server: set
MCPFS_BEARER_TOKENin the environment of the mounting process. - Named servers: pass
--bearer-token-env VARfor each server, before its--command. - Always use
https://with a token. Overhttp://, mcpfs sends it in the clear.
The search command reads the local catalog snapshot, so it never makes an MCP request:
/tmp/mcp/search 'streaming'
/tmp/mcp/search --tools 'OpenAPI'
OpenAI mcpfs limits to know before you use it
The README is direct about what mcpfs isn’t:
| Limit | What it means for you |
|---|---|
| Linux only | FUSE mounts need a Linux host; on macOS or Windows, run it in a Linux VM |
| Read-only | Agents read files and run tools; nothing is written back through the filesystem |
| Developer demo | Not production ready; trusted MCP servers only |
| Discovery at mount time | Names and tool schemas are fixed until you remount |
| Shared startup | A slow or faulty server delays the whole mount, for every server on it |
| Catalog budget | All servers share a 64 MiB catalog budget and a 262,144-node limit; a bigger catalog fails to mount |
In VM setups, any process that can run the mounted tools acts with the backend’s MCP credentials, so read the QEMU vhost-user docs before you wire it into a guest.
Mount your API spec and let your agent test with Apidog CLI
The docs mount gives your agent OpenAI’s reference. The same pattern works for your own API. The Apidog MCP server is a stdio server that exposes your Apidog project’s OpenAPI spec, so mount it next to the docs:
export APIDOG_ACCESS_TOKEN=<your-apidog-token>
target/release/mcpfs-fusefs mount /tmp/mcp \
--server docs https://developers.openai.com/mcp \
--server apidog stdio:// --command npx -y apidog-mcp-server@latest --project-id=<projectId>
Your agent now finds the spec tools with /tmp/mcp/search --tools oas and reads your endpoints as command output, the same way it reads the OpenAI docs. Then it closes the loop with Apidog CLI: it writes the code, creates test cases for it and runs them.

Install and log in once:
npm install -g apidog-cli@latest
apidog auth login --with-token <YOUR_TOKEN>
apidog skill install
Then give your agent one prompt:
Read my API spec through /tmp/mcp (run search --tools oas first). Implement
POST /orders to match it. Then create Apidog test cases in project <projectId>
that check a 201 for a valid order, a 400 for a missing customerId and a 401
without a token. Run them against environment <envId>, fix any failures in the
code and run them again.
The agent checks the endpoint list, reads the payload schema, validates its test case and runs it:
apidog endpoint list --project <projectId>
apidog cli-schema get test-case-create
apidog cli-schema validate test-case-create --file case-201.json
apidog test-case create --project <projectId> --file case-201.json
apidog run --test-case <caseId> --project <projectId> -e <envId> -r cli,json

The same apidog run with -r junit drops into CI; the Apidog CLI in Claude Code guide and the CI/CD pipeline walkthrough cover both. To check the MCP servers themselves, see how to test MCP servers.
Once that loop works for one agent, the next step is the team. Sharkly is a board where you assign tasks like this to coding agents running on your own computers with your own Claude Code, Codex or OpenCode plan, run several in parallel and review what they ship before it merges. It’s free to start.
Conclusion
OpenAI mcpfs turns MCP catalogs into files and commands, so any coding agent with a shell can browse docs, read skills and call tools. It’s a Linux-only, read-only developer demo, so keep it to trusted servers for now.
Start with the public OpenAI Docs mount, then add your own API spec through the Apidog MCP server and let your agent test what it builds with Apidog CLI.
FAQ
What is OpenAI mcpfs used for? It exposes MCP servers as a read-only filesystem, so a coding agent reads resources and skills with cat and grep and runs MCP tools as shell commands. It helps when your agent has a shell but no MCP client.
Does mcpfs work on macOS or Windows? Not directly. FUSE mounts need a Linux host with /dev/fuse and fusermount3. On a Mac or Windows machine, run it inside a Linux VM with FUSE access.
Can mcpfs write data back to an MCP server? The filesystem is read-only, but tools still run. Executing a script under tools/ sends a real MCP tool call, so a tool that changes remote state will change it. Only mount servers you trust.
How do I pass an API token to mcpfs? For a single server, set MCPFS_BEARER_TOKEN in the mounting process’s environment. For named servers, give each one --bearer-token-env VAR. Use https:// endpoints, because mcpfs sends tokens in the clear over http://.
Is mcpfs ready for production? No. OpenAI labels it a developer demo that isn’t production ready. Discovery runs once at mount time, a slow server delays the whole mount and there’s no interactive OAuth.



