Rails Pg Extras MCP Server

Use a minimally privileged, [read-only user](#least-responsibility) to eliminate the risk of data modification or exposure.

Local serverstdio

What is the Rails Pg Extras MCP MCP server?

Rails Pg Extras MCP MCP server exists for a simple reason — assistants are far more useful when they can act on Rails Pg Extras MCP directly instead of describing what you should do. Use a minimally privileged, read-only user to eliminate the risk of data modification or exposure.

Setting it up

Installation goes through your MCP client rather than a global install: point it at mcp-remote on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Configuration and credentials

You will need one environment variable: RAILS_PG_EXTRAS_MCP_DATABASE_URL. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the rails pg extras mcp mcp server does with a few real requests.

Choosing this one

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. It is maintained by pawurb; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

How to install the Rails Pg Extras MCP MCP server

and in your LLM of choice:

```json
{
  "mcpServers": {
    "pg-extras": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://localhost:3000/pg_extras_mcp/sse",
        "--header",
        "Authorization: secret"
      ]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
RAILS_PG_EXTRAS_MCP_DATABASE_URLEndpoint or connection string the server talks to.Yes

Frequently asked questions

It connects Rails Pg Extras MCP to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Rails Pg Extras MCP directly.