sergiobayona
MCP Serversergiobayonapublic

file_system_mcp

Ruby server implementing Model Context Protocol (MCP) for filesystem operations using the https://rubygems.org/gems/vector_mcp gem.

Repository Info

1
Stars
0
Forks
1
Watchers
0
Issues
Ruby
Language
-
License

About This Server

Ruby server implementing Model Context Protocol (MCP) for filesystem operations using the https://rubygems.org/gems/vector_mcp gem.

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

Filesystem MCP Server

Ruby server implementing Model Context Protocol (MCP) for filesystem operations using the vector_mcp gem.

Features

  • File operations: read, write, edit, move
  • Directory operations: create, list
  • Advanced search with filtering and sorting
  • Bulk metadata operations
  • Optional authentication and authorization
  • Secure filesystem boundaries using MCP roots

Installation

  1. Install Ruby 3.1+ and bundler
  2. Clone this repository
  3. Run bundle install

Usage

Basic Mode

ruby file_system_mcp.rb ~/Documents ~/Desktop

Secure Mode (with authentication)

FILESYSTEM_MCP_API_KEY=your-secret-key ruby file_system_mcp.rb --enable-auth ~/Documents

Claude Desktop Configuration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "filesystem": {
      "command": "ruby",
      "args": [
        "/path/to/file_system_mcp.rb",
        "~/Documents",
        "~/Desktop"
      ]
    }
  }
}

For secure mode:

{
  "mcpServers": {
    "filesystem": {
      "command": "ruby",
      "args": [
        "/path/to/file_system_mcp.rb",
        "--enable-auth",
        "~/Documents"
      ],
      "env": {
        "FILESYSTEM_MCP_API_KEY": "your-secret-key"
      }
    }
  }
}

Tools

File Operations

  • read_file - Read complete file contents
  • read_multiple_files - Read multiple files at once
  • write_file - Create/overwrite files
  • edit_file - Make precise text replacements with diff preview
  • move_file - Move/rename files and directories

Directory Operations

  • list_directory - List contents with optional metadata
  • create_directory - Create directories recursively

Search Operations

  • search_files - Basic recursive search with patterns
  • find_files - Advanced search with sorting, filtering, and metadata

Info Operations

  • get_file_info - Get detailed file/directory metadata
  • get_bulk_file_info - Get metadata for multiple files efficiently

Security

The server enforces filesystem boundaries using MCP roots - it can only access directories specified as command-line arguments.

Optional authentication adds API key verification for all operations.

Requirements

  • Ruby 3.1+
  • vector_mcp gem v0.3.1+

Quick Start

1

Clone the repository

git clone https://github.com/sergiobayona/file_system_mcp
2

Install dependencies

cd file_system_mcp
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownersergiobayona
Repofile_system_mcp
LanguageRuby
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation