{"id":"d20ab89e-d8d4-4108-9ae9-b800b91004ad","slug":"pottekkat-dicedb-mcp","kind":"mcp","name":"dicedb-mcp","summary":"A Model Context Protocol (MCP) server implementation for DiceDB to enable AI applications to interact with DiceDB databases.","owner":"pottekkat","repoUrl":"https://github.com/pottekkat/dicedb-mcp","license":"MIT","licenseTier":"permissive","trust":"community","stars":5,"match":null,"fewStars":false,"format":"mcp","createdAt":"2025-04-09T04:20:02.000Z","addedAt":"2026-10-14T05:27:50.201Z","logoUrl":"https://avatars.githubusercontent.com/u/49474499?u=9ff8f658d5def5df123810e588cde7ec1e898d9e&v=4","linkOnly":false,"collection":null,"skillPath":null,"categories":["memory-knowledge","cloud-infra"],"tags":["dicedb","model-context-protocol-servers"],"runtime":"go","local":true,"cloudCapable":false,"cloudCapability":"unknown","cloudReadyOnPlatform":false,"needsApiKey":false,"reviewed":false,"syncedAt":"2026-10-14T23:43:18.410Z","sample":false,"url":"https://conduits.dev/tools/pottekkat-dicedb-mcp","language":"Go","transports":["stdio"],"install":{},"requirements":{"env":[],"upstreamMayCharge":false},"tools":null,"readme":"# DiceDB MCP\n\nA [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server implementation for DiceDB to enable interactions between AI applications (hosts/clients) and DiceDB database servers.\n\nThis implementation uses the [DiceDB Go SDK](https://github.com/DiceDB/dicedb-go) to communicate with DiceDB.\n\nCheck out the [demo video](./demo.mov) to see it in action!\n\n## Features\n\n- PING DiceDB to check connectivity.\n- ECHO a message through DiceDB.\n- GET a value from DiceDB by key.\n- SET a key-value pair in DiceDB.\n- DEL one or more keys from DiceDB.\n- INCR the integer value of a key by one.\n- DECR the integer value of a key by one.\n\n## Installation\n\n### Download Binary\n\nYou can [download](https://github.com/pottekkat/dicedb-mcp/releases) and use the appropriate binary for your operating system and processor archetecture from the \"Releases\" page.\n\n### Install via Go\n\nPrerequisites:\n\n- Go 1.24 or higher\n\n```bash\ngo install github.com/pottekkat/dicedb-mcp@latest\n```\n\nGet the path to the `dicedb-mcp` binary:\n\n```bash\nwhich dicedb-mcp\n```\n\n### Build from Source\n\nSee [Development](#development) section below.\n\n## Usage\n\n### With MCP Hosts/Clients\n\nAdd this to your `claude_desktop_config.json` for Claude Desktop or `mcp.json` for Cursor:\n\n```json\n{\n    \"mcpServers\": {\n        \"dicedb-mcp\": {\n            \"command\": \"path/to/dicedb-mcp\"\n        }\n    }\n}\n```\n\n### With OpenAI Agents SDK\n\nThe example below shows how to use the `dicedb-mcp` server with the [OpenAI Agents SDK](https://openai.github.io/openai-agents-python/):\n\n```python\nfrom agents import Agent, Runner, trace\nfrom agents.mcp import MCPServer, MCPServerStdio\nfrom dotenv import load_dotenv\nimport os\nimport openai\nimport asyncio\n\nload_dotenv()\n\n\nasync def run(mcp_server: MCPServer, prompt: str, server_url: str):\n    agent = Agent(name=\"DiceDB MCP\",\n                  instructions=f\"\"\"You can interact with a DiceDB database\n                                  running at {server_url}, use\n                                  this for url.\"\"\",\n                  mcp_servers=[mcp_server],)\n    result = await Runner.run(starting_agent=agent, input=prompt)\n    print(result.final_output)\n\n\nasync def main():\n    openai.api_key = os.getenv(\"OPENAI_API_KEY\")\n\n    prompt = \"Can you change the value of the 'name' key to 'Rachel Green'?\"\n    server_url = \"localhost:7379\"\n\n    async with MCPServerStdio(\n        cache_tools_list=True,\n        params={\"command\": \"path/to/dicedb-mcp\", \"args\": [\"\"]},\n    ) as server:\n        with trace(workflow_name=\"DiceDB MCP\"):\n            await run(server, prompt, server_url)\n\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```\n\n## Available Tools\n\n### ping\n\nPings a DiceDB server to check connectivity.\n\n### echo\n\nEchoes a message through the DiceDB server.\n\n### get\n\nRetrieves a value from DiceDB by key.\n\n### set\n\nSets a key-value pair in DiceDB.\n\n### del\n\nDeletes one or more keys from DiceDB.\n\n### incr\n\nIncrements the integer value of a key by one.\n\n### decr\n\nDecrements the integer value of a key by one.\n\n## Development\n\nFork and clone the repository:\n\n```bash\ngit clone https://github.com/username/dicedb-mcp.git\n```\n\nChange into the directory:\n\n```bash\ncd dicedb-mcp\n```\n\nInstall dependencies:\n\n```bash\nmake deps\n```\n\nBuild the project:\n\n```bash\nmake build\n```\n\nUpdate your MCP servers configuration to point to the local build:\n\n```json\n{\n    \"mcpServers\": {\n        \"dicedb-mcp\": {\n            \"command\": \"/path/to/dicedb-mcp/dist/dicedb-mcp\"\n        }\n    }\n}\n```\n\n## License\n\n[MIT License](LICENSE)\n"}