https://github.com/pottekkat/dicedb-mcp
A Model Context Protocol (MCP) server implementation for DiceDB to enable AI applications to interact with DiceDB databases.
https://github.com/pottekkat/dicedb-mcp
dicedb mcp mcp-server model-context-protocol model-context-protocol-servers
Last synced: 6 months ago
JSON representation
A Model Context Protocol (MCP) server implementation for DiceDB to enable AI applications to interact with DiceDB databases.
- Host: GitHub
- URL: https://github.com/pottekkat/dicedb-mcp
- Owner: pottekkat
- License: mit
- Created: 2025-04-09T04:20:02.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-04-09T05:20:23.000Z (6 months ago)
- Last Synced: 2025-04-09T05:25:24.632Z (6 months ago)
- Topics: dicedb, mcp, mcp-server, model-context-protocol, model-context-protocol-servers
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-mcp-servers - dicedb-mcp - An MCP server that enables AI applications to interact with DiceDB database servers for key-value operations without requiring direct database credentials or connection management. ([Read more](/details/dicedb-mcp.md)) `mcp` `database` `key-value` `ai-integration` (Database & Messaging MCP Servers)
README
# DiceDB MCP
A [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server implementation for DiceDB to enable interactions between AI applications (hosts/clients) and DiceDB database servers.
This implementation uses the [DiceDB Go SDK](https://github.com/DiceDB/dicedb-go) to communicate with DiceDB.
Check out the [demo video](./demo.mov) to see it in action!
## Features
- PING DiceDB to check connectivity.
- ECHO a message through DiceDB.
- GET a value from DiceDB by key.
- SET a key-value pair in DiceDB.
- DEL one or more keys from DiceDB.
- INCR the integer value of a key by one.## Installation
Prerequisites:
- Go 1.24 or higher
```bash
go install github.com/pottekkat/dicedb-mcp@latest
```Get the path to the `dicedb-mcp` binary:
```bash
which dicedb-mcp
```## Usage
### With MCP Hosts/Clients
Add this to your `claude_desktop_config.json` for Claude Desktop or `mcp.json` for Cursor:
```json
{
"mcpServers": {
"dicedb-mcp": {
"command": "path/to/dicedb-mcp"
}
}
}
```## Available Tools
### ping
Pings a DiceDB server to check connectivity.
### echo
Echoes a message through the DiceDB server.
### get
Retrieves a value from DiceDB by key.
### set
Sets a key-value pair in DiceDB.
### del
Deletes one or more keys from DiceDB.
### incr
Increments the integer value of a key by one.
## Development
Fork and clone the repository:
```bash
git clone https://github.com/username/dicedb-mcp.git
```Change into the directory:
```bash
cd dicedb-mcp
```Install dependencies:
```bash
make deps
```Build the project:
```bash
make build
```Update your MCP servers configuration to point to the local build:
```json
{
"mcpServers": {
"dicedb-mcp": {
"command": "/path/to/dicedb-mcp/dist/dicedb-mcp"
}
}
}
```## License
[MIT License](LICENSE)