Skip to main content
Glama
rails-routes-mcp

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: rails-ai-context

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.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      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
      A
      quality
      B
      maintenance
      Lets AI coding agents ask a Rails app about itself: 35 read-only tools answer from the schema, models, routes, controllers, views, jobs and conventions, over MCP or the command line, even when the app cannot boot.
      6
      35
      189
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables MCP clients and AI coding agents to query a running editor instance for real-time LSP diagnostics, symbol/type information, references, file opening, and workspace-wide symbol renaming, avoiding slow tsc/eslint runs.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables MCP clients and AI coding agents to access real-time editor diagnostics, LSP type/symbol information, references, workspace discovery, file opening, and safe symbol renaming. It replaces slow tsc/eslint/build checks by querying the editor's language servers for accurate live code context.
      -