Skip to main content
Glama
theashleygross

rails-routes-mcp

rails-routes-mcp

Two MCP tools over a Rails route table. Ruby. Stdio.

RubyMine 2025.2+ is already an MCP server. This is the other direction: a small server the IDE’s assistant can attach as a client.

Design rule from JetBrains, Feb 2026: paginate, filter, return file and line. Don’t dump bin/rails routes.

Fifteen-route shop catalog so CI doesn’t need a Rails app.

Tools

Tool

Returns

search_routes

page of routes (page_size ≤ 20), filters for verb / path / controller, each row has file:line

show_route

one route by verb+path, plus next.file / next.line

Related MCP server: ACE-MCP

RubyMine

Settings → Tools → MCP Server → stdio:

{
  "mcpServers": {
    "rails-routes": {
      "command": "ruby",
      "args": ["/absolute/path/to/rails-routes-mcp/bin/rails-routes-mcp"]
    }
  }
}

Eval

ruby evals/run.rb

A full rails routes dump is 4.83× a typical shaped page. 8/8 queries can fill show_route from verb / path / file / line.

ruby -Itest test/catalog_test.rb test/server_test.rb

No Bundler. MRI 3.1. The official Ruby MCP SDK is the right move if you want HTTP inside Rails; this slice is stdio on purpose.

Demo

Live: https://01a05643-d6bf-7a9d-9634-4f367e3a2682.skydive.app/rails_routes_mcp

pip install -r requirements.txt
streamlit run app.py

MIT. Ashley Gross, 2026.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Exposes Language Server Protocol (LSP) features as MCP tools, enabling IDE-grade semantic navigation including go-to-definition, find references, hover info, and symbols across multiple programming languages (Python, Rust, C/C++, TypeScript/JavaScript, React, HTML, CSS).
    3
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI clients to perform local code search, indexing, and analysis across Java, JavaScript/TypeScript, .NET/C#, and Python projects through the MCP protocol.
    1
    Apache 2.0
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to perform hybrid semantic and lexical code search across multiple repositories, retrieve symbol definitions and call hierarchies, and manage repository relations through MCP tools.
    Apache 2.0