StackMCP

Rails + Ruby Stack for Claude Desktop

Intermediate5 servers37.8K tokens

Configuration

{
  "mcpServers": {
    "postgres-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-postgres",
        "postgresql://localhost/mydb"
      ],
      "env": {
        "POSTGRES_CONNECTION_STRING": "YOUR_POSTGRES_CONNECTION_STRING"
      }
    },
    "docker-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "docker-mcp"
      ]
    },
    "context7-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/context7-mcp"
      ]
    },
    "github-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_PERSONAL_ACCESS_TOKEN"
      }
    },
    "playwright-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@playwright/mcp"
      ]
    }
  }
}

Where to save

Paste the config above into:

~/Library/Application Support/Claude/claude_desktop_config.json

Environment Variables

Replace the YOUR_ placeholders with your actual values.

POSTGRES_CONNECTION_STRINGrequired

PostgreSQL connection string (e.g. postgresql://user:pass@localhost:5432/mydb)

Used by: PostgreSQL MCP

GITHUB_PERSONAL_ACCESS_TOKENrequired

GitHub personal access token

Used by: GitHub MCP

What’s in this stack

Query and interact with PostgreSQL databases, inspect schemas, and run SQL directly from your AI editor.

Rails convention is Postgres in production. Query your database, inspect Active Record schemas, and debug migrations inline.

Docker MCP14 tools

Manage Docker containers, images, volumes, and networks. Run, stop, inspect, and monitor containers from your AI editor.

Containerize your Rails app with all its dependencies — Redis, Postgres, Sidekiq — in one Docker Compose stack.

Pull up-to-date documentation and code examples for any library directly into your prompt context using the Context7 API.

Rails has strong conventions that change between versions. Up-to-date docs prevent your AI from generating Rails 6 patterns in a Rails 7 app.

GitHub MCP20 tools

Access the GitHub API to manage repositories, issues, pull requests, branches, and workflows directly from your AI editor.

Rails PRs tend to be large and convention-heavy. GitHub integration makes code review and CI management seamless.

Automate browser interactions, take screenshots, fill forms, and test web applications using Microsoft Playwright from your AI editor.

Rails system tests pair perfectly with Playwright. Test your full-stack Rails app from browser to database in one flow.

Other editors