Agent skill · software engineering · github
ruby-mcp-server-generator
Generate a complete Model Context Protocol server project in Ruby using the official MCP Ruby SDK gem.
Why this skill is useful
Adds a complete project generation script for MCP server in Ruby, including templates and structure that aren't publicly documented.
What it needs
Requires ruby installed locally. About 5k tokens when loaded. Last updated 2026-08-07. 37,534 stars on the source repository.
What this skill does
Ruby MCP Server Generator Generate a complete, production-ready MCP server in Ruby using the official Ruby SDK. Project Generation When asked to create a Ruby MCP server, generate a complete project with this structure: Gemfile Template Rakefile Template lib/mymcpserver.rb Template lib/mymcpserver/server.rb Template lib/mymcpserver/tools/greettool.rb Template lib/mymcpserver/tools/calculatetool.rb Template lib/mymcpserver/prompts/codereviewprompt.rb Template lib/mymcpserver/resources/exampleresource.rb Template bin/mcp-server Template Make the file executable: test/testhelper.rb Template test/tools/greettooltest.rb Template test/tools/calculatetooltest.rb Template README.md Template bash bundle install bash bundle exec bin/mcp-server bash {"jsonrpc":"2.0","id":"1","method":"ping"} {"jsonrpc":"2.0","id":"2","method":"tools/list"} {"jsonrpc":"2.0","id":"3","method":"tools/call","params":{"name":"greet","arguments":{"name":"Ruby"}}} ruby class McpController < ApplicationController def index server = MyMcpServer::Server.new( servercontext: { userid: currentuser.id } ) render json: server.handlejson(request.body.read) end end bash bundle exec rake test bash bundle exec rake rubocop bash bundle exec rake json { "mcpServers": { "my-mcp-server": { "command": "bundle", "args": ["exec", "bin/mcp-server"], "cwd": "/path/to/my-mcp-server" } } } my-mcp-server/ ├── Gemfile # Dependencies ├── Rakefile # Build tasks ├── lib/ # Source code │ ├── mymcpserver.rb # Main entry point │ └── mymcpserver/ # Module namespace │ ├── server.rb # Server setup │ ├── tools/ # Tool implementations │ ├── prompts/ # Prompt templates │ └── resources/ # Resource handlers ├── bin/ # Executables │ └── mcp-server # Stdio server ├── test/ # Test suite │ ├── testhelper.rb # Test configuration │ └── tools/ # Tool tests └── README.md # This file ` Generation Instructions 1. Ask for project name and description 2. Generate all files with proper naming and module structure 3. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills github/ruby-mcp-server-generator