Supabase
MCP server for interacting with the Supabase platform
作者による説明(英語の原文)
PostgreSQL-backed virtual filesystem for agents: session isolation, shared stores, POSIX ops, RLS.
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
DATABASE_URL, VFS_AUTO_INIT, VFS_SESSION_ID, VFS_ENABLE_RLS「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"virtual-fs": {
"command": "npx",
"args": [
"-y",
"mcp-virtual-fs"
],
"env": {
"DATABASE_URL": "your-value",
"VFS_AUTO_INIT": "your-value",
"VFS_SESSION_ID": "your-value",
"VFS_ENABLE_RLS": "your-value"
}
}
}
}ターミナルでこれを実行します
claude mcp add virtual-fs --env DATABASE_URL=your-value --env VFS_AUTO_INIT=your-value --env VFS_SESSION_ID=your-value --env VFS_ENABLE_RLS=your-value -- npx -y mcp-virtual-fs動かす前に、空欄の値を入力してください。
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"virtual-fs": {
"command": "npx",
"args": [
"-y",
"mcp-virtual-fs"
],
"env": {
"DATABASE_URL": "your-value",
"VFS_AUTO_INIT": "your-value",
"VFS_SESSION_ID": "your-value",
"VFS_ENABLE_RLS": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"virtual-fs": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-virtual-fs"
],
"env": {
"DATABASE_URL": "your-value",
"VFS_AUTO_INIT": "your-value",
"VFS_SESSION_ID": "your-value",
"VFS_ENABLE_RLS": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
VFS_AUTO_INIT envVFS_SESSION_ID envVFS_ENABLE_RLS envこの設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント lu-zhengda で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
入力が必要なもの:DATABASE_URL
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(0.2.2)がレジストリに届いたのは9 か月前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:Supabase, MongoDB MCP Server, Elasticsearch MCP Server
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
MCP server for interacting with the Supabase platform
MongoDB Model Context Protocol Server
MCP server for interacting with Elasticsearch
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
An MCP server that provides AI agents with a persistent, PostgreSQL-backed virtual filesystem. Supports session-isolated file operations, cross-session shared stores, glob/grep search, and Row Level Security — all exposed as standard Model Context Protocol tools.
Works with any MCP client: Claude Desktop, Claude Code, Cursor, Windsurf, Cline, and others.
read, write, append, stat, ls, mkdir, rm, mv, glob, grep, stores**/*.ts) or search content by regex, powered by PostgreSQL trigram indexesVFS_AUTO_INIT=trueAgents work well with filesystems for context management, but coupling storage to the agent runtime means data is lost when pods restart or containers are recycled. This MCP server decouples storage from runtime by moving file operations to PostgreSQL — giving agents persistent, isolated, and searchable file storage without touching the host filesystem.
pg_trgm extension — included in most distributions)# Using Docker
docker run -d --name vfs-postgres \ -e POSTGRES_DB=vfs \ -e POSTGRES_PASSWORD=postgres \ -p 5432:5432 \ postgres:16-alpine
Add to your MCP client config (e.g., Claude Desktop claude_desktop_config.json or Claude Code .mcp.json):
{
"mcpServers": { "virtual-fs": { "command": "npx", "args": ["-y", "mcp-virtual-fs"], "env": { "DATABASE_URL": "postgresql://postgres:postgres@localhost:5432/vfs", "VFS_AUTO_INIT": "true" } } } }
That's it. VFS_AUTO_INIT=true creates the tables on first run.
Tool names are short POSIX-style names:
write({ path: "/notes/todo.md", content: "# My Tasks\n- Ship feature" })
read({ path: "/notes/todo.md" }) ls({ path: "/notes" }) glob({ pattern: "**/*.md" }) grep({ pattern: "TODO" })
All tools return structured JSON responses.
| Tool | Parameters | Returns | Description |
|---|---|---|---|
read | path | {content, size} | Read file contents |
write | path, content | {path, size, has_parents} | Write file (creates parents automatically) |
append | path, content | {path, appended_bytes} | Append to file (creates if missing) |
stat | path | {exists, type?, size?, children?} | Check existence and get metadata |
ls | path | {entries: [{name, type}]} | List directory (dirs first, then alphabetical) |
mkdir | path | {path, already_existed} | Create directory and parents (mkdir -p) |
rm | path | {path, deleted} | Remove file or directory recursively |
mv | source, destination | {source, destination} | Move/rename file or directory |
glob | pattern | {files, count} | Find files by glob (e.g., **/*.ts, **/*.{js,ts}) |
grep | pattern, path_filter? | {matches, count} | Search file contents by regex |
stores | *(none)* | {stores, count} | List all persistent store names |
All tools (except stores) accept an optional store parameter for cross-session persistent storage.
Sessions are handled automatically — no session ID in tool parameters.
How it works:
| Transport | Session identity | Behavior |
|---|---|---|
| stdio | Auto-generated UUID per process | Each MCP connection = unique session |
| HTTP/SSE | Transport-provided sessionId | MCP protocol handles it |
| Any | VFS_SESSION_ID env var | Deterministic/resumable sessions |
Priority: transport sessionId > VFS_SESSION_ID env var > auto-generated UUID.
To resume a previous session across process restarts, set a deterministic session ID:
{
"env": { "DATABASE_URL": "postgresql://...", "VFS_SESSION_ID": "my-agent-session-1" } }
Named stores persist across sessions. Any session can read/write to a store by passing the store parameter:
// Session A writes to a store
write({ path: "/context.md", content: "project notes", store: "agent-memory" })
// Session B (days later) reads from the same store read({ path: "/context.md", store: "agent-memory" })
// Without store, operations target the session's own namespace write({ path: "/scratch.txt", content: "session-only data" })
// List all available stores stores()
Stores are auto-created on first use.
| Variable | Required | Default | Description |
|---|---|---|---|
DATABASE_URL | Yes | — | PostgreSQL connection string |
VFS_AUTO_INIT | No | false | Auto-create tables on startup |
VFS_SESSION_ID | No | random UUID | Deterministic session ID |
VFS_ENABLE_RLS | No | false | Enable Row Level Security |
VFS_STORAGE_BACKEND | No | postgres | Storage backend type |
If you prefer to manage the schema yourself instead of using VFS_AUTO_INIT:
psql $DATABASE_URL -f sql/schema.sql
RLS provides database-enforced session isolation. Even if application code has a bug that omits a WHERE session_id = clause, PostgreSQL itself prevents cross-session access.
# Run after schema.sql
psql $DATABASE_URL -f sql/rls.sql
psql $DATABASE_URL -c "ALTER ROLE vfs_app PASSWORD 'your-secure-password'"
Then configure the MCP server to connect as vfs_app:
{
"env": { "DATABASE_URL": "postgresql://vfs_app:your-secure-password@localhost:5432/vfs", "VFS_ENABLE_RLS": "true" } }
git clone https://github.com/lu-zhengda/mcp-virtual-fs.git
cd mcp-virtual-fs npm install npm run build
| Command | Description |
|---|---|
npm run build | Compile TypeScript |
npm test | Run all tests (requires Docker) |
npm run test:unit | Run unit tests only |
npm run test:integration | Run integration tests only |
npm run lint | Run ESLint |
npm run lint:fix | Auto-fix lint issues |
npm run dev | Run with tsx (no build step) |
Tests use testcontainers to spin up real PostgreSQL instances in Docker. No mocks — the integration tests exercise actual SQL queries, trigram indexes, and RLS policies.
# Requires Docker running
npm test
Ephemeral sessions can be cleaned up periodically:
DELETE FROM vfs_sessions
WHERE is_persistent = false AND created_at < now() - interval '7 days';
The ON DELETE CASCADE on vfs_nodes handles file cleanup automatically. Persistent stores (created via the store parameter) are never affected.
MIT