This MCP server connects MCP clients to BetterDB so AI assistants can inspect Valkey and Redis monitoring data, including health, slow commands, hot keys, latency, cluster stats, and anomalies. It can use an existing BetterDB instance or start and manage a local monitor process.
From the registry: BetterDB MCP server - Valkey observability for Claude Code and other MCP clients
Please install the `monitor` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Install Node.js 20+** — Node.js version 20 or newer is required to run the MCP server via npx.
Optional prerequisites:
- Create a BetterDB MCP token — In BetterDB, go to Settings → MCP Tokens and generate a token. Required for BetterDB cloud; optional for local development against an existing local monitor. (https://betterdb.com)
- Have a BetterDB instance available — Use a running BetterDB instance (cloud or self-hosted), or use the MCP server's --autostart mode to automatically start and manage a local monitor process. (https://docs.betterdb.com)
Canonical MCP server config (stdio transport):
- command: `npx`
- args: ["@betterdb/mcp"]
- optional environment variables:
- `BETTERDB_URL`: BetterDB instance URL. Required when connecting to a cloud or existing self-hosted/local BetterDB monitor. Not needed when using zero-config local development with --autostart. (example: `https://<your-workspace>.app.betterdb.com`)
- `BETTERDB_TOKEN`: BetterDB MCP token from Settings. Required for BetterDB cloud; optional for local development against an existing local monitor. (example: `<your-token>`)
- `BETTERDB_INSTANCE_ID`: Pre-select a specific BetterDB instance and skip the select_instance step. (example: `<your-instance-id>`)
Note: Primary portable install path uses npx @betterdb/mcp over stdio. Alternate repeatable configs described in the README include: (1) existing local monitor with env BETTERDB_URL=<your-local-url>; (2) zero-config local development using args ["@betterdb/mcp", "--autostart", "--persist"] and no env vars. Additional CLI args supported: --autostart, --persist, --port <number>, --storage <type>, and --stop.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.BETTERDB_TOKENrequiredMCP token from BetterDB Settings → MCP Tokens, required for cloud useBETTERDB_URLrequiredURL of the BetterDB instance to connect toMinimal, token-efficient Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB