Back to Home
domdomegg icon

filesystem-mcp

Verified Safe

by domdomegg

Overview

This server provides tools for reading, creating, editing files, and listing directories on the local filesystem, enabling automation of tasks like configuration updates, report generation, and code refactoring.

Installation

Run Command
npx -y filesystem-mcp

Environment Variables

  • MCP_TRANSPORT
  • PORT
  • MCP_BASE_URL

Security Notes

The server directly manipulates the local filesystem, which inherently carries significant security implications if the controlling agent is compromised or misused. However, the provided source code does not contain direct 'eval' or arbitrary command execution vulnerabilities. File operations are performed using standard Node.js `fs/promises` APIs, and input parameters are validated via Zod schemas. Path expansion using `os.homedir()` limits path traversal risks to the user's home directory context. The `str_replace` tool specifically checks for unique occurrences, mitigating risks of unintended broad replacements. While the implementation appears robust for its stated purpose, the powerful nature of direct filesystem access necessitates deployment in a trusted environment with a thoroughly vetted controlling agent.

Similar Servers

Stats

Interest Score27
Security Score8
Cost ClassMedium
Avg Tokens750
Stars1
Forks0
Last Update2026-01-07

Tags

filesystemfile managementtext editingdirectoriesautomation