---
title: "Filesystem: thiết lập cho Claude, Cursor, Codex · DotsAgent"
description: "Đọc, ghi, tìm kiếm và di chuyển tệp cục bộ; chỉ giới hạn trong các thư mục bạn truyền vào khi khởi chạy. Thiết lập Filesystem trong 13 client MCP."
url: https://dotsagent.io/vi/mcp/servers/filesystem
---

Tệp · MCP Steering Group

# Thiết lập Filesystem

Đọc, ghi, tìm kiếm và di chuyển tệp cục bộ; chỉ giới hạn trong các thư mục bạn truyền vào khi khởi chạy.

- **Nhà phát hành**: MCP Steering Group Chính thức
- **Chạy cục bộ**: `npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/dir`
- **Giao thức truyền tải**: stdio
- **Xác thực**: Không cần. Quyền truy cập chỉ giới hạn ở các thư mục được truyền qua đối số hoặc roots.
- **Phạm vi truy cập**: Đọc và ghi tệp trong các thư mục được phép.
- **Giấy phép**: MIT (existing) / Apache-2.0 (new contributions)
- **Mã nguồn**: [github.com/modelcontextprotocol/servers/tree/main/src/filesystem](https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem)
- **Trạng thái**: Đang hoạt động

## Cài đặt

Server này chạy trên máy của bạn dưới dạng tiến trình con của client. Bạn cần cài runtime mà lệnh của server sử dụng, chẳng hạn Node.js cho npx, uv cho uvx hoặc Docker, cùng mọi biến được liệt kê trong mục Environment.

### Claude Code

`shell`

```
claude mcp add --scope project filesystem -- npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/dir
```

### Cursor

`.cursor/mcp.json`

```
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/allowed/dir"
      ]
    }
  }
}
```

### Codex

`~/.codex/config.toml`

```
[mcp_servers.filesystem]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/dir"]
```

[Cấu hình cho các client khác →](https://dotsagent.io/vi/mcp/config#add=filesystem)

Agent có thể ghi đè hoặc di chuyển mọi thứ trong các thư mục bạn cho phép, vì vậy chỉ liệt kê những thư mục cần thiết.

## Nguồn

1. [github.com](https://github.com/modelcontextprotocol/servers)/modelcontextprotocol/servers
2. [modelcontextprotocol.io](https://modelcontextprotocol.io/docs/develop/connect-local-servers)/docs/develop/connect-local-servers

Tài liệu tham khảo độc lập dành cho những người xây dựng AI agent. Không liên kết với bất kỳ nhà cung cấp nào được nêu ở đây.

© 2026 DotsAgent · Dữ liệu được kiểm tra ngày 1 tháng 10, 2026
