QueryPie Database Access Control MCP server

Provides a secure interface for monitoring and managing privileged database access, enabling administrators to review logs, detect security anomalies, and handle workflow requests through QueryPie's Database Access Control system.
Back to servers
Provider
QueryPie
Release date
Apr 08, 2025
Language
Go
Stats
8 stars

QueryPie MCP Server is an administration tool for QueryPie that allows you to manage your database environment through an AI interface. It enables you to create charts from query results, monitor system resources, detect suspicious behavior, and perform various administrative tasks without writing code.

Installation

Before installing, you'll need to prepare your QueryPie API key and URL. You can find the API key in the QueryPie web console under General > System > API Token.

Docker Installation

Standard Setup (Stdio)

# Set your credentials as environment variables
export QUERYPIE_API_KEY=your_token
export QUERYPIE_URL=https://your_querypie_url

# Run the MCP server
docker run --rm \
    -e "QUERYPIE_API_KEY=${QUERYPIE_API_KEY}" \
    ghcr.io/querypie/querypie-mcp-server "${QUERYPIE_URL}"

Server-Sent Events (SSE) Setup

# Set your credentials as environment variables
export QUERYPIE_API_KEY=your_token
export QUERYPIE_URL=https://your_querypie_url

# Run the MCP server with SSE transport
docker run --rm \
    -e "QUERYPIE_API_KEY=${QUERYPIE_API_KEY}" \
    ghcr.io/querypie/querypie-mcp-server "${QUERYPIE_URL}" \
    --transport sse \
    --port 8000

Linux/macOS Installation

First, install the binary:

# Install the querypie-mcp-server binary to ~/.local/bin
curl -L https://github.com/querypie/querypie-mcp-server/releases/latest/download/install.sh | sh

Standard Setup (Stdio)

# Set your API key and run the server
export QUERYPIE_API_KEY=your_token
querypie-mcp-server https://your_querypie_url

Server-Sent Events (SSE) Setup

# Set your API key and run the server with SSE transport
export QUERYPIE_API_KEY=your_token
querypie-mcp-server https://your_querypie_url \
    --transport sse \
    --port 8000

Integration with AI Tools

Claude Desktop Integration

Add this configuration to your claude_desktop_config.json file (located at ~/Library/Application Support/Claude on macOS or C:\Users\NAME\AppData\Roaming\Claude on Windows):

{
    "mcpServers": {
        "querypie": {
            "command": "docker",
            "args": [
                "run",
                "--rm",
                "-e",
                "QUERYPIE_API_KEY=${QUERYPIE_API_KEY}",
                "-it",
                "ghcr.io/querypie/querypie-mcp-server",
                "https://your_querypie_url"
            ],
            "env": {
                "QUERYPIE_API_KEY": "your_token"
            }
        }
    }
}

Cursor Integration

Add this configuration to your ~/cursor/mcp.json file:

{
  "mcpServers": {
    "querypie": {
      "command": "docker",
      "type": "stdio",
      "args": [
        "run",
        "--rm",
        "-e",
        "QUERYPIE_API_KEY=${QUERYPIE_API_KEY}",
        "-it",
        "ghcr.io/querypie/querypie-mcp-server",
        "https://your_querypie_url"
      ],
      "env": {
        "QUERYPIE_API_KEY": "your_token"
      }
    }
  }
}

Usage Capabilities

With QueryPie MCP Server properly configured, you can:

  • Create Visualizations: Generate charts and dashboards from query results without coding
  • Monitor System Resources: Track disk and memory usage in real-time
  • Detect Security Issues: Review access logs and identify suspicious SQL commands
  • Manage Assets: Register and manage database assets
  • Control Access: Set up and modify access permissions
  • Automate Audits: Schedule and run automated database audits

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later