monitor
v1.7.0BetterDB MCP server - Valkey and Redis observability for Claude Code and other MCP clients
Values you need
| Variable | What it is | |
|---|---|---|
BETTERDB_URL | optional | URL of the BetterDB monitor instance |
BETTERDB_TOKEN | optional secret | MCP authentication token generated from the BetterDB Settings page |
BETTERDB_INSTANCE_ID | optional | Instance ID to target when using multi-instance cloud deployments |
BETTERDB_LOCAL_TOKEN | optional 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_TELEMETRY | optional | 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_TELEMETRY | optional | 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-mcpAdd 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
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_instances, select_instance, add_connection, test_connection, remove_connection, set_default_connection, get_info, get_slowlog, ….
- 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