rails-mcp-server

This repository provides a Rails MCP server, enabling AI models to interact with Rails projects using the Model Context Protocol for code analysis, exploration, and assistance. It manages projects, browses

250
4

Rails MCP Server

A Ruby implementation of a Model Context Protocol (MCP) server for Rails projects, enabling LLMs to interact with Rails projects. MCP standardizes AI model interaction with environments, defining structured methods for requesting tools, accessing resources, and maintaining context.

This Rails MCP Server implements the MCP specification, granting AI models access to Rails projects for code analysis, exploration, and assistance.

Features

  • Manages multiple Rails projects.
  • Browses project files and structures.
  • Views Rails routes.
  • Inspects model information.
  • Retrieves database schema information.
  • Follows the Model Context Protocol standard.

Installation and Configuration

Install the gem using gem install rails-mcp-server. Configure projects by editing the projects.yml file in the XDG config directory. The server supports Claude Desktop integration via a setup script or manual configuration. It provides tools like switch_project, get_project_info, list_files, get_file, get_routes, get_models, and get_schema for interacting with Rails projects. The server communicates via JSON-RPC over stdio.

Repository

MA
maquina-app

maquina-app/rails-mcp-server

Created

March 20, 2025

Updated

March 28, 2025

Language

Ruby

Category

Developer Tools