What Is OpenAI mcpfs? M

OpenAI mcpfs mounts MCP servers as a read-only Linux filesystem: resources and skills become files, tools become shell commands. Here is how it works, how to mount it, its limits, and how to pair it with Apidog CLI.

Ashley Innocent

Ashley Innocent

4 December 2026

What Is OpenAI mcpfs? M

Apidog for Enterprise

On-Premises Deploy

SSO & RBAC

SOC 2 Compliant

Explore Apidog Enterprise

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.

Schema: mcpfs-fusefs connects to an HTTP MCP server and a stdio MCP server, discovers their catalogs once, and exposes a read-only mount with tools, resources, skills and a search command that a coding agent reads through its shell

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:

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.

  1. 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
  1. 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
  1. 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
  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:

Opening a tool script as text never runs it, so an agent can read its schema safely first.

Sequence: the coding agent runs a tool script, the script hands the JSON arguments to the mcpfs helper, the helper passes them to the mcpfs daemon through ioctl calls on the mounted file, the daemon sends a tools/call request to the MCP server, and the result streams back to stdout

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:

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.

Schema: one mcpfs mount holds the OpenAI Docs MCP server and the Apidog MCP server with your project's OpenAPI spec; the coding agent reads both, writes the code, then uses Apidog CLI to create and run test cases against your environment

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
Apidog CLI listing the endpoints of a sandbox project, the first step the agent runs before it creates and runs test cases

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.

Explore more

What Is GPT-6.2 Cyber? OpenAI's New Security Model

What Is GPT-6.2 Cyber? OpenAI's New Security Model

GPT-6.2 Cyber is OpenAI's newest cybersecurity model, in early access through the API, Codex and Amazon Bedrock. What changed from GPT-6 Cyber, who qualifies, the $25M Bedrock credit program and how to get your integration ready.

2 December 2026

What Is Amazon Ergo? The Open-Weights Model Explained

What Is Amazon Ergo? The Open-Weights Model Explained

Amazon Ergo is Amazon's first open-weights model: a 1.1T mixture-of-experts coding model with a 1M-token context, on Bedrock at $1/$3 per million tokens. Here's what it is and how to call it.

2 December 2026

What Is Soma-1X Lite? The 2B Open OCR Model That Reads Handwriting and African Languages

What Is Soma-1X Lite? The 2B Open OCR Model That Reads Handwriting and African Languages

Soma-1X Lite is Amini's 2B open OCR model: located block output, strong African-language diacritics, self-hosted on one GPU. What it does, what its benchmarks mean, and how to serve and test it.

1 December 2026

Practice API Design-first in Apidog

Discover an easier way to build and use APIs

What Is OpenAI mcpfs? M