Rails AI Context MCP Server

Auto-expose Rails app structure to AI via MCP. Zero config, 11 read-only tools.

Local serverstdioTypeScript

What is the Rails AI Context MCP Server?

Auto-expose Rails app structure to AI via MCP. Zero config, 11 read-only tools.

The short version

You catch it. You fix it. You re-prompt. It breaks something else.

Built by a Rails developer with 10+ years of production experience.

What it needs from you

  • Ruby >= 3.1    Rails >= 7.0 - Optional: brakeman for security scanning, listen for watch mode, ripgrep for fast search ---

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
search_codeTrace: definition + source + callers + tests. Also: definition, call, class filters
get_edit_contextMethod-aware code extraction with class context
analyze_featureFull-stack: models + controllers + routes + services + jobs + views + tests
get_contextComposite: schema + model + controller + routes + views in one call
onboardNarrative app walkthrough (quick/standard/full)
get_schemaColumns with indexed/unique/encrypted/default hints
get_model_detailsAST-parsed associations, validations, scopes, enums, macros - each result tagged [VERIFIED] or [INFERRED]
get_callbacksCallbacks in Rails execution order with source
get_concernConcern methods + source + which models include it
get_controllersActions + inherited filters + render map + strong params
get_routesCode-ready helpers (post_path(@record)) + required params
get_viewTemplates with ivars, Turbo wiring, Stimulus refs, partial locals
get_stimulusHTML data-attributes (dashes!) + targets + values + actions
get_partial_interfaceWhat locals to pass + what methods are called on them

Configuration

  • Ruby >= 3.1    Rails >= 7.0 - Optional: brakeman for security scanning, listen for watch mode, ripgrep for fast search ---

Example prompts to try

  • “Use Rails AI Context to search code.”
  • “Use Rails AI Context to get edit context.”
  • “Use Rails AI Context to analyze feature.”

Frequently asked questions

Auto-expose Rails app structure to AI via MCP. Zero config, 11 read-only tools. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.