Files
Filesystem
Secure file operations with configurable access controls, letting LLMs read, write, and manage files within allowed directories.
Install
npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/files
The Filesystem MCP server provides secure file operations with configurable access controls. It is an official reference server maintained by the Model Context Protocol steering group.
## Capabilities
- Read and write files within explicitly allowed directories
- Create, list, move, and delete files and directories
- Search files and inspect metadata
- Access is restricted to the directories passed as arguments
## Usage
```json
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/files"]
}
}
}
```