Allows OpenAI Agents to interact with DiceDB databases through tools for basic database operations including ping, echo, get, set, delete, increment, and decrement functions.
DiceDB MCP
A Model Context Protocol (MCP) server implementation for DiceDB to enable interactions between AI applications (hosts/clients) and DiceDB database servers.
This implementation uses the DiceDB Go SDK to communicate with DiceDB.
Check out the demo video 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.
- DECR the integer value of a key by one.
Installation
Download Binary
You can download and use the appropriate binary for your operating system and processor archetecture from the "Releases" page.
Install via Go
Prerequisites:
- Go 1.24 or higher
Get the path to the dicedb-mcp
binary:
Build from Source
See Development section below.
Usage
With MCP Hosts/Clients
Add this to your claude_desktop_config.json
for Claude Desktop or mcp.json
for Cursor:
With OpenAI Agents SDK
The example below shows how to use the dicedb-mcp
server with the OpenAI Agents SDK:
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.
decr
Decrements the integer value of a key by one.
Development
Fork and clone the repository:
Change into the directory:
Install dependencies:
Build the project:
Update your MCP servers configuration to point to the local build:
License
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
An MCP server that enables AI applications to interact with DiceDB databases.
Related MCP Servers
- -securityAlicense-qualityThe Multi DB MCP Server is a high-performance implementation of the Database Model Context Protocol designed to revolutionize how AI agents interact with databases. Currently supporting MySQL and PostgreSQL databases.Last updated -164GoMIT License
- -securityAlicense-qualityAn MCP server that allows AI assistants to interact with Foundry datasets, ontology objects, and functions through natural language queries and commands.Last updated -2PythonMIT License
- -securityAlicense-qualityMCP-Server from your Database optimized for LLMs and AI-Agents. Supports PostgreSQL, MySQL, ClickHouse, Snowflake, MSSQL, BigQuery, Oracle Database, SQLite, ElasticSearch, DuckDBLast updated -358GoApache 2.0
- AsecurityAlicenseAqualityAn open-source MCP server that connects to various data sources (SQL databases, CSV, Parquet files), allowing AI models to execute SQL queries and generate data visualizations for analytics and business intelligence.Last updated -1032PythonMIT License