filemcp
Verified Safeby leftmike
Overview
Provides an MCP interface for an AI agent to interact with a local filesystem, offering operations like reading files, listing directories, searching, and retrieving file metadata.
Installation
go run .Security Notes
The server uses `os.DirFS` to create a sandboxed filesystem, restricting all file operations to a specified root directory. This effectively prevents path traversal attacks (e.g., `../`, absolute paths) as confirmed by the provided test cases. There are no dynamic code execution features (like 'eval'), no apparent network attack surface (it uses StdioTransport for communication), and no hardcoded sensitive information.
Similar Servers
mcp-filesystem-server
Provides secure and controlled access to the local filesystem via the Model Context Protocol (MCP) for AI agents and other applications.
orla
Orla acts as a runtime for Model Context Protocol (MCP) servers, enabling the execution of lightweight open-source AI agents and command-line tools locally.
MCP-LocalFileResource-Server
The server provides LLMs and MCP clients with a standardized way to access, search, and process local files, including text, code, and PDFs, through Model Context Protocol resources and tools.
enhanced-filesystem-mcp
Provides enhanced filesystem access to an MCP client with named path aliases and fuzzy search capabilities.