Overview
McpRails is a Ruby gem designed to integrate MCP servers into your Rails application, providing a seamless way to manage and interact with these servers.
To use McpRails, add it to your application's Gemfile and run the bundle command to install it. You can also install it directly using the gem install command.
- Easy integration of MCP servers into Rails apps - Simple installation process via Gemfile or gem command - Open-source under the MIT License
- Managing MCP servers for web applications.
- Enhancing Rails applications with server management capabilities.
- Facilitating communication between Rails apps and MCP servers.
Add to your AI client
Use these steps to connect McpRails 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": {
"mcp-rails-whoojemaflip": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-rails-whoojemaflip"
]
}
}
}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": {
"mcp-rails-whoojemaflip": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-rails-whoojemaflip"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-rails-whoojemaflip": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-rails-whoojemaflip"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-rails-whoojemaflip": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-rails-whoojemaflip"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-rails-whoojemaflip": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-rails-whoojemaflip"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-rails-whoojemaflip": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-rails-whoojemaflip"
]
}
}
}FAQ
What is the installation process for McpRails?
You can install McpRails by adding it to your Gemfile or using the gem install command.
Is McpRails open source?
Yes! McpRails is available as open source under the MIT License.
What programming language is McpRails written in?
McpRails is written in Ruby.