Ruby Sdk
Ruby SDK for building MCP servers and clients over stdio or Streamable HTTP.
Install Ruby Sdk
Pick your client, then add it in one click or paste the config.
https://rubydoc.info/gems/mcp
Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.
Overview
Use cases
- Build a Ruby MCP server that exposes application tools
- Connect a Ruby process to a local MCP server over stdio
- Add an MCP endpoint to a Rails application
- Protect an MCP resource server with OAuth 2.1
- Implement a Ruby MCP client for a remote HTTP server
Key features
- Build MCP servers and clients in Ruby
- Expose tools, prompts, and resources
- Support stdio, Streamable HTTP, and SSE
- Integrate MCP servers with Rails
- Handle OAuth 2.1 authorization and resource protection
- Support protocol lifecycle, progress, cancellation, and pagination
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
ActiveLast checked 1d ago
Recent health check succeeded.
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
GitHub stars940Stargazers on the source repository.
Last commit1d agoMost recent push to the default branch.
How Ruby Sdk works
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Ruby Sdk
ruby-sdk is an MCP server that helps Ruby applications build MCP servers and clients, connecting applications to MCP hosts and other MCP servers. Its main tools are Ruby APIs for exposing and calling tools, prompts, and resources, with stdio and Streamable HTTP transports plus protocol lifecycle, authorization, and messaging support.
Add `gem "mcp"` to your Gemfile and run `bundle install`, or install it directly with `gem install mcp`. Some features may require additional dependencies, and your application must define the server or client behavior it needs.
Define tool classes with descriptions, input schemas, and call behavior, then pass them to `MCP::Server`. Start the server with a stdio or Streamable HTTP transport. The SDK also supports prompts, resources, Rails mounting, and OAuth 2.1 resource-server protection.
Create an `MCP::Client` with either the stdio or HTTP transport, call `connect` to negotiate the protocol lifecycle, then list and invoke tools. The stdio transport can spawn a local server subprocess, while the HTTP transport connects to a Streamable HTTP server.
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
Badge Style:
Live Dynamic SVG Preview
Markdown (GitHub README)
[](https://allmcps.com/mcp/ruby-sdk)HTML Embed
<a href="https://allmcps.com/mcp/ruby-sdk"><img src="https://allmcps.com/api/badge/ruby-sdk?style=directory" alt="Ruby Sdk on AllMCPs" /></a>