What it does
BetterDB MCP server - Valkey and Redis observability for Claude Code and other MCP clients
- Connects Runs on your computer
- Account or key Needs BETTERDB_TOKEN, BETTERDB_LOCAL_TOKEN
- Category Developer tools
Use together with
Skills that teach the AI this kind of work; they work alongside this one
andrej-karpathy-skills
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Why it ranks here
Lists are ordered by a usage score (out of 100) built from these parts
| Popularity | 34/80 | GitHub stars or weekly downloads: the larger counts 60, the smaller 20 |
|---|---|---|
| Freshness | 12/12 | Full marks for a release or code change within 30 days |
| Still answering | 0/8 | The cloud endpoint answered at the last check |
| Usage score | 46/100 |
Quality: Passed 2/3 basic checks (shown, not used for ordering) · Momentum: 7 (Used only on the Trending tab)
Install
Pick the AI app you use, then copy the settings.
Let your AI install it with one sentence
Please install Monitor. Follow https://mcp.popnx.com/i/betterdb-inc-monitor.md, show me the commands and wait for my OK before running them.Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads
Passed 2/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
You need a Monitor key (create it on the maker’s site) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
Let AI install it
Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Monitor for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "monitor": { "command": "npx", "args": [ "-y", "@betterdb/mcp" ], "env": { "BETTERDB_TOKEN": "your-value", "BETTERDB_LOCAL_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For BETTERDB_TOKEN, BETTERDB_LOCAL_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Monitor tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install Node.js (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
node -v- A version number such as v26.13.1 = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed
Open the Node.js download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
node -vInstall once; it works for everything that needs Node.js
Sign up and create a Monitor key
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
Open the Claude desktop app’s settings file
SettingsDeveloperEdit Config
Paste these settings and save the file
{ "mcpServers": { "monitor": { "command": "npx", "args": [ "-y", "@betterdb/mcp" ], "env": { "BETTERDB_TOKEN": "your-value", "BETTERDB_LOCAL_TOKEN": "your-value" } } } }Paste the key only into the app’s field, never into a chat or to anyone
Quit Claude and open it again
Try it
Use Monitor and tell me what you can do for me, then show me one thing✓ If Claude says it is using Monitor or shows a Monitor tool in the answer, you are connected
4 optional setting(s) (works without them)
The command above works without these. Add them only if you want to change something, following the maker’s description.
BETTERDB_URLURL of the BetterDB monitor instanceBETTERDB_INSTANCE_IDInstance ID to target when using multi-instance cloud deploymentsBETTERDB_MCP_TELEMETRYSet 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 offBETTERDB_TELEMETRYSet to false, 0, no or off to turn off telemetry for both the MCP server and a monitor it starts
Descriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect Monitor yet
Monitor runs on your computer, but ChatGPT can only connect servers that run on the web
What you can do instead
A · Use an app that can connect Monitor
- You need a Monitor key (create it on the maker’s site) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
- You need a Monitor key (create it on the maker’s site) · Install Node.js on your computer first (one time)
- You need a Monitor key (create it on the maker’s site) · Install Node.js on your computer first (one time)
- You need a Monitor key (create it on the maker’s site) · Install Node.js on your computer first (one time)
B · Others in Developer tools that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
Works with Claude Code, with some setup first
You need a Monitor key (create it on the maker’s site) · Install Node.js on your computer first (one time)
Let AI install it
Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Monitor for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user monitor --env BETTERDB_TOKEN=your-value --env BETTERDB_LOCAL_TOKEN=your-value -- npx -y @betterdb/mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For BETTERDB_TOKEN, BETTERDB_LOCAL_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Monitor tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install Node.js (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
node -v- A version number such as v26.13.1 = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed
Open the Node.js download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
node -vInstall once; it works for everything that needs Node.js
Sign up and create a Monitor key
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
Open Terminal
Mac: press Command+Space and type Terminal · Windows: open PowerShell
Paste this command and press Enter
claude mcp add --scope user monitor --env BETTERDB_TOKEN=your-value --env BETTERDB_LOCAL_TOKEN=your-value -- npx -y @betterdb/mcpReplace “your-value” with your key before pressing Enter
Paste the key only into the app’s field, never into a chat or to anyone
Type /mcp in Claude Code
You should see Monitor listed as connected
Try it
Use Monitor and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using Monitor or shows a Monitor tool in the answer, you are connected
4 optional setting(s) (works without them)
The command above works without these. Add them only if you want to change something, following the maker’s description.
BETTERDB_URLURL of the BetterDB monitor instanceBETTERDB_INSTANCE_IDInstance ID to target when using multi-instance cloud deploymentsBETTERDB_MCP_TELEMETRYSet 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 offBETTERDB_TELEMETRYSet to false, 0, no or off to turn off telemetry for both the MCP server and a monitor it starts
Descriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
You need a Monitor key (create it on the maker’s site) · Install Node.js on your computer first (one time)
Let AI install it
Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Monitor for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "monitor": { "command": "npx", "args": [ "-y", "@betterdb/mcp" ], "env": { "BETTERDB_TOKEN": "your-value", "BETTERDB_LOCAL_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For BETTERDB_TOKEN, BETTERDB_LOCAL_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Monitor tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install Node.js (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
node -v- A version number such as v26.13.1 = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed
Open the Node.js download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
node -vInstall once; it works for everything that needs Node.js
Sign up and create a Monitor key
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
Fill in your key
In the Monitor settings, BETTERDB_TOKEN, BETTERDB_LOCAL_TOKEN is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Open the AI chat in Cursor in Agent mode
Try it
Use Monitor and tell me what you can do for me, then show me one thing✓ If Cursor says it is using Monitor or shows a Monitor tool in the answer, you are connected
4 optional setting(s) (works without them)
The command above works without these. Add them only if you want to change something, following the maker’s description.
BETTERDB_URLURL of the BetterDB monitor instanceBETTERDB_INSTANCE_IDInstance ID to target when using multi-instance cloud deploymentsBETTERDB_MCP_TELEMETRYSet 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 offBETTERDB_TELEMETRYSet to false, 0, no or off to turn off telemetry for both the MCP server and a monitor it starts
Descriptions are as written by the maker.
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
You need a Monitor key (create it on the maker’s site) · Install Node.js on your computer first (one time)
Let AI install it
Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Monitor for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "monitor": { "type": "stdio", "command": "npx", "args": [ "-y", "@betterdb/mcp" ], "env": { "BETTERDB_TOKEN": "your-value", "BETTERDB_LOCAL_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For BETTERDB_TOKEN, BETTERDB_LOCAL_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Monitor tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install Node.js (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
node -v- A version number such as v26.13.1 = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed
Open the Node.js download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
node -vInstall once; it works for everything that needs Node.js
Sign up and create a Monitor key
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
Fill in your key
In the Monitor settings, BETTERDB_TOKEN, BETTERDB_LOCAL_TOKEN is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Open the AI chat in VS Code in Agent mode
Try it
Use Monitor and tell me what you can do for me, then show me one thing✓ If VS Code says it is using Monitor or shows a Monitor tool in the answer, you are connected
4 optional setting(s) (works without them)
The command above works without these. Add them only if you want to change something, following the maker’s description.
BETTERDB_URLURL of the BetterDB monitor instanceBETTERDB_INSTANCE_IDInstance ID to target when using multi-instance cloud deploymentsBETTERDB_MCP_TELEMETRYSet 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 offBETTERDB_TELEMETRYSet to false, 0, no or off to turn off telemetry for both the MCP server and a monitor it starts
Descriptions are as written by the maker.
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
JSON settings are under “For developers” below
For developers: Terminal commands and JSON settings
Installed on your computer
Claude Code
claude mcp add --scope user monitor --env BETTERDB_TOKEN=your-value --env BETTERDB_LOCAL_TOKEN=your-value -- npx -y @betterdb/mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"monitor": {
"command": "npx",
"args": [
"-y",
"@betterdb/mcp"
],
"env": {
"BETTERDB_TOKEN": "your-value",
"BETTERDB_LOCAL_TOKEN": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"monitor": {
"command": "npx",
"args": [
"-y",
"@betterdb/mcp"
],
"env": {
"BETTERDB_TOKEN": "your-value",
"BETTERDB_LOCAL_TOKEN": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"monitor": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@betterdb/mcp"
],
"env": {
"BETTERDB_TOKEN": "your-value",
"BETTERDB_LOCAL_TOKEN": "your-value"
}
}
}
}Values you fill in
BETTERDB_URLenvURL of the BetterDB monitor instanceBETTERDB_TOKENsecret required envMCP authentication token generated from the BetterDB Settings pageBETTERDB_INSTANCE_IDenvInstance ID to target when using multi-instance cloud deploymentsBETTERDB_LOCAL_TOKENsecret required envToken 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…BETTERDB_MCP_TELEMETRYenvSet 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 offBETTERDB_TELEMETRYenvSet to false, 0, no or off to turn off telemetry for both the MCP server and a monitor it starts
Descriptions are as written by the maker.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
At a glance
- GitHub starsi
- 1,309 (Stars for the whole repo)
This repo holds several MCP listings; its stars count once in rankings - Downloads per weeki
- 366/wk
- Connection
- Runs on your computer
- Latest versioni
- 1.6.0
- Categoryi
- Developer tools
- Published to registryi
- Nov 11, 2026
- Code last changedi
- Nov 19, 2026
- Maker
- BetterDB-inc
- Packages
npm: @betterdb/mcp- Registry status
- Active
Which apps can use it
Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Related guides
What it can do
Runs on your computer; the tool list appears in your AI app after you install it.
Basic checksi
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 20, 2026
- ✓ Pass
Maker matches the repo
The registry name was verified with the GitHub account BetterDB-inc, which owns the repo
- ✓ Pass
Still maintained
Code last changed yesterday
- ! Caution
Has a licence
GitHub could not identify the licence type; open the file to check
- – Not applicable
Endpoint responds
This one runs on your computer; there is no internet endpoint
- – Not applicable
Sign-in with OAuth
Runs on your computer and uses local settings instead
- … Not checked yet
No hidden instructions in tool descriptions
Runs on your computer; we can only read tool lists from internet endpoints
Published vulnerabilities (OSV.dev)
No entries on OSV.dev for @betterdb/mcp@1.6.0
Checks only this package version, not every dependency · checked Nov 15, 2026
Makers: ask for a re-check or report wrong info
For makers: add a badge to your README
If you made this, paste this code into your README. The badge links back to this page.
[](https://mcp.popnx.com/en/servers/betterdb-inc-monitor)Discussion
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
User reviews
No reviews yet
Compared with others in Developer toolsi
- More stars than 98% of the other 6343 servers in this category
- Published to the registry more recently than 81% of the other 6343 servers in this category
- Basic checks equal to or better than 45% of the other 6343 servers in this category
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
Common questions
Is Monitor safe?
It passed 2 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
What keys or codes does it need?
You need to fill in: BETTERDB_TOKEN, BETTERDB_LOCAL_TOKEN
Does it run on my computer or in the cloud?
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
Is it still maintained?
The GitHub repo last changed yesterday, and the latest version (1.6.0) reached the registry 9 days ago.
Which apps can use it?
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.
What can I use instead?
In the same category: GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise
Similar alternatives
Same category, other makers, commands already checked. Official ones first, then by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
GitDiagram
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
Appllama
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
Cloudflare MCP
Cloudflare MCP servers
Omnara
Deploy durable AI agents with Omnara, an open-source managed-agent platform.
Repowise
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
| This one Monitor | GitDiagram | Appllama | Cloudflare MCP | Omnara | Repowise | |
|---|---|---|---|---|---|---|
| Runs where | Installs on your computer | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Cloud or install on your computer |
| Needs a key | Yes | No | No | No | No | No |
| Add with + in Claude | No | No | No | Yes | No | No |
| Basic checks | 2/3 | 4/4 | 4/4 | 4/4 | 4/4 | 5/5 |
| License | NOASSERTION | MIT | MIT | Apache-2.0 | Apache-2.0 | AGPL-3.0 |
| Price | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry |
README from the maker
Open the README
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
@betterdb/mcp
Give your AI assistant deep visibility into your Valkey and Redis databases. The BetterDB MCP server connects Claude Code, Cursor, Windsurf, and other MCP-compatible clients to the BetterDB monitoring platform — letting your AI query real-time metrics, diagnose slow commands, detect anomalies, and investigate incidents without leaving your editor.
See it live in BetterDB Monitor
BetterDB Monitor gives you live dashboards for the AI workloads running on your Valkey:
- AI Cache & Memory - hit rate, cost saved, evictions, and index size across all your caches and memory stores, with history.
- AI Traces - OpenTelemetry waterfalls for each request, correlated with live Valkey state to explain every cache hit and miss.
Run it self-hosted (docker run -p 3001:3001 betterdb/monitor), or use BetterDB Cloud - which can also provision a managed, TLS-enabled Valkey instance (Search module included) in one click.
Why BetterDB?
BetterDB is a monitoring and observability platform built for Valkey and Redis providing real-time dashboards, anomaly detection, and operational intelligence for your Valkey and Redis deployments. Unlike tools that only show a live snapshot, BetterDB persists historical metrics, slowlogs, and audit trails — so you can investigate what happened yesterday, not just what's happening now.
Key capabilities exposed through MCP:
- Real-time health checks — memory fragmentation, hit rate, replication lag, connected clients
- Slow command analysis — slowlog and COMMANDLOG (Valkey 8+) with pattern aggregation
- Hot key detection — find cache-busting keys via LFU frequency scores or idle time analysis
- Cluster-wide visibility — per-node stats, aggregated slowlogs, and slot-level metrics across all nodes
- Anomaly detection — Z-score analysis on memory, CPU, hit rate, and other metrics *(Pro)*
- Client activity tracking — connection counts, command distribution, and buffer usage over time
- ACL audit log — investigate auth failures and access patterns
- Latency event history — track latency trends for specific event types
Quick Start
1. Get a token
In BetterDB, go to Settings → MCP Tokens and generate a new token.
2. Configure your MCP client
In Claude Code, install the BetterDB plugin and enter your URL and token when prompted:
claude plugin marketplace add https://raw.githubusercontent.com/BetterDB-inc/monitor/master/.claude-plugin/marketplace.json
claude plugin install betterdb@betterdb
For other clients such as OpenAI Codex, or to configure Claude Code by hand, add to your MCP client config:
{
"mcpServers": { "betterdb": { "type": "stdio", "command": "npx", "args": ["-y", "@betterdb/mcp@1.6.0"], "env": { "BETTERDB_URL": "https:// .app.betterdb.com", "BETTERDB_TOKEN": " " } } } }
For local development with an existing monitor (token not required):
{
"mcpServers": { "betterdb": { "type": "stdio", "command": "npx", "args": ["-y", "@betterdb/mcp@1.6.0"], "env": { "BETTERDB_URL": "http://localhost:3001" } } } }
For zero-config local development (auto-starts and manages a monitor process):
{
"mcpServers": { "betterdb": { "type": "stdio", "command": "npx", "args": ["-y", "@betterdb/mcp@1.6.0", "--autostart", "--persist"] } } }
3. Start asking questions
Once connected, your AI assistant can query your databases directly:
- *"What's the health of my production Valkey instance?"*
- *"Show me the slowest commands from the last hour"*
- *"Are there any hot keys causing uneven load?"*
- *"Which cluster node has the highest memory usage?"*
- *"Have there been any anomalies in the last 24 hours?"*
- *"Tune the threshold on my faq-cache — propose a change for me to review"*
- *"Why is the weather_lookup tool's hit rate so low?"*
Skills
Clients that load skills from a plugin (Connect Apps and other skill-aware clients) pick these up from skills/ /SKILL.md. They are playbooks for the tools above: which call to make, which arguments a time window needs, and how to read a license sentence or an empty list.
| Skill | Use when |
|---|---|
betterdb-triage | "Is this instance healthy?" or any question before an instance is selected |
betterdb-slow-commands | Slowest commands in a time window |
betterdb-hot-keys | Hot keys or uneven key access |
betterdb-memory | Fragmentation, MEMORY DOCTOR, or time to the memory ceiling |
betterdb-latency | What is slow, fork time, or a latency regression |
betterdb-durability | What a crash would lose, last save, replicas, or cluster vs standalone |
betterdb-cache-miss | Cache hit rate, a trace, or vector index health |
Configuration
Environment Variables
| Variable | Default | Description |
|---|---|---|
BETTERDB_URL | http://localhost:3001 | BetterDB instance URL (port depends on your Docker config) |
BETTERDB_TOKEN | — | MCP token from Settings → MCP Tokens. Required for cloud. Optional for self-hosted: without it, read tools work anonymously; with it, calls act as the token's owner (write tools need an admin's token) and changes they make are recorded under the owner's name in the activity log. Tokens cannot manage members or other tokens |
BETTERDB_LOCAL_TOKEN | — | 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_INSTANCE_ID | — | Pre-select a specific instance (skips select_instance) |
BETTERDB_TELEMETRY | on | Set to false, 0, no or off to turn off telemetry: the MCP server's tool usage events, and a monitor started with --autostart or start_monitor. Usage events (tool name, success, duration, up to 200 characters of error text) go to the monitor the call was made against, which relays them to BetterDB when its own telemetry is on |
BETTERDB_MCP_TELEMETRY | — | Same values as BETTERDB_TELEMETRY, for the MCP server's usage events only. Usage events are off if either variable is off; neither turns them back on |
BETTERDB_MONITOR_ | — | Passed to a monitor started with --autostart or start_monitor as , overriding the inherited value. PORT and STORAGE_TYPE come from --port and --storage instead |
CLI Arguments
| Argument | Default | Description |
|---|---|---|
--autostart | — | Spawn and manage a local BetterDB monitor process on startup. It inherits the MCP server's environment, except BETTERDB_URL, BETTERDB_TOKEN, BETTERDB_LOCAL_TOKEN, BETTERDB_INSTANCE_ID and BETTERDB_MCP_TELEMETRY |
--no-monitor-tools | — | Do not register start_monitor and stop_monitor |
--persist | — | Keep the monitor running after the MCP server exits (requires --autostart) |
--port | 3001 | Port for the auto-started monitor API |
--storage | sqlite | Storage backend: sqlite or memory |
--stop | — | Stop a previously persisted monitor process and exit |
Available Tools
Instance Tools
| Tool | Description |
|---|---|
list_instances | List all registered Valkey/Redis instances with connection status |
select_instance | Select which instance subsequent calls operate on |
get_health | Synthetic health summary — the best starting point for any investigation |
get_info | Full INFO stats, optionally filtered by section |
get_slowlog | Recent slow commands from the slowlog buffer |
get_commandlog | Recent COMMANDLOG entries (Valkey 8+) |
get_latency | Latency event history |
get_latency_history | Detailed history for a specific latency event |
get_memory | MEMORY DOCTOR assessment and MEMORY STATS breakdown |
get_clients | Active client list with connection details |
get_hot_keys | Hot key tracking data from LFU or idle time analysis |
get_slowlog_patterns | Aggregated slowlog patterns with frequency and avg duration |
get_commandlog_history | Persisted COMMANDLOG entries with time range filtering |
get_commandlog_patterns | Aggregated COMMANDLOG patterns |
get_anomalies | Anomaly detection events *(Pro)* |
get_retry_amplification | Live retry-amplification state, last episode and top clients *(Pro)* |
get_hot_shards | Open hot shards on a cluster with their top slots, hot keys and a suggested slot rebalance, or the reason none is suggested *(Pro)* |
get_client_activity | Time-bucketed client activity from persisted snapshots |
get_acl_audit | ACL audit log entries |
get_cluster_nodes | Cluster node discovery — roles, state (healthy, suspect or failed), slot ranges, whether the monitor collects each node, plus availability zone and shard id on Valkey 9.1+ (older versions: the zone from the connection's zone map) |
get_cluster_node_stats | Per-node performance stats across the cluster |
get_cluster_slowlog | Aggregated slowlog across all cluster nodes |
get_slot_stats | Per-slot key counts and CPU usage (Valkey 8+) |
Analytics Tools
| Tool | Description |
|---|---|
get_forecast | Capacity forecast for a metric (opsPerSec, usedMemory, cpuTotal, memFragmentation) with projected time to ceiling |
get_latency_regressions | Detected sustained p99 latency regressions vs baseline from the anomaly store *(Pro)* |
get_replication_divergence | Per-replica offset gap series and divergence events for a primary *(Pro)* |
get_largest_keys | Largest keys by measured memory usage from key analytics snapshots *(Pro)* |
get_incident_timeline | Anomaly incidents as ordered timelines with matched sequence patterns and recovery status *(Pro)* |
Vector Search Tools
For deployments running the Search module (valkey-search / RediSearch).
| Tool | Description |
|---|---|
get_vector_indexes | Per-index health: document count, memory usage, indexing failures, and percent indexed |
get_inference_latency | FT.SEARCH p50/p95/p99 per vector index plus SLA breach status (SLA fields require Pro) |
AI Observability Tools
For AI components (semantic caches, agent caches, agent-memory stores, retrieval pipelines) and traces ingested via OpenTelemetry.
| Tool | Description |
|---|---|
ai_list_instances | Superset discovery view of all AI component instances with liveness and latest metrics sample |
ai_instance_history | Stored metrics time-series for one AI component instance (hit rate, cost saved, evictions, threshold, …) |
list_ai_traces | List recent AI application traces (LLM calls, cache lookups, memory recalls, retrieval spans) |
get_ai_trace | Full span waterfall for one trace with timing, parent relationships, and attributes |
| correlate_ai_trace | Join a trace's cache/memor