filesystem-mcp-server
If you are the rightful owner of filesystem-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
Filesystem MCP Server provides a secure interface for AI agents to interact with the local filesystem using the Model Context Protocol (MCP).
The Filesystem MCP Server is a robust platform-agnostic server that allows AI agents to perform essential filesystem operations securely. Built on a TypeScript foundation, it supports reading, writing, updating, and managing files and directories. The server is designed with a layered architecture to ensure clarity and maintainability, featuring comprehensive logging, error handling, and security measures. It supports both STDIO and HTTP transports, making it versatile for different communication needs. The server is suitable for integration into AI workflows, providing tools for file operations, targeted updates, and session-aware path management. It emphasizes security with path sanitization and JWT authentication for HTTP transport, and is fully implemented in TypeScript for type safety and reliability.
Features
- Comprehensive File Operations: Tools for reading, writing, listing, deleting, moving, and copying files and directories.
- Targeted Updates: Allows precise search-and-replace operations within files, supporting plain text and regex.
- Session-Aware Path Management: Establishes a default working directory for resolving relative paths during a session.
- Dual Transport Support: Supports both STDIO for direct communication and HTTP for network-based interaction.
- Security First: Includes path sanitization, JWT authentication, and input validation with Zod.
Tools
set_filesystem_default
Sets a default absolute path for the current session.
read_file
Reads the entire content of a specified file as UTF-8 text.
write_file
Writes content to a specified file, creating or overwriting it.
update_file
Performs targeted search-and-replace operations within an existing file.
list_files
Lists files and directories within a specified path.