MCP Catalogs
Home

mcp-rb

by funwarioisii·205·Score 43

Ruby framework for building MCP servers with a Sinatra-like DSL, supporting resources and tools.

developer-toolsai-llmother
15
Forks
9
Open issues
14 mo ago
Last commit
2d ago
Indexed

Overview

MCP-RB is a lightweight Ruby framework that simplifies the creation of MCP servers using a familiar Sinatra-like DSL. It provides a clear and concise way to define both resources and tools, with support for various argument types including nested structures and arrays. The framework actively supports the MCP 2024-11-05 specification, implementing core protocol features like ping, stdio transport, and server capabilities for resources and tools.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Building Ruby-based MCP servers for AI applications
you:Creating custom tools for Claude Desktop integration
you:Implementing resource providers with dynamic templates
you:What MCP specifications are supported?
you:How can I test my MCP server?

When to choose this

Choose MCP-RB if you're building Ruby-based MCP servers and prefer a simple, Sinatra-like DSL approach with minimal setup.

When NOT to choose this

Avoid MCP-RB if you need advanced MCP capabilities not yet implemented or if you prefer frameworks in other languages like Python or JavaScript.

Tools this server exposes

3 tools extracted from the README
  • greetname: String

    Greet someone by name

  • greet_full_nameperson: {first_name: String, last_name: String}

    Greet someone by their full name

  • group_greetingpeople: Array<String>

    Greet multiple people at once

Comparable tools

mcp-servermcp-typescriptpydantic-mcp

Installation

Installation

Add this line to your application's Gemfile:

gem 'mcp-rb'

Then run:

bundle install

For Claude Desktop integration, add to claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-rb-example": {
      "command": "ruby",
      "args": ["path/to/your/server.rb"]
    }
  }
}

FAQ

What MCP specifications are supported?
The framework supports MCP 2024-11-05 specification, including Base Protocol features (ping, stdio transport) and Server features for resources and tools.
How can I test my MCP server?
You can run unit tests with `rake test` or test with MCP Inspector using `bunx @modelcontextprotocol/inspector $(pwd)/examples/hello_world.rb`.

Compare mcp-rb with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.