Back to Home
amkisko icon

rubygems_mcp.rb

Verified Safe

by amkisko

Overview

Provides a Model Context Protocol (MCP) server and Ruby client for accessing RubyGems and Ruby version information, integrating with IDEs and AI clients.

Installation

Run Command
bundle exec rubygems_mcp

Environment Variables

  • RUBY_VERSION
  • SSL_CERT_FILE

Security Notes

The source code demonstrates strong security practices including explicit SSL certificate verification, robust input validation for gem names and versions, and defensive parsing of both JSON and HTML responses. It implements a maximum response size limit (5MB) and actively checks for crawler protection pages and malformed/unexpected content types (e.g., HTML instead of JSON). No hardcoded secrets or 'eval' statements are found. The primary attack surface would be vulnerabilities in upstream APIs (RubyGems, ruby-lang.org, GitHub) or the `net/http` and `nokogiri` libraries, which are external dependencies.

Similar Servers

Stats

Interest Score32
Security Score9
Cost ClassLow
Avg Tokens1000
Stars2
Forks0
Last Update2026-01-19

Tags

RubyGemsRubyMCPAPI ClientDeveloper Tools