action_mcp
by seuros·★ 113·Score 47
A Ruby gem that provides MCP server capabilities to Rails applications with robust production-ready network-based deployments.
Overview
ActionMCP is a Ruby gem focused on providing Model Context Protocol (MCP) capability to Ruby on Rails applications, specifically designed for production environments. Unlike many MCP implementations that rely on STDIO transport, ActionMCP is built for robust, network-based deployments making it suitable for production systems. The gem provides base classes and helpers for creating MCP applications, handling the boilerplate for MCP compliance while allowing developers to focus on their app's logic.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose ActionMCP if you're building Rails applications that need to expose tools, resources, and prompts to AI systems through MCP and want a production-ready solution without implementing MCP from scratch.
When NOT to choose this
Don't choose ActionMCP if you need STDIO transport for local development, require a non-Ruby solution, or need compatibility with MCP protocol versions prior to 2025-03-26.
Tools this server exposes
5 tools extracted from the READMEcalculate_sumCalculate the sum of two numbers
read_fileRead contents of a file
price_quoteReturn a structured price quote
report_linkReturn a downloadable report link
batch_indexIndex many items asynchronously with progress updates
Comparable tools
Installation
Installation
Add ActionMCP to your Gemfile:
# Add gem to your Gemfile
$ bundle add actionmcp
# Install dependencies
bundle install
# Copy migrations from the engine
bin/rails action_mcp:install:migrations
# Generate base classes and configuration
bin/rails generate action_mcp:install
# Create necessary database tables
bin/rails db:migrateConfiguration
ActionMCP supports network-based MCP connections. To connect with Claude Desktop, add this to your config/mcp.yml:
development:
servers:
- name: action_mcp
command: ["bundle", "exec", "rails", "server"]
args: []
env: {}And in Claude Desktop configuration:
{
"mcpServers": {
"action_mcp": {
"command": "ruby",
"args": ["-e", "require 'action_mcp'; ActionMCP.start"]
}
}
}FAQ
- Does ActionMCP support STDIO transport?
- No, ActionMCP does not support STDIO transport as it is designed for production-ready, network-based deployments. STDIO is only suitable for desktop or script-based use cases and is intentionally excluded.
- What MCP protocol versions does ActionMCP support?
- ActionMCP supports MCP 2025-06-18 (current) with backward compatibility for MCP 2025-03-26. It includes full compliance with JSON-RPC 2.0 transport, capability negotiation, error handling, session management, and change notifications.
Compare action_mcp with
Last updated · Auto-generated from public README + GitHub signals.