Ecosystem

Power up your AI apps with MCP integration, structured outputs, and community tools.

Table of contents

  1. RubyLLM::MCP
    1. What is MCP?
    2. Key Features
    3. Installation
  2. RubyLLM::Schema
    1. Why Use RubyLLM::Schema?
    2. Key Features
    3. Installation
  3. Community Projects

RubyLLM::MCP

Model Context Protocol Support for Ruby

RubyLLM::MCP brings the Model Context Protocol to Ruby, enabling your applications to connect to MCP servers and use their tools, resources, and prompts as part of LLM conversations.

What is MCP?

The Model Context Protocol is an open standard that allows AI applications to integrate with external data sources and tools. MCP servers can expose:

  • Tools: Functions that LLMs can call to perform actions
  • Resources: Structured data that can be included in conversations
  • Prompts: Predefined prompt templates with parameters

Key Features

  • πŸ”Œ Multiple transport types (HTTP streaming, STDIO, SSE)
  • πŸ› οΈ Automatic tool integration with RubyLLM
  • πŸ“„ Resource management for files and data
  • 🎯 Prompt templates with arguments
  • πŸ”„ Support for multiple simultaneous MCP connections

Installation

gem install ruby_llm-mcp

For detailed documentation, examples, and usage guides, visit the RubyLLM::MCP documentation.


RubyLLM::Schema

Ruby DSL for JSON Schema Creation

RubyLLM::Schema provides a clean, Rails-inspired DSL for creating JSON schemas. It’s designed specifically for defining structured data schemas for LLM function calling and structured outputs.

Why Use RubyLLM::Schema?

When working with LLMs, you often need to define precise data structures for:

  • Structured output formats
  • Function parameter schemas
  • Data validation schemas
  • API response formats

RubyLLM::Schema makes this easy with a familiar Ruby syntax.

Key Features

  • πŸ“ Rails-inspired DSL for intuitive schema creation
  • 🎯 Full JSON Schema compatibility
  • πŸ”§ Support for all primitive types, objects, and arrays
  • πŸ”„ Union types with any_of
  • πŸ“¦ Schema definitions and references for reusability

Installation

gem install ruby_llm-schema

For detailed documentation and examples, visit the RubyLLM::Schema repository.


Community Projects

The RubyLLM ecosystem is growing! If you’ve built a library or tool that extends RubyLLM, we’d love to hear about it. Consider:

  • Opening a PR to add your project to this page
  • Sharing it in our GitHub Discussions
  • Using the ruby_llm topic on your GitHub repository

Together, we’re building a comprehensive ecosystem for LLM-powered Ruby applications.