The project is in a healthy, maintained state
MCP interface for rails-pg-extras. It enables LLMs to analyze the PostgreSQL metadata and performance metrics.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

 Project Readme

Rails PG Extras MCP Gem Version GH Actions

MCP (Model Context Protocol) interface for rails-pg-extras gem. It enables PostgreSQL metadata and performance analysis with a simple LLM prompt.

LLM interface

Installation

bundle add rails-pg-extras
bundle add rails-pg-extras-mcp

Library supports MCP protocol via HTTP SSE interface.

config/routes.rb

# Authentication is not yet supported
mount RailsPgExtras.mcp_app, at: "pg-extras-mcp"

Install mcp-remote:

npm install -g mcp-remote

and in your LLM of choice:

{
  "mcpServers": {
    "pg-extras": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://localhost:3000/pg-extras-mcp/sse"
      ]
    }
  }
}

You can now ask LLM questions about the metadata and performance metrics of your database.

Status

Project is in an early beta, so proceed with caution.