search_gems

Pack: rubygems · Endpoint: https://gateway.pipeworx.io/rubygems/mcp

Search RubyGems by keyword in name/description. Returns matching gems sorted by relevance with name, version, downloads, and info text.

Parameters

NameTypeRequiredDescription
querystringyesKeyword(s) to search for (e.g., “authentication”, “json parser”)
limitnumbernoMax results to return (1–30, default 10). API caps at 30/page.
pagenumbernoPage number (1-based, default 1).

Example call

Arguments

{
  "query": "authentication"
}

curl

curl -X POST https://gateway.pipeworx.io/rubygems/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_gems","arguments":{"query":"authentication"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('search_gems', {
  "query": "authentication"
});

More examples

{
  "query": "json parser",
  "limit": 20,
  "page": 1
}

Response shape

Always returns: query, page, count, gems

FieldTypeDescription
querystringSearch query that was used
pagenumberPage number of results
countnumberNumber of gems returned
gemsarrayList of matching gems
Full JSON Schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "Search query that was used"
    },
    "page": {
      "type": "number",
      "description": "Page number of results"
    },
    "count": {
      "type": "number",
      "description": "Number of gems returned"
    },
    "gems": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Gem name"
          },
          "latest_version": {
            "type": "string",
            "description": "Latest version number"
          },
          "version_created_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "When latest version was created"
          },
          "authors": {
            "type": [
              "string",
              "null"
            ],
            "description": "Gem authors"
          },
          "info": {
            "type": [
              "string",
              "null"
            ],
            "description": "Short description"
          },
          "licenses": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "Gem licenses"
          },
          "downloads_total": {
            "type": [
              "number",
              "null"
            ],
            "description": "Total downloads"
          },
          "downloads_latest_version": {
            "type": [
              "number",
              "null"
            ],
            "description": "Downloads for latest version"
          },
          "project_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "Project page URI"
          },
          "gem_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "RubyGems URI"
          },
          "homepage": {
            "type": [
              "string",
              "null"
            ],
            "description": "Homepage URL"
          },
          "documentation": {
            "type": [
              "string",
              "null"
            ],
            "description": "Documentation URL"
          },
          "source_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Source code URL"
          },
          "bug_tracker": {
            "type": [
              "string",
              "null"
            ],
            "description": "Bug tracker URL"
          },
          "changelog": {
            "type": [
              "string",
              "null"
            ],
            "description": "Changelog URL"
          }
        }
      },
      "description": "List of matching gems"
    }
  },
  "required": [
    "query",
    "page",
    "count",
    "gems"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "rubygems": {
      "url": "https://gateway.pipeworx.io/rubygems/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build June 26, 2026