MCP Server Studio
BetterDB MCP server - Valkey and Redis observability for Claude Code and other MCP clients
Registry name: io.github.BetterDB-inc/monitor
Add to claude_desktop_config.json:
{
"mcpServers": {
"monitor": {
"command": "npx",
"args": [
"-y",
"@betterdb/[email protected]"
],
"env": {
"BETTERDB_URL": "<BETTERDB_URL>",
"BETTERDB_TOKEN": "<BETTERDB_TOKEN>",
"BETTERDB_INSTANCE_ID": "<BETTERDB_INSTANCE_ID>",
"BETTERDB_LOCAL_TOKEN": "<BETTERDB_LOCAL_TOKEN>",
"BETTERDB_MCP_TELEMETRY": "<BETTERDB_MCP_TELEMETRY>",
"BETTERDB_TELEMETRY": "<BETTERDB_TELEMETRY>"
}
}
}
}Run in your terminal:
claude mcp add monitor -e BETTERDB_URL='<BETTERDB_URL>' -e BETTERDB_TOKEN='<BETTERDB_TOKEN>' -e BETTERDB_INSTANCE_ID='<BETTERDB_INSTANCE_ID>' -e BETTERDB_LOCAL_TOKEN='<BETTERDB_LOCAL_TOKEN>' -e BETTERDB_MCP_TELEMETRY='<BETTERDB_MCP_TELEMETRY>' -e BETTERDB_TELEMETRY='<BETTERDB_TELEMETRY>' -- npx -y @betterdb/[email protected]Add to .cursor/mcp.json:
{
"mcpServers": {
"monitor": {
"command": "npx",
"args": [
"-y",
"@betterdb/[email protected]"
],
"env": {
"BETTERDB_URL": "<BETTERDB_URL>",
"BETTERDB_TOKEN": "<BETTERDB_TOKEN>",
"BETTERDB_INSTANCE_ID": "<BETTERDB_INSTANCE_ID>",
"BETTERDB_LOCAL_TOKEN": "<BETTERDB_LOCAL_TOKEN>",
"BETTERDB_MCP_TELEMETRY": "<BETTERDB_MCP_TELEMETRY>",
"BETTERDB_TELEMETRY": "<BETTERDB_TELEMETRY>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"monitor": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@betterdb/[email protected]"
],
"env": {
"BETTERDB_URL": "<BETTERDB_URL>",
"BETTERDB_TOKEN": "<BETTERDB_TOKEN>",
"BETTERDB_INSTANCE_ID": "<BETTERDB_INSTANCE_ID>",
"BETTERDB_LOCAL_TOKEN": "<BETTERDB_LOCAL_TOKEN>",
"BETTERDB_MCP_TELEMETRY": "<BETTERDB_MCP_TELEMETRY>",
"BETTERDB_TELEMETRY": "<BETTERDB_TELEMETRY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"monitor": {
"command": "npx",
"args": [
"-y",
"@betterdb/[email protected]"
],
"env": {
"BETTERDB_URL": "<BETTERDB_URL>",
"BETTERDB_TOKEN": "<BETTERDB_TOKEN>",
"BETTERDB_INSTANCE_ID": "<BETTERDB_INSTANCE_ID>",
"BETTERDB_LOCAL_TOKEN": "<BETTERDB_LOCAL_TOKEN>",
"BETTERDB_MCP_TELEMETRY": "<BETTERDB_MCP_TELEMETRY>",
"BETTERDB_TELEMETRY": "<BETTERDB_TELEMETRY>"
}
}
}
}| Name | Required | What it is |
|---|---|---|
BETTERDB_URL | No | URL of the BetterDB monitor instance |
BETTERDB_TOKEN | No | MCP authentication token generated from the BetterDB Settings page |
BETTERDB_INSTANCE_ID | No | Instance ID to target when using multi-instance cloud deployments |
BETTERDB_LOCAL_TOKEN | No | 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… |
BETTERDB_MCP_TELEMETRY | No | 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 | No | Set to false, 0, no or off to turn off telemetry for both the MCP server and a monitor it starts |