rails-routes-mcp
Allows RubyMine's AI assistant to search and inspect Rails routes, returning file and line information for jumping to the corresponding controller action.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@rails-routes-mcpWhere is the GET /products route defined?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
rails-routes-mcp
A two-tool MCP server in Ruby for a Rails route table. Stdio JSON-RPC. Built so RubyMine 2025.2+ can attach it as an MCP client (Claude / Junie talking to this server, alongside RubyMine's own IDE server).
JetBrains' February 2026 post Building LLM-Friendly MCP Tools in RubyMine is the design spec: paginate, filter, return file+line for the next editor jump, do not dump bin/rails routes.
Portfolio piece. Ships a 15-route shop catalog so CI does not need a Rails app. Point it at a real routes.rb later.
Tools
Tool | What it returns |
| Paginated list ( |
| One route by |
Two tools. Not a Rails SDK.
Related MCP server: ACE-MCP
RubyMine
RubyMine already is an MCP server (call hierarchy, get_rails_routes, run configurations). This repo is the other direction: a small server the IDE's AI Assistant consumes.
Settings → Tools → MCP Server → manual stdio config:
{
"mcpServers": {
"rails-routes": {
"command": "ruby",
"args": ["/absolute/path/to/rails-routes-mcp/bin/rails-routes-mcp"]
}
}
}Or paste Copy Stdio Config from that same settings page and swap in this command.
Eval
ruby evals/run.rbCommitted report: naive rails routes dump is 4.83× a typical shaped page; 8/8 queries fill show_route from verb/path/file/line. See evals/REPORT.md.
Tradeoffs
No
mcpgem. The protocol surface we need isinitialize/tools/list/tools/call. Owning the loop meansruby test/runs on stock MRI 3.1 with zero bundler. The official Ruby SDK is the right move for Streamable HTTP + Rails mount; this is the stdio slice.Catalog, not
bin/rails routes. Parsing a live app is a follow-up. The eval is about payload shape, which does not need Bootsnap.No writes. A
generate_controllertool would be a different repo and would need RubyMine's ownapply_patch, not a second writer.
Streamlit demo
Ruby stdio is the server. Streamlit is the click-through of search_routes / show_route.
pip install -r requirements.txt
streamlit run app.pyStreamlit Cloud: app file app.py. No secrets.
Test
ruby -Itest test/catalog_test.rb test/server_test.rb
ruby evals/run.rbWhat I would do differently
Shell out to
bin/rails routes --jsonwhenRAILS_ROOTis set, with the same pagination wrapper.Add a resource
routes://tablefor clients that prefer resources over tools.
License
MIT. Ashley Gross, 2026.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceExposes 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).3MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI clients to perform local code search, indexing, and analysis across Java, JavaScript/TypeScript, .NET/C#, and Python projects through the MCP protocol.2Apache 2.0
- FlicenseNot gradedqualityDmaintenanceProvides code intelligence by indexing source code into SQLite and offering MCP tools for symbol search, flow tracing, and context retrieval to assist with code navigation and understanding.
- AlicenseAqualityBmaintenanceEnables AI assistants to search, analyze, and understand multi-language codebases by providing indexed code intelligence via MCP.167357MIT
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
Geo-based flight search MCP server. Find more flights between any two places on earth
CodeRide eliminates the context reset cycle once and for all. Through MCP integration, it seamless…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/theashleygross/rails-routes-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server