home / mcp / rubygems mcp server
Provides access to RubyGems data, Ruby versions, and related information via MCP tools and resources.
Configuration
View docs{
"mcpServers": {
"amkisko-rubygems_mcp.rb": {
"command": "gem",
"args": [
"exec",
"rubygems_mcp"
],
"env": {
"RUBY_VERSION": "3.4.7"
}
}
}
}You run rubygems_mcp as an MCP server that exposes RubyGems and Ruby version information to MCP-enabled clients. It connects with tools like Cursor IDE and Claude Desktop, letting you query gem data, Ruby versions, changelogs, and related details through MCP endpoints.
Install the MCP server gem and start the server to begin answering MCP tool requests. Your MCP-enabled clients will discover and interact with the server to fetch gem data, Ruby version info, and related resources.
From an MCP client, configure the rubygems_mcp server as a local stdio connection. The server starts and communicates via STDIN/STDOUT using the MCP protocol. You will access 19 tools and 4 resources that cover gems, versions, searches, downloads, changelogs, and Ruby maintenance data.
# Prerequisites
- Ruby 3.1 or higher
- Bundler (usually via `gem install bundler`)
# Install the MCP server gem
gem install rubygems_mcp
# Start the MCP server (stdio config is shown in the example configuration)
bundle exec rubygems_mcpUse an MCP client configuration that runs the server via a local command. The following configuration uses the RubyGems MCP server as a stdio backend. It runs the server through the gem command to ensure the correct Ruby version is used.
{
"mcpServers": {
"rubygems": {
"command": "gem",
"args": ["exec", "rubygems_mcp"],
"env": {
"RUBY_VERSION": "3.4.7"
}
}
}
}Validate that the server starts correctly and is reachable by MCP clients. Use the MCP Inspector to verify that the server exposes the expected tools and can handle requests.
# Run the inspector to connect to your rubygems_mcp server
npx @modelcontextprotocol/inspector bundle exec rubygems_mcpYou can run the server directly after installation. The server communicates over STDIN/STDOUT using the MCP protocol.
# With bundler
gem install rubygems_mcp
bundle exec rubygems_mcp
# Or if installed globally
rubygems_mcpAll endpoints exposed by rubygems_mcp are public and do not require authentication. Treat this as you would any public API access: monitor usage and ensure that your development environment is secure, especially when exposing local MCP endpoints to teammates.
The server provides a comprehensive set of tools to query gem data, Ruby versions, and related information. You can explore latest versions, specific gem versions, reverse dependencies, download statistics, changelogs, searches, and more. There are also resources that expose curated data like popular gems and Ruby maintenance details.
If you use a Ruby version manager, ensure the RUBY_VERSION environment variable matches the Ruby you intend to query. The stdio server configuration shown above uses gem exec rubygems_mcp to guarantee the correct Ruby context is applied for every request.
Fetch the latest versions for a list of gems, including release dates and licenses, with optional field selection.
Retrieve all versions for a single gem, with pagination, sorting, and field selection.
Return the latest Ruby version along with its release date.
List all Ruby versions with release dates, download URLs, and release notes URLs; supports pagination and sorting.
Obtain a changelog summary for a specific Ruby version by parsing release notes.
Get detailed information about a gem, including summary, homepage, source code, documentation, licenses, authors, and dependencies.
Get details for a specific gem version from RubyGems API v2, including downloads, dependencies, and built date.
List gems that depend on the specified gem.
Fetch download statistics for a specific gem version.
List the most recently added gems on RubyGems.org.
List gems with recently updated versions.
Provide a changelog summary for a gem by parsing its changelog URI.
Search for gems by name on RubyGems.org.
Show Ruby roadmap information with planned versions and associated issues.
Get detailed roadmap information for a specific Ruby version, including issues and planned features.
Fetch GitHub changelog for a Ruby version from the ruby/ruby repository.
Retrieve all new gem releases from RubyGems.org with pagination.
Retrieve popular new gem releases from RubyGems.org with pagination.