drio
Open app

Rails MCP Server

Source

A Ruby gem implementation of a Model Context Protocol (MCP) server for Rails projects. This server allows LLMs (Large Language Models) to interact with Rails projects through the Model Context Protocol.

Catalog onlyCatalog onlySTDIO

Overview

Rails MCP Server is a Ruby gem that implements a Model Context Protocol (MCP) server for Rails projects, enabling Large Language Models (LLMs) to interact with Rails applications through a standardized protocol.

To use the Rails MCP Server, install the gem using gem install rails-mcp-server, configure your Rails projects in the projects.yml file, and start the server with rails-mcp-server. You can then connect an MCP-compatible client to interact with your Rails projects.

  • Manage multiple Rails projects - Browse project files and structures - View Rails routes - Inspect model information - Get database schema information - Follow the Model Context Protocol standard
  1. Integrating AI models with Rails applications for code analysis.
  2. Assisting developers in exploring and understanding Rails project structures.
  3. Automating interactions with Rails applications through LLMs.

Add to your AI client

Use these steps to connect Rails MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "rails-mcp-server-maquina-app": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-rails-mcp-server-maquina-app"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "rails-mcp-server-maquina-app": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-rails-mcp-server-maquina-app"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "rails-mcp-server-maquina-app": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-rails-mcp-server-maquina-app"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "rails-mcp-server-maquina-app": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-rails-mcp-server-maquina-app"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "rails-mcp-server-maquina-app": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-rails-mcp-server-maquina-app"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "rails-mcp-server-maquina-app": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-rails-mcp-server-maquina-app"
      ]
    }
  }
}

FAQ

What is the Model Context Protocol (MCP)?

MCP is a standardized way for AI models to interact with their environment, allowing them to request and use tools effectively.

Is Rails MCP Server free to use?

Yes! Rails MCP Server is open-source and available under the MIT License.

How do I configure my Rails projects?

Edit the `projects.yml` file in your config directory to include your Rails projects.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3640,"uuid":"a3ba4677-8191-43a1-99ef-17c7fd9129d6","name":"rails-mcp-server","title":"Rails MCP Server","description":"A Ruby gem implementation of a Model Context Protocol (MCP) server for Rails projects. This server allows LLMs (Large Language Models) to interact with Rails projects through the Model Context Protocol.","avatar_url":"https://avatars.githubusercontent.com/u/182708901?v=4","created_at":"2025-03-20T18:35:17.528Z","updated_at":"2025-03-20T18:42:46.969Z","status":"created","author_name":"maquina-app","author_avatar_url":"https://avatars.githubusercontent.com/u/182708901?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/maquina-app/rails-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"136\",\"license\":\"MIT license\",\"language\":\"Ruby\",\"is_official\":false,\"latest_commit_time\":\"2025-06-03 11:01:19\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]