monitor

v1.7.0
io.github.BetterDB-inc/monitor Checked 18 hours ago Published 2 days ago

BetterDB MCP server - Valkey and Redis observability for Claude Code and other MCP clients

Values you need

VariableWhat it is
BETTERDB_URLoptional URL of the BetterDB monitor instance
BETTERDB_TOKENoptional secret MCP authentication token generated from the BetterDB Settings page
BETTERDB_INSTANCE_IDoptional Instance ID to target when using multi-instance cloud deployments
BETTERDB_LOCAL_TOKENoptional secret Token for a monitor started with --autostart or start_monitor when BETTERDB_URL is set to a different monitor; without it that monitor gets no token. BETTERDB_TOKEN is used when BETTERDB_URL is unset or points at the started monitor
BETTERDB_MCP_TELEMETRYoptional Set to false, 0, no or off to stop posting tool usage events to the monitor. Usage events are off if this or BETTERDB_TELEMETRY is off
BETTERDB_TELEMETRYoptional Set to false, 0, no or off to turn off telemetry for both the MCP server and a monitor it starts

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add monitor -- npx -y --package=@betterdb/mcp@1.7.0 betterdb-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "monitor": {
      "args": [
        "-y",
        "--package=@betterdb/mcp@1.7.0",
        "betterdb-mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "monitor": {
      "args": [
        "-y",
        "--package=@betterdb/mcp@1.7.0",
        "betterdb-mcp"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "monitor": {
      "args": [
        "-y",
        "--package=@betterdb/mcp@1.7.0",
        "betterdb-mcp"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.monitor]
command = "npx"
args = ["-y", "--package=@betterdb/mcp@1.7.0", "betterdb-mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: list_instances, select_instance, add_connection, test_connection, remove_connection, set_default_connection, get_info, get_slowlog, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json