rails-mcp-server

rails-mcp-server

3.7

If you are the rightful owner of rails-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Ruby implementation of a Model Context Protocol (MCP) server for Rails projects, allowing LLMs to interact with Rails projects.

The Rails MCP Server is a Ruby-based implementation of the Model Context Protocol (MCP) designed for Rails projects. It enables Large Language Models (LLMs) to interact with Rails applications by providing a structured method to request and use tools, access resources, and maintain context during interactions. This server facilitates code analysis, exploration, and assistance by implementing the MCP specification, allowing AI models to access and manipulate Rails projects effectively. The server supports managing multiple projects, browsing project files, viewing routes, inspecting models, and analyzing controller-view relationships, among other features. It can be integrated with LLM clients like Claude Desktop, offering both STDIO and HTTP modes for communication.

Features

  • Manage multiple Rails projects
  • Browse project files and structures
  • View Rails routes
  • Inspect model information
  • Analyze controller-view relationships

Tools

  1. switch_project

    Switch the currently active Rails project

  2. get_project_info

    Get information about the current Rails project, including version, directory structure, and configuration

  3. list_files

    List files in Rails projects, support directory paths and schema filtering

  4. get_file

    Get the content of the specified file in the project, support syntax highlighting

  5. get_routes

    Get all routes defined in the Rails project

  6. get_models

    Get information about models in Rails projects, including architecture, associations, and definitions

  7. get_schema

    Get the database schema or schema of a specific table for a Rails project