MCP Servers Ruby
by cs3b
This repository provides a collection of Machine Control Protocol (MCP) server implementations and utilities written in Ruby. It serves as a place for experimenting with MCP Servers.
Last updated: N/A
MCP Servers Ruby Examples
This repository contains a collection of MCP (Machine Control Protocol) server implementations and utilities written in Ruby. It's more a place for experiments with MCP Servers.
Available Tools
Operating System Utilities
-
Filesystem Operations - Handles file system operations including:
- Reading files
- Listing directory contents
- Directory tree traversal
- File creation and modification
- File deletion
- Patch application
-
Clipboard Operations - Manages system clipboard interactions
Installation
The repository provides a Thor-based installer script for setting up MCP servers with different Claude environments.
Prerequisites
bundle install
The media servers require additional dependencies:
- ffmpeg (for audio transcoding)
- Whisper (for speech transcription)
- Ruby >= 3.0
- fast-mcp gem (1.1.0 or later)
Installing MCP Servers
The mcp_install
script provides commands for installing MCP servers for different Claude environments:
# For Claude Desktop
./mcp_install claude_desktop SERVER_PATH [BASE_PATH]
# For Claude Code
./mcp_install claude_code SERVER_PATH [BASE_PATH]
# For Windsurf
./mcp_install windsurf SERVER_PATH [BASE_PATH]
Parameters:
SERVER_PATH
: Path to the MCP server implementationBASE_PATH
: Base directory for the server (defaults to current directory)
Prompt Templates
The media servers use XML-based prompt templates located in media/prompts/
:
summarize.transcript.xml.erb
- For transcript analysiswhats.new.assistant.xml.erb
- For content comparison (assistant)whats.new.user.xml.erb
- For content comparison (user)
Examples:
# Install for Claude Desktop
./mcp_install claude_desktop ./os/clipboard.rb
# Install for Windsurf
./mcp_install windsurf ./os/clipboard.rb
The installer will:
- Generate server configuration
- Update configuration file if found:
- Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windsurf:
~/.codeium/windsurf/mcp_config.json
- Claude Code: (configuration path varies)
- Claude Desktop:
- Display the generated configuration for manual installation if needed