modelcontextprotocol/ruby-sdk
Official Ruby SDK for implementing Model Context Protocol (MCP) servers and clients with support for JSON-RPC 2.0, tools, prompts, resources, and multiple transport options including Rails and command-line environments.
Fast MCP is a Ruby-based implementation of the Model Context Protocol (MCP) designed to simplify the integration of AI models with Ruby applications. It addresses common challenges in AI integration such as complex communication protocols, compatibility issues, and state management by providing a clean, Ruby-centric approach. The project offers a comprehensive set of features including a Tools API that allows AI models to securely call Ruby functions with argument validation using Dry-Schema, and a Resources API to share data between applications and AI models. It supports multiple transport methods like STDIO, HTTP, and SSE, and integrates seamlessly with popular Ruby frameworks such as Rails, Sinatra, and any Rack-based application. Security is a key focus, with built-in authentication support to protect AI-powered endpoints. Fast MCP also supports real-time updates and dynamic filtering of tools and resources based on request context, enabling fine-grained control over access permissions and API versions. The project provides Rails-friendly class naming conventions and generators to facilitate easy adoption within Rails applications, including automatic discovery and registration of tools and resources. Additionally, it offers a straightforward setup for Sinatra applications. Fast MCP aims to make AI integration a smooth and enjoyable experience for Ruby developers by eliminating the usual complexities and providing expressive, maintainable code patterns. Its design encourages secure, scalable, and interactive AI-powered applications with minimal overhead and maximum flexibility.
https://github.com/yjacquin/fast-mcp
Official Ruby SDK for implementing Model Context Protocol (MCP) servers and clients with support for JSON-RPC 2.0, tools, prompts, resources, and multiple transport options including Rails and command-line environments.
Ruby MCP client gem that plugs MCP tools, resources and prompts into RubyLLM chats over stdio, streamable HTTP and SSE, with OAuth 2.1 support and Rails generators.
A Ruby gem that adds an MCP server to a Rails application at /mcp, with generators for tools and resources, JSON Schema validation, per-call authorization, token authentication and rate limiting.