MCP Ruby Server Skeleton
Experimental Ruby implementation of Model Context Protocol (MCP) - A starter server framework for trying out LLM integrations
Overview
MCP Ruby Server Skeleton is an experimental Ruby implementation of the Model Context Protocol (MCP), designed as a starter server framework for integrating Large Language Models (LLMs) like Claude with various tools.
To use the MCP Ruby Server Skeleton, clone the repository, ensure the server script is executable, and run the server. You can also integrate it with the Claude Desktop application by modifying its configuration file.
- Generates random integers through the
get-random-numbertool. - Compatible with MCP protocol version 2024-11-05. - Provides detailed logging for debugging purposes. - Complies with JSON-RPC 2.0 for message handling.
- Integrating LLMs with custom tools for enhanced functionality.
- Generating random numbers for applications requiring randomness.
- Debugging and testing LLM integrations with detailed logs.
Add to your AI client
Use these steps to connect MCP Ruby Server Skeleton in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-ruby-skeleton-bash0c7": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-ruby-skeleton-bash0c7"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-ruby-skeleton-bash0c7": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-ruby-skeleton-bash0c7"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-ruby-skeleton-bash0c7": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-ruby-skeleton-bash0c7"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-ruby-skeleton-bash0c7": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-ruby-skeleton-bash0c7"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-ruby-skeleton-bash0c7": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-ruby-skeleton-bash0c7"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-ruby-skeleton-bash0c7": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-ruby-skeleton-bash0c7"
]
}
}
}FAQ
**What is the purpose of this project?**
It serves as a framework for integrating LLMs with tools using the Model Context Protocol.
**What are the requirements to run this server?**
You need Ruby 3.0 or higher to run the server.
**How can I add new tools to the server?**
You can modify the `RandomNumberServer` class to register new tools following the provided structure.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3646,"uuid":"1674d8a0-3f89-4c81-9e98-f76f1e06eacf","name":"mcp-ruby-skeleton","title":"MCP Ruby Server Skeleton","description":"Experimental Ruby implementation of Model Context Protocol (MCP) - A starter server framework for trying out LLM integrations","avatar_url":"https://avatars.githubusercontent.com/u/137741?v=4","created_at":"2025-03-20T18:42:10.845Z","updated_at":"2025-03-20T19:00:25.892Z","status":"created","author_name":"bash0C7","author_avatar_url":"https://avatars.githubusercontent.com/u/137741?v=4","tags":"mcp,ruby,server,llm,integration","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/bash0C7/mcp-ruby-skeleton","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"Ruby\",\"is_official\":false,\"latest_commit_time\":\"2025-03-21 02:25:31\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]