Cover image
Try Now
2025-04-14

Ein Modellkontext -Protokoll (MCP) -Server -Implementierung für DicedB, damit AI -Anwendungen mit Dictenb -Datenbanken interagieren können.

3 years

Works with Finder

3

Github Watches

0

Github Forks

3

Github Stars

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
go install github.com/pottekkat/dicedb-mcp@latest

Get the path to the dicedb-mcp binary:

which dicedb-mcp

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:

{
    "mcpServers": {
        "dicedb-mcp": {
            "command": "path/to/dicedb-mcp"
        }
    }
}

With OpenAI Agents SDK

The example below shows how to use the dicedb-mcp server with the OpenAI Agents SDK:

from agents import Agent, Runner, trace
from agents.mcp import MCPServer, MCPServerStdio
from dotenv import load_dotenv
import os
import openai
import asyncio

load_dotenv()


async def run(mcp_server: MCPServer, prompt: str, server_url: str):
    agent = Agent(name="DiceDB MCP",
                  instructions=f"""You can interact with a DiceDB database
                                  running at {server_url}, use
                                  this for url.""",
                  mcp_servers=[mcp_server],)
    result = await Runner.run(starting_agent=agent, input=prompt)
    print(result.final_output)


async def main():
    openai.api_key = os.getenv("OPENAI_API_KEY")

    prompt = "Can you change the value of the 'name' key to 'Rachel Green'?"
    server_url = "localhost:7379"

    async with MCPServerStdio(
        cache_tools_list=True,
        params={"command": "path/to/dicedb-mcp", "args": [""]},
    ) as server:
        with trace(workflow_name="DiceDB MCP"):
            await run(server, prompt, server_url)


if __name__ == "__main__":
    asyncio.run(main())

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:

git clone https://github.com/username/dicedb-mcp.git

Change into the directory:

cd dicedb-mcp

Install dependencies:

make deps

Build the project:

make build

Update your MCP servers configuration to point to the local build:

{
    "mcpServers": {
        "dicedb-mcp": {
            "command": "/path/to/dicedb-mcp/dist/dicedb-mcp"
        }
    }
}

License

MIT License

