bridgemcp-server-filesystem
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@bridgemcp-server-filesystemlist files in /workspace"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
bridgemcp-server-filesystem
Official BridgeMCP reference server — safe filesystem access for AI clients.
Overview
bridgemcp-server-filesystem exposes ten filesystem tools to any MCP-compatible AI client (Claude Desktop, Cursor, etc.). It is the second official server in the BridgeMCP ecosystem and serves as the canonical reference implementation for filesystem access.
Key safety features:
Root confinement — set
--root /workspaceto restrict all operations to that directory. Path traversal attacks (../../etc/passwd) and symlink escapes are blocked at thePath.resolve()level before any filesystem operation occurs.Read-only mode — set
--read-onlyto expose a directory for inspection without permitting any writes.File size limit — set
--max-file-size-mb 10to prevent accidentally reading large files.Binary detection —
read_filedetects binary files before decoding and returns a structuredis_binary=Trueresponse instead of aUnicodeDecodeError.Explicit delete confirmation —
delete_pathrequiresconfirm=Truein every call. The configured root can never be deleted.
Related MCP server: File Manager MCP Server
Installation
pip install bridgemcp-server-filesystem
pip install 'bridgemcp-server-filesystem[mcp]' # for running as an MCP serverQuick start
Programmatic use:
from bridgemcp_filesystem import create_app
app = create_app(root="/workspace", read_only=False, max_file_size_mb=10.0)
app.run()CLI use:
# Stdio transport (default) — for Claude Desktop / Cursor
bridgemcp-filesystem --root /workspace
# Read-only with a size limit
bridgemcp-filesystem --root /data --read-only --max-file-size-mb 5
# HTTP/SSE transport
bridgemcp-filesystem --root /app --http --port 8080Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"filesystem": {
"command": "bridgemcp-filesystem",
"args": ["--root", "/workspace"]
}
}
}Tools
Tool | Description |
| Read file content. Returns |
| Write text to a file. Optionally creates missing parent directories. |
| List directory contents with type, size, and timestamps. |
| Glob search within a directory, optionally recursive. |
| Metadata for a file or directory: type, size, timestamps, permissions. |
| Create a directory, optionally including parents. |
| Copy a file or directory tree. |
| Move a file or directory. Supports cross-filesystem moves. |
| Atomic rename within the same filesystem. |
| Delete a file or directory. Requires |
Safety model
Root confinement
Set root to restrict all operations to a single directory tree:
app = create_app(root="/workspace")Any path that resolves outside /workspace — including ../../etc/passwd and symlinks pointing out — raises an error before any IO occurs. The check uses Path.resolve() which follows all symlinks, so there is no way to escape the root through link indirection.
When root is not set, the server operates in unrestricted mode: any path on the filesystem is accessible. This is appropriate for trusted local tools but should not be used in multi-user or production environments.
Read-only mode
app = create_app(root="/data", read_only=True)All mutating tools (write_file, create_directory, copy_path, move_path, rename_path, delete_path) raise an error immediately without touching the filesystem.
Delete safeguard
delete_path always requires confirm=True:
# This always raises an error:
app.call("delete_path", path="/workspace/file.txt")
# This proceeds with deletion:
app.call("delete_path", path="/workspace/file.txt", confirm=True)The configured root directory can never be deleted, even with confirm=True.
Development
git clone https://github.com/Arsie-codes/bridgemcp-server-filesystem
cd bridgemcp-server-filesystem
pip install -e '.[dev]'
ruff check bridgemcp_filesystem tests
black --check bridgemcp_filesystem tests
pyright bridgemcp_filesystem
pytest tests/ -vLicense
MIT — see LICENSE.
Links
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arsie-codes/bridgemcp-server-filesystem'
If you have feedback or need assistance with the MCP directory API, please join our Discord server