
dés-MCP
Une implémentation du serveur de protocole de contexte de modèle (MCP) pour DiCedB pour permettre aux applications AI d'interagir avec les bases de données DiCedB.
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
相关推荐
🧑🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.
🔥 1Panel fournit une interface Web intuitive et un serveur MCP pour gérer des sites Web, des fichiers, des conteneurs, des bases de données et des LLM sur un serveur Linux.
⛓️RULEGO est un cadre de moteur de règle d'orchestration des composants de nouvelle génération légère, intégrée, intégrée et de nouvelle génération pour GO.
Créez facilement des outils et des agents LLM à l'aide de fonctions Plain Bash / JavaScript / Python.
😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 QQ / 微信 (企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 Dify 、 Claude 、 GEMINI 、 XAI 、 PPIO 、 OLLAMA 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 ChatGlm 、 Sillytraven 、 MCP 等 LLM 的机器人 / Agent | Plateforme de bots de messagerie instantanée basés sur LLM, prend en charge Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack
Reviews

user_DCYxGXi7
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!

user_lwwVPzXN
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!

user_3daCQrTk
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!

user_XCXQRvPj
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.

user_5VZQrE3D
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!

user_DvYmDmsf
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!

user_KoxJ2VrU
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!

user_9Yool9AZ
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!

user_8hNqRiD6
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!

user_ybFrBG5e
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!

user_g9d1Ptud
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!

user_S0LDuXmq
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!