Virtual Filesystem MCP Server
by lu-zhengdaio.github.lu-zhengda/virtual-fsv0.2.2
MCP server providing AI agents with persistent, PostgreSQL-backed virtual filesystem — session-isolated file operations, cross-session stores, glob/grep search, and Row Level Security
context tax
queued
security
queued
cold start
queued
freshness
Stale8mo ago
Install Virtual Filesystem MCP server
Install in Claude Code
claude mcp add virtual-fs -e DATABASE_URL='<database-url>' -- npx -y mcp-virtual-fsInstall in Cursor
{
"mcpServers": {
"virtual-fs": {
"command": "npx",
"args": [
"-y",
"mcp-virtual-fs"
],
"env": {
"DATABASE_URL": "<database-url>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"virtual-fs": {
"command": "npx",
"args": [
"-y",
"mcp-virtual-fs"
],
"env": {
"DATABASE_URL": "<database-url>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"virtual-fs": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-virtual-fs"
],
"env": {
"DATABASE_URL": "<database-url>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"virtual-fs": {
"command": "npx",
"args": [
"-y",
"mcp-virtual-fs"
],
"env": {
"DATABASE_URL": "<database-url>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| DATABASE_URL | yes | yes | PostgreSQL connection string (e.g. postgresql://user:pass@host:5432/dbname) |
| VFS_AUTO_INIT | — | — | Auto-create database tables on startup (set to 'true' for first run) |
| VFS_SESSION_ID | — | — | Deterministic session ID for resumable sessions across restarts |
| VFS_ENABLE_RLS | — | — | Enable PostgreSQL Row Level Security for database-enforced session isolation |
Freshness
Stale — last maintenance signal 8mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-02-16 · 8mo ago · GitHub
Latest release
2026-02-11 · 8mo ago · GitHub · v0.2.2
Package published
no data · npm/PyPI
Registry entry updated
2026-02-11 · 8mo ago · official registry · v0.2.2
FAQ
›How do I install the Virtual Filesystem MCP server in Claude Code?
Run: claude mcp add virtual-fs -e DATABASE_URL='<database-url>' -- npx -y mcp-virtual-fs. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Virtual Filesystem require an API key?
Yes. It expects DATABASE_URL, of which 1 is a secret.
›Can I use Virtual Filesystem as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Virtual Filesystem in the official MCP registry?
Yes, as io.github.lu-zhengda/virtual-fs.
Alternatives to Virtual Filesystem
Other database MCP servers.