相关推荐

  • av
  • Führen Sie mühelos LLM -Backends, APIs, Frontends und Dienste mit einem Befehl aus.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llm 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Zusammenfassung der weltbesten LLM -Ressourcen.

  • 1Panel-dev
  • 🔥 1Panel bietet eine intuitive Weboberfläche und einen MCP -Server, um Websites, Dateien, Container, Datenbanken und LLMs auf einem Linux -Server zu verwalten.

  • rulego
  • ⛓️Rugele ist ein leichter, leistungsstarker, leistungsstarker, eingebetteter Komponenten-Orchestrierungsregel-Motor-Rahmen für GO.

  • hkr04
  • Leichtes C ++ MCP (Modellkontextprotokoll) SDK

  • sigoden
  • Erstellen Sie einfach LLM -Tools und -Argarten mit einfachen Bash/JavaScript/Python -Funktionen.

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 qq / 微信(企业微信、个人微信) / 飞书 / 钉钉 / diskord / telegram / slack 等平台 | 支持 Chatgpt 、 Deepseek 、 Diffy 、 Claude 、 Gemini 、 xai 、 ppio 、 、 ulama 、 lm Studio 、阿里云百炼、火山方舟、 siliconflow 、 qwen 、 mondshot 、 chatglm 、 sillytraven 、 mcp 等 llm 的机器人 / agent | LLM-basierte Instant Messaging Bots-Plattform, unterstützt Zwietracht, Telegramm, Wechat, Lark, Dingtalk, QQ, Slack

  • modelscope
  • Bauen Sie LLM-Multi-Agent-Anwendungen auf einfachere Weise auf.

  • dmayboroda
  • On-Premise-Konversationslappen mit konfigurierbaren Behältern

    Reviews

    2.8 (12)
    Avatar
    user_DCYxGXi7
    2025-04-25

    As a devoted user of dicedb-mcp by pottekkat, I am thoroughly impressed with its robust database management capabilities. The seamless integration and intuitive interface have significantly improved my data handling efficiency. Highly recommended for anyone needing a reliable and efficient database solution!

    Avatar
    user_lwwVPzXN
    2025-04-25

    As a dedicated user of dicedb-mcp, created by pottekkat, I am thoroughly impressed by its seamless and efficient database management capabilities. The user-friendly interface and advanced features make it a must-have for anyone looking to streamline their database operations. Highly recommend checking it out!

    Avatar
    user_3daCQrTk
    2025-04-25

    I have been an avid user of dicedb-mcp and it has significantly improved my database management tasks. Developed by pottekkat, this tool is user-friendly and extremely efficient. Its seamless integration capabilities save me a lot of time and hassle. Highly recommend it!

    Avatar
    user_XCXQRvPj
    2025-04-25

    As a dedicated user of dicedb-mcp, I highly recommend it for its impressive performance and reliability. Pottekkat has done an excellent job with this product, making it an essential tool for anyone in need of a robust database solution. The clean interface and seamless integration have significantly improved my workflow.

    Avatar
    user_5VZQrE3D
    2025-04-25

    As a devoted user of dicedb-mcp by pottekkat, I must say this product is a game-changer. The seamless integration and user-friendly features make managing databases incredibly efficient. It has enhanced my workflow significantly. Highly recommend this to anyone in need of a reliable and powerful database management tool!

    Avatar
    user_DvYmDmsf
    2025-04-25

    As a dedicated MCP application user, I highly recommend dicedb-mcp. Created by pottekkat, this product has consistently met all my database management needs efficiently. The interface is user-friendly, and the welcome information is clear and helpful. Whether you're new to MCP or an advanced user, dicedb-mcp seamlessly integrates into your workflow. Check out the provided link to experience its full potential!

    Avatar
    user_KoxJ2VrU
    2025-04-25

    As a dedicated user of dicedb-mcp, I must say this product is exceptional. Developed by pottekkat, it seamlessly integrates with my workflows and reliably manages my data processing needs. The user-friendly interface and robust functionalities make it an indispensable tool for my projects. Highly recommended!

    Avatar
    user_9Yool9AZ
    2025-04-25

    As a dedicated user of dicedb-mcp, I must say this product is exceptional. Created by pottekkat, it offers seamless integration and robust performance. It has dramatically improved my database management efficiency. Highly recommended for anyone seeking a reliable and efficient solution!

    Avatar
    user_8hNqRiD6
    2025-04-25

    As a dedicated user of dicedb-mcp, I am impressed by its seamless integration and powerful database management capabilities. Pottekkat has created an exceptional tool that is both user-friendly and efficient. The detail-oriented design and comprehensive welcome information make it easy to start and navigate. Highly recommended for anyone in need of a reliable MCP application!

    Avatar
    user_ybFrBG5e
    2025-04-25

    The dicedb-mcp by pottekkat is an exceptional product that has revolutionized my workflow. It offers a seamless integration with my existing system, making data management effortless and efficient. The user-friendly interface and robust features have significantly enhanced my productivity. Highly recommended for anyone looking to optimize their database operations!

    Avatar
    user_g9d1Ptud
    2025-04-25

    dicedb-mcp by pottekkat is an exceptional product for anyone needing a reliable and efficient database management tool. It offers seamless integration with various systems and provides a user-friendly interface that makes managing databases a breeze. Highly recommend it for both beginners and seasoned professionals!

    Avatar
    user_S0LDuXmq
    2025-04-25

    As a dedicated user of Dicedb-MCP, I highly recommend this product by Pottekkat. It has significantly improved my data management capabilities with its robust features and user-friendly interface. Whether you are a beginner or an experienced professional, this tool offers unparalleled efficiency and reliability. Kudos to the team behind this fantastic application!