DiceDB MCP
@pottekkat
A Model Context Protocol (MCP) server implementation for DiceDB to enable AI applications to interact with DiceDB databases.
Overview
What is DiceDB MCP?
DiceDB MCP is a Model Context Protocol (MCP) server that enables AI applications (hosts/clients) to interact with DiceDB database servers. It uses the DiceDB Go SDK to communicate with DiceDB and provides a set of tools for basic key-value operations.
How to use DiceDB MCP?
Download the appropriate binary from the releases page, install via go install github.com/pottekkat/dicedb-mcp@latest (requires Go 1.24+), or build from source. Then configure your MCP host (e.g., Claude Desktop, Cursor) by adding the dicedb-mcp server entry to its configuration file with the path to the binary.
Key features of DiceDB MCP
- PING a DiceDB server to check connectivity.
- ECHO a message through the DiceDB server.
- GET a value from DiceDB by key.
- SET a key-value pair in DiceDB.
- DEL one or more keys from DiceDB.
- INCR and DECR integer values of keys.
Use cases of DiceDB MCP
- Allow an AI assistant to check whether a DiceDB server is reachable.
- Let an AI assistant read and write key-value data in a DiceDB database.
- Enable automated management of counters and simple data fields via natural language.
- Integrate DiceDB operations into agent workflows (e.g., with OpenAI Agents SDK).
FAQ from DiceDB MCP
What is DiceDB MCP?
DiceDB MCP is an MCP server that exposes DiceDB database operations as tools for AI applications. It acts as a bridge between MCP-compatible hosts and a DiceDB instance.
What tools does DiceDB MCP provide?
It provides seven tools: ping, echo, get, set, del, incr, and decr. Each corresponds to a basic DiceDB command.
How do I install DiceDB MCP?
You can download a pre-built binary from the GitHub Releases page, install it via go install (Go 1.24+ required), or build from source by cloning the repository and running make build.
How do I use DiceDB MCP with an MCP host?
Add a server entry named dicedb-mcp to your host’s configuration file (e.g., claude_desktop_config.json or mcp.json), specifying the binary path as the command. The server will then be available to the host.
What are the runtime requirements?
The server requires Go 1.24 or higher if installing from source. Pre-built binaries are available for various operating systems and architectures. No other runtime dependencies are mentioned.