1
.
06
.
2025
20
.
05
.
2025
Ruby on Rails
LLM

Ruby on Rails and Model Context Protocol

Paweł Strzałkowski
Chief Technology Officer

If you have been following the advancements in Artificial Intelligence, you might have heard about the increasing need for a standardized way for AI models, to interact with external data sources and tools. This is where the Model Context Protocol (MCP) comes into play.

MCP is an open protocol designed to standardize how applications provide context to LLMs. As the official website, modelcontextprotocol.io, puts it:

MCP is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect your devices to various peripherals and accessories, MCP provides a standardized way to connect AI models to different data sources and tools.

This protocol was introduced by Anthropic in November 2024. The goal was to address the challenge of integrating AI models with diverse systems, which previously often required custom, one-off solutions. Since its introduction, MCP has seen growing adoption and support from major players in the AI field, including OpenAI and Google DeepMind.

How MCP Works

At its core, MCP defines a client-server architecture. AI applications act as clients, requesting information or actions from MCP servers. These servers, in turn, expose data sources or tools in a standardized way. This interaction allows AI models to access and utilize context from various systems like databases, content repositories, or business applications.

The MCP specification outlines several transport methods for this communication. Three key methods are:

  • stdio (Standard Input/Output): A local transfer method, for clients and servers running on the same machine.
  • SSE (Server-Sent Events): An HTTP-based method for servers to stream updates to clients.
  • Streamable-http: Another HTTP-based transport, allowing for efficient data streaming.

MCP in the Ruby Ecosystem

While the overall MCP landscape is evolving quickly, the scene within the Ruby community is also beginning to grow. Although there isn't an official Ruby SDK provided by the initial creators, the community has started to develop its own solutions.

Several gems are already available for developers looking to experiment with or implement MCP in their Ruby applications. Some examples include:

This growing collection of tools shows a great interest in bringing MCP's capabilities to Ruby on Rails and the broader Ruby ecosystem.

Resources and Community

For those interested in diving deeper into MCP, there are several valuable resources:

If you have additional insight and understand MCP much deeper, I strongly recommend reading articles written by seuros, the author of action_mcp gem.

Furthermore, community discussions are taking place on Discord channels, which can be great places to ask questions, share knowledge, and connect with other developers:

As AI continues to integrate more deeply into various applications, protocols like MCP will likely play a crucial role in ensuring standardized communication. The Ruby community's early engagement suggests a promising future for MCP adoption within our ecosystem.

Articles in this series

Paweł Strzałkowski
Chief Technology Officer

Check my Twitter

Check my Linkedin

Did you like it? 

Sign up To VIsuality newsletter

READ ALSO

Hot topic: Progressive Web Apps instead of native mobile apps

11
.
06
.
2025
Michał Krochecki
Ruby on Rails
Business
Backend
Frontend

Docker hosted on Jelastic

11
.
06
.
2025
Marcin Prokop
Ruby on Rails
Backend
Tutorial

All the pieces matter - Visuality DNA

11
.
06
.
2025
Michał Piórkowski
Visuality
HR

Tech conferences 2018/2019 you definitely should attend

11
.
06
.
2025
Michał Krochecki
Conferences

Visuality Poznań is here!

11
.
06
.
2025
Michał Piórkowski
Visuality
Business
HR

Why we chose Ruby on Rails and React.js for our main technologies? (FAQ).

11
.
06
.
2025
Michał Krochecki
Ruby on Rails
Backend
Frontend
Visuality

Branding: How to style your Jira?

11
.
06
.
2025
Lukasz Jackiewicz
Tutorial
Design
Project Management

How to start your UX/UI designer career

11
.
06
.
2025
Bartłomiej Bednarski
Design
Tutorial
HR

WebUSB - Bridge between USB devices and web browsers

11
.
06
.
2025
Burak Aybar
Ruby on Rails
Frontend
Backend
Tutorial

Visuality comes to town - this time it's Poznań

11
.
06
.
2025
Michał Piórkowski
Visuality
HR

How to choose a software house.

11
.
06
.
2025
Michał Piórkowski
Ruby on Rails
Business
Visuality

CSS Modules in Rails

11
.
06
.
2025
Adam Król
Ruby on Rails
Tutorial
Backend
Frontend

JSON API versus the NIH syndrome

11
.
06
.
2025
Nadia Miętkiewicz
Backend
Frontend
Tutorial

From Idea to Concept

11
.
06
.
2025
Michał Krochecki
Ruby on Rails
Business
Startups

Styling React Components

11
.
06
.
2025
Umit Naimian
Ruby on Rails
Frontend
Tutorial

How good design can help your business grow

11
.
06
.
2025
Lukasz Jackiewicz
Design
Business
Marketing

TODO not. Do, or do not.

11
.
06
.
2025
Stanisław Zawadzki
Ruby on Rails
Software

CS Lessons #003: Density map in three ways

11
.
06
.
2025
Michał Młoźniak
Ruby
Backend
Tutorial
Software

Clean code for the win

11
.
06
.
2025
Michał Piórkowski
Ruby on Rails
Backend
Frontend
Business

Crowd-operated Christmas Lights

11
.
06
.
2025
Nadia Miętkiewicz
Ruby on Rails
Backend

How to startup and be mature about it

11
.
06
.
2025
Rafał Maliszewski
Ruby on Rails
Startups
Business

A journey of a thousand miles begins with workshops

11
.
06
.
2025
Michał Piórkowski
Software
HR

CS Lessons #002: Data structures

11
.
06
.
2025
Michał Młoźniak
Ruby
Software