action_mcp
Active·★ 122·MIT·Updated 2026-10-18
ActionMCP is a Ruby gem that simplifies the integration of Ruby on Rails applications with the Model Context Protocol (MCP), acting as an MCP server. It enables AI assistants to interact with external data sources and tools in a standardized, secure, and production-ready manner.
#Ruby#Rails#Model Context Protocol#LLM Integration#AI#JSON-RPC#Server Framework#API
01
Features
01Full compliance with MCP 2025-06-18 protocol, including JSON-RPC 2.0 transport, capability negotiation, and session management.
02Provides base classes (Prompt, Tool, ResourceTemplate) to easily expose application logic and data to Large Language Models (LLMs).
03Offers consent management for sensitive operations, structured output schemas for tools, and asynchronous task execution with progress reporting.
04Pluggable session storage (volatile, ActiveRecord, custom) and configurable PubSub system (SolidMCP, Redis, Simple) for production deployments.
05Authentication via Gateway system, allowing integration with existing user authentication and authorization mechanisms.
02
Compatibility
Ruby
Runtime
Verified via docs
Rails
Framework
Verified via docs
PostgreSQL
Database
Verified via docs
MySQL
Database
Verified via docs
SQLite3
Database
Verified via docs
Rack
Server Interface
Verified via docs
03
Quick start
1
$ bundle add actionmcp
2
$ bundle install
3
$ bin/rails action_mcp:install:migrations
4
$ bin/rails generate action_mcp:install
5
$ bin/rails db:migrate
04
Use cases
↳Building an MCP server to expose Ruby/Rails application functionality to AI assistants and LLMs.
↳Creating interactive tools that LLMs can call to perform specific tasks within a Rails application, with consent management for sensitive actions.
↳Developing reusable prompt templates and dynamic resource templates for LLMs to access structured application data.
↳Implementing multi-tenant applications or varying access controls by selectively exposing MCP capabilities using profiles.
↳Integrating Ruby on Rails applications with external AI systems via a standardized, network-based Model Context Protocol.
05
Alternatives
arxiv-reader-mcp★ 25
Want to search arXiv papers, fetch metadata, and extract full-text PDFs without leaving your editor? This MCP server connects any MCP-compatible client (Claude Code, etc.) directly to arXiv.
extract-llms-docs★ 35
Extract documentation for AI agents from any site with llms.txt support. Features MCP server, REST API, batch processing, and multiple export formats.
Comments
Log in to leave a comment
No comments yet. Be the first!