R

mcp_rails_template

Created Oct 19, 2025 by seuros

Language:

Ruby

Stars:

28

Forks:

5

README

Action MCP Example 🚀

A simple Ruby on Rails application demonstrating how to integrate and use ActionMCP.


Requirements

  • Ruby (see .ruby-version for recommended version)
  • PostgreSQL (or Docker)

Getting Started

1. Clone and Setup

git clone https://github.com/seuros/mcp_rails_template.git
cd mcp_rails_template
bin/setup

2. Environment Configuration

Copy the provided .env.example file:

cp .env.example .env

Edit .env and fill in necessary values according to your setup.

3. Database Setup

You can quickly spin up a temporary PostgreSQL instance using Docker:

make up

This will start PostgreSQL on port 5466.

Alternatively, configure your own PostgreSQL database by editing config/database.yml.

4. Run the Application

Launch the Rails server:

bin/rails s

The app will be available at http://localhost:3002.


ActionMCP Engine

By default, the ActionMCP engine is mounted at /action_mcp. Feel free to mount it at a custom location by modifying the routes in your application.


Usage

The app includes a simple tool to lint Ruby code using RuboCop through ActionMCP.

To test and inspect MCP functionality interactively, run:

npx @modelcontextprotocol/inspector

Contributing

Feel free to contribute! Open issues or submit pull requests to help improve this example.


Happy Coding! ✨🚀

Last updated: Oct 19, 2025

Publisher info

seuros's avatar

seuros

Open Source Contributor
Tangier, Morocco
453
followers
24
following
290
repos

More MCP servers built with Ruby

Jekyll

:globe_with_meridians: Jekyll is a blog-aware static site generator in Ruby

By jekyll 51.4K
Huginn

Create agents that monitor and act on your behalf. Your agents are standing by!

By huginn 48.5K
Spree

An open source eCommerce platform giving you full control and customizability. Modular and API-first. Multi-vendor, multi-tenant, multi-store, multi-currency, multi-language. Built using Ruby on Rails. Developed by @vendo-dev

By spree 15.2K