Back to Home
leftmike icon

filemcp

Verified Safe

by 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

Run Command
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

Stats

Interest Score0
Security Score10
Cost ClassMedium
Avg Tokens3500
Stars0
Forks0
Last Update2026-01-19

Tags

FilesystemMCPGoFile Management