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
| Name | What it is | Required |
|---|---|---|
BETTERDB_URL | URL of the BetterDB monitor instance | No |
BETTERDB_TOKEN | MCP authentication token generated from the BetterDB Settings page | No |
BETTERDB_INSTANCE_ID | Instance ID to target when using multi-instance cloud deployments | No |
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
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
bigquery-observabilityHelps your agent check BigQuery job performance, query history and slot use with INFORMATION_SCHEMA, Cloud Monitoring and the REST API.service-mesh-observabilityHelps your agent monitor complex systems, track issues, and understand performance. Allows visualization of key data for debugging.django-perf-reviewHelps your agent review Django code for performance issues. It's useful for optimizing the database and ORM, finding slow queries.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.