drio
Open app

Action MCP Example 🚀

Source

A minimal Rails API template for creating MCP (Model Context Protocol) servers with robust tool execution capabilities and examples.

Catalog onlyCatalog onlySTDIO

Overview

Action MCP Example is a minimal Ruby on Rails API template designed for creating Model Context Protocol (MCP) servers, showcasing robust tool execution capabilities.

To use Action MCP Example, clone the repository, set up the environment, configure the database, and run the Rails server to start the application.

  • Simple setup for creating MCP servers using Ruby on Rails. - Integration with ActionMCP for executing tools like RuboCop. - Customizable routing for the ActionMCP engine.
  1. Building and deploying MCP servers for various applications.
  2. Linting Ruby code using RuboCop through the ActionMCP engine.
  3. Experimenting with the Model Context Protocol in a Rails environment.

Add to your AI client

Use these steps to connect Action MCP Example 🚀 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-template-seuros": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-rails-template-seuros"
      ]
    }
  }
}

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-template-seuros": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-rails-template-seuros"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-rails-template-seuros": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-rails-template-seuros"
      ]
    }
  }
}

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-template-seuros": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-rails-template-seuros"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-rails-template-seuros": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-rails-template-seuros"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-rails-template-seuros": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-rails-template-seuros"
      ]
    }
  }
}

FAQ

What are the requirements to run this project?

You need Ruby and PostgreSQL (or Docker) to run this project.

How do I set up the database?

You can use Docker to quickly spin up a PostgreSQL instance or configure your own database in the `config/database.yml` file.

Can I contribute to this project?

Yes! Contributions are welcome. You can open issues or submit pull requests.