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.
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.
# 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}"
# 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
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
# Set your API key and run the server
export QUERYPIE_API_KEY=your_token
querypie-mcp-server https://your_querypie_url
# 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
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"
}
}
}
}
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"
}
}
}
}
With QueryPie MCP Server properly configured, you can:
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.
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"
]
}
}
}
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.
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.