Filesystem MCP Server
The Filesystem MCP Server enables AI agents to perform file and directory operations on your local machine. It provides secure, controlled access to specific directories for file management, content organization, and data processing tasks.
Installation
-
Open Griptape Nodes and go to Settings → MCP Servers
-
Click + New MCP Server
-
Configure the server:
- Server Name/ID:
filesystem - Connection Type:
Local Process (stdio) - Configuration JSON:
{ "transport": "stdio", "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/directory"], "env": {}, "encoding": "utf-8", "encoding_error_handler": "strict" } - Server Name/ID:
-
Click Create Server
Available Tools
read_file- Read file contentswrite_file- Write content to fileslist_directory- List directory contentscreate_directory- Create new directoriessearch_files- Find files by name or patternmove_file- Move or rename filesdelete_file- Remove files
Configuration Options
To allow access to multiple directories, add them as separate arguments:
{
"transport": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/username/Desktop",
"/Users/username/Downloads",
"/Users/username/Documents"
],
"env": {},
"encoding": "utf-8",
"encoding_error_handler": "strict"
}
Resources
- Filesystem MCP Server - Official repository and documentation
- Node.js File System API - Reference for file operations