Af Filesystem
FreeNot checkedMCP server for per-user, impersonated filesystem access on the AF platform
About
MCP server for per-user, impersonated filesystem access on the AF platform
README
An MCP server that gives an AF (Analysis Facility) user browse/read access to
their own files on the AF's shared NFS home (/home/<unixname>) and Ceph data
area (/data/<unixname>) — nothing more. Designed to sit behind
af-mcp-platform's credential broker so an LLM session can look at a user's own
analysis outputs, condor logs, and scratch files without a human copying paths
around.
What it does
| Tool | Does | Read/write |
|---|---|---|
fs_list |
List a directory | read-only |
fs_read |
Read a file, by byte range or line range, including head/tail | read-only |
fs_stat |
Stat a path — size, mtime, type, permissions | read-only |
fs_grep |
Search for a pattern across files under a directory, capped in files scanned and matches returned | read-only |
That is the entire v1 tool surface: all four tools are read-only
(read_only_hint=true in their MCP tool annotations) and confined to the
caller's own two AF roots (open_world_hint=false). There is deliberately no
write tool, no delete, no chmod, no arbitrary command execution, and no
full-tree walk (directory-size, duplicate-finder). See CLAUDE.md for the
design rationale and phase-2 (write) plan.
Security model
Every filesystem operation for user alice runs in a short-lived helper
subprocess impersonating alice's real uid/gid — the server process itself
(running as root, holding only CAP_SETUID/CAP_SETGID) never reads or writes
a byte of user data directly. This means the kernel (and, for the NFS-mounted
homes, the NFS server) enforces every permission check against the real
identity: even a bug in this server's own path-pinning logic can only let alice
reach what alice's real uid could already reach. See CLAUDE.md § "Security
model" and src/af_filesystem_mcp/paths.py for the full design rationale, and
maniaclab/af-mcp-platform#188
for the workplan and the (rejected) alternatives this design was chosen over.
Installation
pip install af-filesystem-mcp
Or with pixi:
pixi add af-filesystem-mcp
Requirements
- Python 3.10+
- Linux (the impersonation mechanism is POSIX
setuid/setgid; there is no Windows/macOS deployment target — localstdiomode runs fine on any OS for development, since it never impersonates)
Quick start (local development, stdio)
In stdio mode there is exactly one caller (you), so no impersonation happens —
the server operates directly as your own uid/gid, confined to your own $HOME
and a configurable data root:
af-filesystem-mcp serve --data-root /data
Broker mode (production, HTTP)
af-filesystem-mcp serve --transport http \
--broker-url https://mcp.af.uchicago.edu \
--broker-audience af-filesystem-mcp \
--home-root /home --data-root /data
Bearers are broker-issued identity JWTs (aud=af-filesystem-mcp) carrying
uid/gid/unixname POSIX claims (af-mcp-platform's
identityProviders[].targetOptions.af-filesystem-mcp.includePosix: true).
Requires the broker extra: pip install af-filesystem-mcp[broker].
Development
pixi install
pixi run test
pixi run lint
See CLAUDE.md for architecture, the impersonation/path-confinement design, and
conventions for adding a new tool.
Install Af Filesystem in Claude Desktop, Claude Code & Cursor
unyly install af-filesystemInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add af-filesystem -- uvx af-filesystem-mcpStep-by-step: how to install Af Filesystem
FAQ
Is Af Filesystem MCP free?
Yes, Af Filesystem MCP is free — one-click install via Unyly at no cost.
Does Af Filesystem need an API key?
No, Af Filesystem runs without API keys or environment variables.
Is Af Filesystem hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Af Filesystem in Claude Desktop, Claude Code or Cursor?
Open Af Filesystem on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Unyly Deploy
Deploy sites and MCP servers to Unyly straight from your AI agent
by UnylyAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiPayMCP
Lightweight payments layer for MCP servers: turn tools into paid endpoints with a two-line decorator. [PyPI](https://pypi.org/project/paymcp/) · [npm](https://w
by blustAIServer For Power BI
Enables exploring Microsoft Fabric / Power BI workspaces and semantic models, and executing ad-hoc DAX queries.
by Mitsubishi-FusoTemplate MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Compare Af Filesystem with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
