Skip to content
Skillpedia
βœ“ Official Β· BetterDB Inc.● Free and open sourceπŸ’» LocalπŸ”‘ Needs an API keyCloud and servers

BetterDB Monitor

Lets your AI agent inspect Valkey and Redis performance, slow commands and past activity.

1.3k stars on GitHubby BetterDB Inc.License NOASSERTIONUpdated 18 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add monitor -- npx -y @betterdb/mcp

What to fill in

NameWhat it isRequired
BETTERDB_URLURL of the BetterDB monitor instanceNo
BETTERDB_TOKENMCP authentication token generated from the BetterDB Settings pageNo
BETTERDB_INSTANCE_IDInstance ID to target when using multi-instance cloud deploymentsNo

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Show the slowest commands from the last night.
Which client is using the most memory on my Valkey?

What it is

BetterDB Monitor keeps data that Valkey normally throws away, such as slowlogs, command patterns and client activity. Its MCP server gives Claude Code, Cursor or any MCP client about 60 tools to look into this history. It works with Valkey 8+ and Redis 6+.

What it can do

  • Slowlog and command pattern history
  • Client activity by service
  • Hot key tracking
  • Cluster topology and slot stats
  • ACL audit trail
  • Anomaly detection (Pro)
  • Capacity forecasting

When to use

  • β€ΊWhen your Valkey or Redis slowed down at 3am and you want to see what happened.
  • β€ΊWhen you want to know which service sends the most commands.
  • β€ΊWhen you plan a migration between Redis and Valkey.

What you need

A running BetterDB Monitor (Docker, Helm or npx @betterdb/monitor), a Valkey or Redis instance to watch, and Node.js 20+ for the CLI. The MCP server runs with npx @betterdb/mcp and uses an MCP token (required on cloud, optional on self-hosted).

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it open source?

The repository shows an open license. Some features are marked Pro, free in early access.

Which databases work?

Valkey 8.0+ and Redis 6+. COMMANDLOG and SLOT-STATS are Valkey-only.

How many MCP tools are there?

The readme says 60 tools, through the @betterdb/mcp package.

Do I need a token?

Create one under Settings, MCP Tokens. It is required on cloud and optional on self-hosted.

Where is data stored?

In memory by default, or in PostgreSQL or SQLite if you choose.

How do I start the monitor?

Run docker run -d -p 3001:3001 betterdb/monitor:latest and open http://localhost:3001.

If it does not work

  • β€ΊIf your database runs on the host, use host.docker.internal as the host inside Docker.
  • β€ΊOn Linux add --add-host=host.docker.internal:host-gateway to docker run.
  • β€ΊCreate an MCP token under Settings, MCP Tokens if the client is refused.

5 new skills a week. 1 minute to read.