Token导航 LogoToken导航TokenDH.com
Linux Filesystem Extension logo
开发工具未说明官方级别未说明来源级核验

Linux Filesystem Extension

MCP Server

为Claude Desktop提供的Linux文件系统扩展,支持符号链接、权限管理等Linux特有功能。

工具数

11

提示词数

0

GitHub Stars

0

资源数

0
JavaScriptClaude开发工具Claude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

rghsoftware

提供方

rghsoftware

最后核验

2026/5/17 20:22

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

Linux Filesystem Extension for Claude Desktop

Enhanced filesystem access MCP server for Linux with support for symbolic links, permissions, and Linux-specific features.

Features

Core Filesystem Operations

  • Read/Write Files: Read and write file contents
  • Directory Management: Create, list, and navigate directories
  • File Operations: Move, rename, and delete files
  • File Information: Get detailed file metadata including permissions and ownership

Linux-Specific Features

  • Symbolic Links: Create and read symbolic links
  • Permission Management: Change file permissions with chmod
  • Hidden Files: Optional support for showing/hiding dotfiles
  • Extended Information: Access UID, GID, and detailed permission bits

Installation

Prerequisites

  • Node.js 18 or later (must be installed and in system PATH on Linux)

- Check: node --version - Install: sudo apt install nodejs npm (Ubuntu/Debian) or sudo dnf install nodejs npm (Fedora)

  • Claude Desktop app
  • Linux operating system

Quick Install (Recommended)

  1. Download the linux-filesystem.mcpb file
  2. Open Claude Desktop
  3. Go to Settings > Extensions
  4. Click "Install Extension..."
  5. Select the downloaded .mcpb file
  6. Configure one or more allowed directories when prompted

Build from Source

# Clone or download the repository
git clone 
cd linux-filesystem-extension

# Install dependencies
npm install

# Build the extension
npm run build

# Package as .mcpb
npm run pack-mcpb

# The packaged extension will be in dist/linux-filesystem.mcpb

Configuration

Allowed Directories

The extension requires you to specify which directories it can access. You can configure this in multiple ways:

  1. Via Claude Desktop (Recommended):

- When installing the .mcpb file, you'll be prompted to add one or more directories - Click "Add Directory" to include multiple locations - Each directory can be added, removed, or modified independently

  1. Via Environment Variables (for manual setup):
   export MCP_ALLOWED_DIRS="/home/user/documents:/home/user/projects"
  1. Via Command Line Arguments:
   node build/index.js /path/to/dir1 /path/to/dir2 /path/to/dir3

Additional Options

  • Follow Symlinks: Set MCP_FOLLOW_SYMLINKS=true to follow symbolic links
  • Show Hidden Files: Set MCP_SHOW_HIDDEN=true to show dotfiles

Available Tools

read_file

Read the complete contents of a file.

{
  "path": "/path/to/file.txt"
}

write_file

Write content to a file (creates if doesn't exist).

{
  "path": "/path/to/file.txt",
  "content": "File contents here"
}

create_directory

Create a directory (with recursive support).

{
  "path": "/path/to/new/directory"
}

list_directory

List all files and directories in a path.

{
  "path": "/path/to/directory"
}

move_file

Move or rename files and directories.

{
  "source": "/path/to/source",
  "destination": "/path/to/destination"
}

delete_file

Delete a file or empty directory.

{
  "path": "/path/to/file"
}

get_file_info

Get detailed information about a file including permissions.

{
  "path": "/path/to/file"
}

Returns:

{
  "path": "/path/to/file",
  "type": "file",
  "size": 1234,
  "created": "2024-01-01T00:00:00.000Z",
  "modified": "2024-01-01T00:00:00.000Z",
  "accessed": "2024-01-01T00:00:00.000Z",
  "permissions": {
    "mode": "644",
    "uid": 1000,
    "gid": 1000
  }
}

search_files

Search for files matching a pattern.

{
  "path": "/path/to/search",
  "pattern": "*.txt"
}

create_symlink (Linux-specific)

Create a symbolic link.

{
  "target": "/path/to/target",
  "linkPath": "/path/to/link"
}

read_symlink (Linux-specific)

Read the target of a symbolic link.

{
  "path": "/path/to/symlink"
}

chmod (Linux-specific)

Change file permissions.

{
  "path": "/path/to/file",
  "mode": "755"
}

Security

Directory Access Control

The extension uses a strict allowlist approach:

  • Only directories explicitly configured as "allowed" can be accessed
  • All file operations validate paths against the allowed directory list
  • Attempts to access files outside allowed directories are blocked

Permission Handling

  • The extension runs with your user's permissions
  • It cannot perform operations your user account cannot perform
  • Symbolic links are validated to ensure they don't escape allowed directories

Development

Project Structure

linux-filesystem-extension/
├── src/
│   ├── index.ts          # Main server implementation
│   └── handlers.ts       # Helper functions
├── scripts/
│   ├── copy-node-modules.js  # Build script
│   └── pack-mcpb.js          # Packaging script
├── build/                # Compiled output (generated)
├── dist/                 # Packaged .mcpb (generated)
├── manifest.json         # Extension manifest
├── package.json
├── tsconfig.json
└── README.md

Build Commands

# Install dependencies
npm install

# Compile TypeScript
npm run build

# Watch mode for development
npm run dev

# Package as .mcpb
npm run pack-mcpb

Testing

Run the server manually for testing:

npm run build
node build/index.js /path/to/allowed/dir

Troubleshooting

"No allowed directories specified" error

  • Ensure you've configured at least one allowed directory
  • Check that the directory paths are correct and exist
  • Verify environment variables are set correctly

"Access denied" errors

  • The requested path must be within one of your configured allowed directories
  • Check symbolic links aren't pointing outside allowed directories
  • Verify your user has the necessary permissions

Extension won't install

  • Ensure you're running a compatible version of Claude Desktop
  • Verify the .mcpb file isn't corrupted
  • Check that Node.js is installed on your system

FAQ

Why doesn't Claude automatically use my filesystem extension?

Fixed in v1.1.0! Previous versions had generic tool descriptions that didn't help Claude recognize when to use filesystem operations.

What was wrong (v1.0.x):

  • Tool descriptions were too generic: "Read the complete contents of a file"
  • Claude didn't know filesystem capabilities were available
  • Would say "I can't access files" even with extension installed

What's fixed (v1.1.0+):

  • All tool descriptions now emphasize Linux-specific features
  • Examples: "Read file contents with Linux-specific features (symlink handling, permission checking)"
  • Claude should now automatically recognize filesystem capabilities are available

If you still have issues after updating to v1.1.0:

  1. Multiple filesystem servers installed?

- Check Settings → Extensions for other filesystem MCP servers - If you have multiple, Claude may pick a different one - Solution: Disable competing servers or specify which to use

  1. Use trigger phrases to hint at Linux features:

- "Check the file permissions on..." - "Create a symlink to..." - "What's the UID/GID of..." - "chmod this directory to 755" - "List files with detailed metadata"

  1. Specify explicitly (always works):
   "Use the Linux Filesystem extension to read myfile.txt"

License

MIT

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

Comparison with Official Filesystem Server

This extension builds upon the official @modelcontextprotocol/server-filesystem with:

  • Linux-specific features (symlinks, chmod)
  • Enhanced file information (UID/GID, detailed permissions)
  • Optimized for Linux environments
  • Platform-restricted for security (Linux-only)

目录标签

目录标签

JavaScriptClaude开发工具文件系统管理本地部署Linux工具权限控制符号链接

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

11

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP