home / mcp / rubygems mcp server

RubyGems MCP Server

A Model Context Protocol (MCP) server for fetching rubygems metadata via rubygems.org API

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "6-mcp-server-rubygems": {
      "command": "/path/to/mcp-server-rubygems/build/index.js",
      "args": []
    }
  }
}

This MCP server provides convenient access to RubyGems metadata by interfacing with the rubygems.org API. It exposes a set of tools to fetch gem information, search gems, list versions, and identify dependencies and owners, all through MCP-compatible endpoints.

How to use

You connect to this MCP server from your MCP client to fetch RubyGems data. Once configured, you can look up details about a specific gem, search for gems by keyword, retrieve all versions of a gem, explore reverse dependencies, and see gem owners. Use the client’s standard MCP request flow to call the server’s tools and receive structured results that you can display in your app.

How to install

Prerequisites: you need Node.js and npm installed on your system.

Install dependencies and build the server using the following commands.

npm install
```

```
npm run build

Configuration and usage notes

To run locally, you can start the server and point your MCP client at it using the provided runtime path. If you want to enable development with automatic rebuilding, you can use the watch workflow.

When configuring your MCP client, specify the stdio command and any required arguments as shown in the example configuration below.

{
  "mcpServers": {
    "mcp-server-rubygems": {
      "command": "/path/to/mcp-server-rubygems/build/index.js",
      "args": []
    }
  }
}

Debugging

MCP servers communicate over stdio, which can be tricky to debug. You can use the Inspector tool to gain visibility into runtime behavior. Start the inspector with the development script to obtain a debugging URL you can open in your browser.

npm run inspector

Available tools

get_rubygem_info

Fetch detailed information about a specific RubyGem, including version, description, authors, and metadata.

search_rubygems

Search RubyGems.org for gems matching a query string and return matching gem metadata.

get_gem_versions

Retrieve all available versions for a given RubyGem.

get_gem_reverse_dependencies

Identify gems that depend on a specific RubyGem.

get_owner_gems

List all RubyGems owned by a given user or organization.

get_gem_owners

List the owners of a specific RubyGem.