rails-mcp-server  by maquina-app

LLM interaction server for Rails projects

Created 6 months ago
347 stars

Top 80.0% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides a Ruby gem implementing a Model Context Protocol (MCP) server for Rails applications, enabling Large Language Models (LLMs) to interact with and analyze Rails codebases. It targets developers and AI engineers seeking to integrate LLMs into their Rails development workflow for tasks like code exploration, documentation access, and configuration analysis.

How It Works

The server implements the MCP specification, allowing LLMs to request and utilize tools for interacting with Rails projects. It supports both STDIO and HTTP modes, offering JSON-RPC and Server-Sent Events (SSE) endpoints in HTTP mode. The core functionality revolves around a suite of tools that provide access to project structure, files, routes, models, database schema, controller-view relationships, and environment configurations. It also facilitates loading documentation for Rails, Turbo, Stimulus, and Kamal.

Quick Start & Requirements

Highlighted Details

  • Supports multiple Rails projects via configuration.
  • Offers tools for detailed analysis of models, routes, and database schemas.
  • Integrates with LLM clients like Claude Desktop.
  • Provides access to official Rails, Turbo, Stimulus, and Kamal documentation.
  • Includes an MCP Inspector for testing and debugging.

Maintenance & Community

Licensing & Compatibility

  • Released under the MIT License, permitting commercial use and modification.

Limitations & Caveats

Ruby version manager users must configure Claude Desktop to use the correct Ruby shim path to avoid startup failures. The --bind-all flag for HTTP mode should only be used on trusted networks due to increased attack surface.

Health Check
Last Commit

1 month ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
1
Star History
19 stars in the last 30 days

Explore Similar Projects

Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Magnus Müller Magnus Müller(Cofounder of Browser Use), and
83 more.

langchain by langchain-ai

0.4%
116k
Framework for building LLM-powered applications
Created 2 years ago
Updated 1 day ago
Feedback? Help us improve.