mcp file system

Local 2025-09-01 00:18:46 0

A server implementing the Model Context Protocol that provides filesystem operations (read/write, directory management, file movement) through a standardized interface with security controls for allowed directories.


A Model Context Protocol (MCP) server that provides filesystem operations through a standardized interface.

Features

  • File operations (read/write)
  • Directory management (create/list/delete)
  • File movement and renaming
  • File metadata retrieval
  • File search capabilities
  • Access control through allowed directories

Getting Started

  1. Install dependencies:

    npm install

  2. Build the project:

    npm run build

  3. Run the server with allowed directories:

    npm start /path/to/allowed/directory [/path/to/another/directory ...]

Documentation

Development

The server is built using: - TypeScript - MCP SDK (high-level API) - Node.js filesystem APIs

Security

The server implements path validation to ensure operations only occur within allowed directories specified at startup.

License

ISC