Filelayer
dev.filelayer/core · v0.37.2 stdio
User files for a SaaS, under one person's authority: list, share with an expiry, revoke.
Description supplied by the publisher in the MCP Registry. We have not tested this server.
Ranks #131 of 216 Databases servers on Socketlist by score and a last code push 2d ago.
Install
npx -y @filelayer/core -p @filelayer/core -p pg -p @modelcontextprotocol/sdk -p zod filelayer-mcpAssembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.
Connect Filelayer to Claude Code, Cursor or VS Code
Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.
Claude Code
Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.
claude mcp add --env DATABASE_URL=<database_url> --env FILELAYER_AS=<filelayer_as> --env FILELAYER_ORG=<filelayer_org> --env S3_ACCESS_KEY_ID=<s3_access_key_id> --env S3_SECRET_ACCESS_KEY=<s3_secret_access_key> --transport stdio filelayer -- npx -y @filelayer/core -p @filelayer/core -p pg -p @modelcontextprotocol/sdk -p zod filelayer-mcp.mcp.json (Claude Code project scope, VS Code with Copilot)
Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.
{
"mcpServers": {
"filelayer": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@filelayer/core",
"-p",
"@filelayer/core",
"-p",
"pg",
"-p",
"@modelcontextprotocol/sdk",
"-p",
"zod",
"filelayer-mcp"
],
"env": {
"DATABASE_URL": "${DATABASE_URL}",
"FILELAYER_AS": "${FILELAYER_AS}",
"FILELAYER_ORG": "${FILELAYER_ORG}",
"S3_ACCESS_KEY_ID": "${S3_ACCESS_KEY_ID}",
"S3_SECRET_ACCESS_KEY": "${S3_SECRET_ACCESS_KEY}"
}
}
}
}Cursor
Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.
{
"mcpServers": {
"filelayer": {
"command": "npx",
"args": [
"-y",
"@filelayer/core",
"-p",
"@filelayer/core",
"-p",
"pg",
"-p",
"@modelcontextprotocol/sdk",
"-p",
"zod",
"filelayer-mcp"
],
"env": {
"DATABASE_URL": "${env:DATABASE_URL}",
"FILELAYER_AS": "${env:FILELAYER_AS}",
"FILELAYER_ORG": "${env:FILELAYER_ORG}",
"S3_ACCESS_KEY_ID": "${env:S3_ACCESS_KEY_ID}",
"S3_SECRET_ACCESS_KEY": "${env:S3_SECRET_ACCESS_KEY}"
}
}
}
}Configuration the publisher declares
| Environment variable | Required | Secret | Publisher's note |
|---|---|---|---|
DATABASE_URL | Yes | Yes | 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 | Yes | No | 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 tool |
FILELAYER_ORG | Yes | No | The organisation this server is scoped to, in your own id space. |
FILELAYER_DATA_DIR | No | No | 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 a |
S3_ENDPOINT | No | No | An S3-compatible endpoint, for example https://<account>.r2.cloudflarestorage.com. Setting it makes S3_BUCKET, S3_ACCESS_KEY_ID and S3_SECRET_ACCESS_KEY required. |
S3_BUCKET | No | No | 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 u |
S3_REGION | No | No | Region, or `auto` for Cloudflare R2. |
S3_ACCESS_KEY_ID | No | Yes | Access key id for the bucket. |
S3_SECRET_ACCESS_KEY | No | Yes | Secret access key for the bucket. |
FILELAYER_MCP_AGENT_LABEL | No | No | 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 | No | No | 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 | No | No | 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 c |
2 more are listed in the registry entry; see the README for the full set.
"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.
Allowlist entry
If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.
{
"allowedMcpServers": [
{
"serverCommand": [
"npx",
"-y",
"@filelayer/core",
"-p",
"@filelayer/core",
"-p",
"pg",
"-p",
"@modelcontextprotocol/sdk",
"-p",
"zod",
"filelayer-mcp"
]
}
]
} How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.
Score breakdown
| Part | Points | What we observed | Result |
|---|---|---|---|
| Maintenance | 40/40 | Last push 2d ago, 0 open issues | Strong |
| Security hygiene | 35/35 | Licence Apache-2.0, SECURITY.md present, published package or hosted endpoint | Strong |
| Adoption | 0/25 | 0 GitHub stars, 0 npm downloads a week | Weak |
Result: Strong is 80% or more of the part's points, Fair 50% or more. Automated signals, not a security audit. How we score.
Maintain this server? Claim or correct this listing, or get featured in Databases. Paid placements are labelled and never change the score.
Five scored MCP servers, every Monday
The Plug Weekly is a free email picked from these scores, with a short Best of MCP servers PDF when you join. About a 3-minute read. Unsubscribe any time.
| GitHub stars | 0 |
| npm weekly downloads | 0 |
| Last push | 2d ago |
| Licence | Apache-2.0 |
| Open issues | 0 |
| SECURITY.md | Yes |
| Language | TypeScript |
| Latest version published | 2026-11-27 |
Signals captured from GitHub, npm and the official MCP Registry on December 1, 2026. See the scoring method.
Similar servers
pgwarden
Score 76. Maintenance 38 of 40, security 29 of 35, adoption 9 of 25.io.github.B0yko/pgwarden
Give AI assistants access to Postgres with per-user permissions and human approval for writes.
ČSFD
Score 92. Maintenance 40 of 40, security 35 of 35, adoption 17 of 25.io.github.bartholomej/node-csfd-api
Movies, TV series, creators and user ratings from ČSFD.cz, the Czech-Slovak film database
nuthatch
Score 87. Maintenance 40 of 40, security 35 of 35, adoption 12 of 25.io.github.nuthatch-org/nuthatch
Query an EVM contract's indexed history with SQL, via a local nuthatch nest and nuthatch dev.