原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Filelayer

作者:filelayer版本 0.35.2i★ –i在你的电脑上运行
注册名称dev.filelayer/core

安装

概览

作者提供的说明(英文原文)

User files for a SaaS, under one person's authority: list, share with an expiry, revoke.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他
  • 你需要填写:DATABASE_URL, FILELAYER_AS, FILELAYER_ORG, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: DATABASE_URL, FILELAYER_AS, FILELAYER_ORG, FILELAYER_DATA_DIR, S3_ENDPOINT, S3_BUCKET, S3_REGION, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY, FILELAYER_MCP_AGENT_LABEL, FILELAYER_MCP_ALLOW_DESTRUCTIVE, FILELAYER_MCP_EXPOSE_AUDIT, FILELAYER_MCP_RETURN_BYTES, FILELAYER_BASE_URL

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "core": {
      "command": "npx",
      "args": [
        "-y",
        "@filelayer/core",
        "-p",
        "@filelayer/core",
        "filelayer-mcp"
      ],
      "env": {
        "DATABASE_URL": "your-value",
        "FILELAYER_AS": "your-value",
        "FILELAYER_ORG": "your-value",
        "FILELAYER_DATA_DIR": "your-value",
        "S3_ENDPOINT": "your-value",
        "S3_BUCKET": "your-value",
        "S3_REGION": "your-value",
        "S3_ACCESS_KEY_ID": "your-value",
        "S3_SECRET_ACCESS_KEY": "your-value",
        "FILELAYER_MCP_AGENT_LABEL": "your-value",
        "FILELAYER_MCP_ALLOW_DESTRUCTIVE": "your-value",
        "FILELAYER_MCP_EXPOSE_AUDIT": "your-value",
        "FILELAYER_MCP_RETURN_BYTES": "your-value",
        "FILELAYER_BASE_URL": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add core --env DATABASE_URL=your-value --env FILELAYER_AS=your-value --env FILELAYER_ORG=your-value --env FILELAYER_DATA_DIR=your-value --env S3_ENDPOINT=your-value --env S3_BUCKET=your-value --env S3_REGION=your-value --env S3_ACCESS_KEY_ID=your-value --env S3_SECRET_ACCESS_KEY=your-value --env FILELAYER_MCP_AGENT_LABEL=your-value --env FILELAYER_MCP_ALLOW_DESTRUCTIVE=your-value --env FILELAYER_MCP_EXPOSE_AUDIT=your-value --env FILELAYER_MCP_RETURN_BYTES=your-value --env FILELAYER_BASE_URL=your-value -- npx -y @filelayer/core -p @filelayer/core filelayer-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "core": {
      "command": "npx",
      "args": [
        "-y",
        "@filelayer/core",
        "-p",
        "@filelayer/core",
        "filelayer-mcp"
      ],
      "env": {
        "DATABASE_URL": "your-value",
        "FILELAYER_AS": "your-value",
        "FILELAYER_ORG": "your-value",
        "FILELAYER_DATA_DIR": "your-value",
        "S3_ENDPOINT": "your-value",
        "S3_BUCKET": "your-value",
        "S3_REGION": "your-value",
        "S3_ACCESS_KEY_ID": "your-value",
        "S3_SECRET_ACCESS_KEY": "your-value",
        "FILELAYER_MCP_AGENT_LABEL": "your-value",
        "FILELAYER_MCP_ALLOW_DESTRUCTIVE": "your-value",
        "FILELAYER_MCP_EXPOSE_AUDIT": "your-value",
        "FILELAYER_MCP_RETURN_BYTES": "your-value",
        "FILELAYER_BASE_URL": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "core": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@filelayer/core",
        "-p",
        "@filelayer/core",
        "filelayer-mcp"
      ],
      "env": {
        "DATABASE_URL": "your-value",
        "FILELAYER_AS": "your-value",
        "FILELAYER_ORG": "your-value",
        "FILELAYER_DATA_DIR": "your-value",
        "S3_ENDPOINT": "your-value",
        "S3_BUCKET": "your-value",
        "S3_REGION": "your-value",
        "S3_ACCESS_KEY_ID": "your-value",
        "S3_SECRET_ACCESS_KEY": "your-value",
        "FILELAYER_MCP_AGENT_LABEL": "your-value",
        "FILELAYER_MCP_ALLOW_DESTRUCTIVE": "your-value",
        "FILELAYER_MCP_EXPOSE_AUDIT": "your-value",
        "FILELAYER_MCP_RETURN_BYTES": "your-value",
        "FILELAYER_BASE_URL": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • DATABASE_URL 机密 必填 env
    Your own PostgreSQL, where this library keeps file ownership, grants and the audit chain. Apply node_modules/@filelayer/core/schema.sql once before starting.
  • FILELAYER_AS 必填 env
    The ONE subject this server speaks for, in your own id space. Fixed for the life of the process: no tool reads it as an argument and no tool can change it, which is the only reason exposing these too…
  • FILELAYER_ORG 必填 env
    The organisation this server is scoped to, in your own id space.
  • FILELAYER_DATA_DIR env
    A local directory for the bytes. Needs no bucket and no IAM user. Set this OR the S3_* block: with neither, the server refuses to start rather than falling back to memory, which would work in a demo…
  • S3_ENDPOINT env
    An S3-compatible endpoint, for example https:// .r2.cloudflarestorage.com. Setting it makes S3_BUCKET, S3_ACCESS_KEY_ID and S3_SECRET_ACCESS_KEY required.
  • S3_BUCKET env
    The bucket. It must be private: this library decides who may be GIVEN a URL and has no say in who the object store will answer. `npx -p @filelayer/core filelayer doctor` reports whether yours serves…
  • S3_REGION env
    Region, or `auto` for Cloudflare R2.
  • S3_ACCESS_KEY_ID 机密 env
    Access key id for the bucket.
  • S3_SECRET_ACCESS_KEY 机密 env
    Secret access key for the bucket.
  • FILELAYER_MCP_AGENT_LABEL env
    How this agent names itself in the audit trail, recorded on every event these tools produce. It is what lets the chain separate "the partner opened this document" from "the partner's assistant opened…
  • FILELAYER_MCP_ALLOW_DESTRUCTIVE env
    Set to exactly `true` to register delete_file. Off by default because deleting is not recoverable and an agent that misreads a sentence deletes the wrong thing silently.
  • FILELAYER_MCP_EXPOSE_AUDIT env
    Set to exactly `true` to register file_audit. Off by default because the trail is an organisation's whole history and a tool that returns it copies every file name, actor and denial into the model's…
  • FILELAYER_MCP_RETURN_BYTES env
    Set to exactly `true` to register read_file. Off by default because a document returned by a tool is a document copied into a model's context; file_info plus a share link is usually what was actually…
  • FILELAYER_BASE_URL env
    The base of the share URLs this instance mints. Without it, share links come back without a URL.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过域名 filelayer.dev 验证(注册中心会核实域名所有权)

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32380 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32380 个服务器的 91% 更新
  • 基础检查结果等于或优于此分类中其他 32380 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Filelayer 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:DATABASE_URL, FILELAYER_AS, FILELAYER_ORG, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.35.2)于3天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, Dechonet MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211昨天更新
安装

Dechonet MCP

作者:node-man

30 security tools for AI agents: phishing links, exposure maps, DNS, SSL, PQC, history, pivots.

电脑或云端今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Filelayer

The file layer for SaaS applications. A customer's security review asks who opened a file and who was refused. A link you sent has to stop working now. Someone asks to be erased from your logs. Filelayer answers all three for the files your users upload: per-file permissions, links you can take back, and an audit trail of every allowed and denied access, on your own Postgres. → [filelayer.dev](https://filelayer.dev)

You tell Filelayer who the caller is. Filelayer decides what they may do with a file, serves the bytes with the right headers, and writes the audit event. For file access that goes through Filelayer, that decision is made in one place, packages/core/src/authz.ts, so you write no ownership checks in route handlers, no presigned-URL expiry logic, and no per-route access rules of your own.

Built to be adopted without us. The quickstart, the guides, the examples

and llms.txt are written so that you, or your coding agent, can integrate it

alone. Where it breaks, open an issue.

Free and open source; paid plans add support and priority, see

pricing.

Alpha, and the numbers behind that word are all on one page:

should you depend on this? ·

what it does not do ·

roadmap to 1.0

// Public avatar

const { url } = await fl.files.put(bytes, { public: true });

// Private, user-owned const { id } = await fl.files.put(bytes, { owner: 'user_123' }); const file = await fl.files.get(id, { as: 'user_123' });

// Multi-tenant, role-controlled await fl.files.put(bytes, { org: 'acme', owner: 'user_123' });

// Shared with an expiry, a password and a download cap, and revocable const share = await fl.shares.create(id, { as: 'user_123', expiresIn: 3600, maxDownloads: 3, password: 'hunter2', }); await fl.shares.revoke(share.grantId, { as: 'user_123' }); // this link, now

// Shared with a named user, and taken back. unshare is the one you want for // a person: create() is not idempotent, so revoking a single grant id you // happen to be holding can leave an earlier one live. await fl.shares.create(id, { as: 'user_123', withUser: 'user_456' }); await fl.shares.unshare(id, { as: 'user_123', user: 'user_456' }); // all of it

Start at whichever line matches your problem. Complexity is incremental: each tier adds one concept, and no tier makes you pay for a concept you are not using. → docs/QUICKSTART.md


The three layers

your application          fl.files.put / get / list, fl.shares, fl.orgs

you pass YOUR user id; nothing here knows a uuid ─────────────────────────────────────────────────────────────────────── Filelayer ONE authorization function answers every request grants, roles, expiry, download caps, revocation the audit event, written in the decision's own transaction so the log cannot disagree with it ─────────────────────────────────────────────────────────────────────── your Postgres 9 tables. Filelayer owns the schema, you own the your bucket database. Bytes go to S3, R2, B2 or a directory behind one adapter; storage is replaceable

Filelayer sits between the two things you already run. It brings no database and no storage of its own, and zero runtime dependencies.

It is authorization middleware, not row-level security. It decides for calls made through it, in your process. The schema additionally refuses cross-tenant grants, cross-project identities and delegation that amplifies authority from *every* writer, including a psql session — those are constraints and triggers. But there is no RLS policy in schema.sql, and a direct SELECT against these tables is filtered by nothing. Filelayer composes with database-level enforcement; it does not replace it.


What it is for, and what it is not for

Worth the overhead when: files are private, belong to specific people or tenants, and their permissions change over time. Documents, contracts, attachments, exports, anything with a share link you might later want back.

Not worth the overhead when:

You needUse insteadWhy
Public images at CDN volumea CDN-backed bucketDefault delivery proxies every byte. Redirect delivery (below) removes the proxy but is opt-in and narrow.
Video or audio at scalea CDN / media serviceSeeking works — the shipped routes answer Range with 206. But default delivery proxies every byte through your server, and there is no CDN on that path.
Browser → storage upload with your server out of the data path, in developmenta real bucketFsStorage mints the credential so the client code is identical, but it receives the bytes itself and says so: via: 'server'. Only S3 and R2 keep your process out of the path.
Resumable or multipart direct uploadpresigned S3 directly / tusOne signed PUT, one object. There is no resume.
Thumbnails, transforms, format negotiationCloudinary / imgixWe have none.
Against the two things you would otherwise do
Hand-rolled presigned URLsSupabase StorageFilelayer
Revoke a link somebody already holdsNo. A signature is valid until its clock runs out; your options are a short TTL or proxying the bytes yourselfNo. Signed URLs are signed with an internal key and cannot be revokedYes, on the next request, transitively through the delegation chain
"Everyone in this org may read"your own join, recomputed on every join and leaveexpressible as an RLS policyone grant row; membership resolves at request time
Who accessed this, including refusalswhatever you wrotenot a product feature; Postgres logging is not an access loghash-chained per tenant, written in the decision's transaction
Download capyour own counter, and the race in itnoneatomic, reserved before the bytes move
CDN on the private pathyes, and that is why you cannot revokeyes, same tradeno — the two facts are the same fact
Public images at volumeyesyesno. Use a bucket behind a CDN
Lines for a public avatar~101016

The last two rows are losses and they are not close. We publish the full comparison, including every case we lose, in ARCHITECTURE-PROGRESSIVE.md §5. Short version: for a public avatar, Supabase is 10 lines and Filelayer is 16. If avatars are your whole problem, use Supabase.


The five security properties

These are the product. Each is enforced in the schema or the authorization engine, not by convention, and each has tests named after it.

PropertyWhat it means in practice
P1Deny by defaultThere is no public boolean anywhere in the schema. Public delivery is an explicit, revocable, auditable grant row — there is no flag to leave on by accident. This is a property of the schema, not of your object store: Filelayer cannot make your bucket private, and a public bucket bypasses everything on this page. That is the one configuration step it cannot do for you — QUICKSTART §7.
P2No ambient authorityKnowing an object key, a URL or a file id grants nothing. Storage location is never an input to a decision.
P3Cross-tenant grants are structurally impossible to writeA grant's org_id must equal its file's org_id, enforced by the composite foreign key FOREIGN KEY (file_id, org_id) REFERENCES file (id, org_id). No writer — including a migration or a psql session — can create a grant pointing at another tenant's file. This is a write-side integrity constraint, not a read filter: it makes the *row* unrepresentable. Reads are scoped by the engine, not by the database.
P4A URL never outlives its permissionEvery signed URL embeds a grant id and is re-validated on every request, transitively through the whole delegation chain. Revocation beats a live URL.
P5Every decision is audited, including denialsHash-chained per tenant. Probes that cannot be attributed to a tenant go to a system chain rather than being dropped. The log answers in *your* identifiers — marco, contract.pdf, acme — alongside the internal ones, so "who accessed this?" needs no SQL of yours.

Three more properties are enforced in the schema and documented in packages/core/SEMANTICS.md: atomic download counters (P6), deletion as a liveness predicate rather than a cascade (P7), and per-project identifier namespaces (P8).

Two consequences worth knowing before you adopt:

  • Revocation actually works. fl.files.unpublish(id) makes a URL that has been printed, indexed and pasted into a support ticket stop working on the next request. No deletion, no key rotation, no cache purge. Supabase's getPublicUrl() is offline string concatenation, so it has no request at which to make that decision; deleting the object is the only withdrawal.
  • This costs you a byte path. P4 is why the default is to serve bytes rather than hand out a presigned URL, and it is why the default path has no CDN in front of it. The two facts are the same fact. Redirect delivery trades a bounded revocation window for that CDN and is opt-in; see packages/core/SEMANTICS.md.

What backs that up

Said once, here, because every number in it is checked by a gate that fails the build when a public surface and the run disagree:

The suite749 tests, every commit, all of them against a real PostgreSQL
Concurrency8 tests on a real PostgreSQL with two backends — races staged, not reasoned about. Three carry a control that removes the protection and asserts the bad outcome *does* happen
Adversarial26 attacks, 0 breaches. Also run against an earlier revision of this library known to be vulnerable, which scores 3. A suite that only ever passes proves nothing about itself

| Live object storage | 12 tests against live Cloudflare R2 and 12 against live AWS S3, every commit, plus a thirteenth each on the nightly run: an 11 MB multipart upload reassembled byte-exactly. R2 is

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx