Dice Roller

Dice Roller

Provides dice rolling tools for tabletop RPGs, including standard dice, custom notation, D&D stat generation, and initiative ordering.

Category
Visit Server

README

đŸŽČ Dice Roller — MCP Server

Serveur MCP (Model Context Protocol) de lancer de dés pour parties de jeu de rÎle, packagé avec Docker et exposé via le Docker MCP Toolkit.

🧰 PrĂ©requis

  • Docker Desktop installĂ© et lancĂ©
  • Le plugin Docker MCP Toolkit activĂ© : Docker Desktop → Settings → Beta features → MCP Toolkit
  • Un client compatible MCP : Claude Desktop

đŸ› ïž Outils disponibles

Outil Description
flip_coin Pile ou face
roll_dice Lance N dés à X faces (sides, count)
roll_custom Notation standard, ex : 2d6+3
roll_stats Caractéristiques D&D (4d6, on garde les 3 meilleurs)
roll_advantage Jet avec avantage (2 jets, garde le meilleur)
roll_disadvantage Jet avec désavantage (2 jets, garde le pire)
roll_check Jet + modificateur, comparaison optionnelle à une difficulté
roll_initiative Ordre d'initiative pour une liste de joueurs

🚀 Installation

1. Construire l'image Docker

docker build -t dice-mcp-server .

Vérifier que l'image démarre correctement :

docker run -i --rm dice-mcp-server
# → doit afficher : INFO - Starting Dice Roller MCP server...
# Ctrl+C pour quitter

2. Créer un catalogue MCP personnalisé

docker mcp catalog create custom --title "Custom Catalog"

3. Ajouter le serveur dice au catalogue

L'image étant uniquement locale, on la décrit via le fichier catalog_entry.yaml fourni et on l'ajoute avec le schéma file:// :

docker mcp catalog server add custom:latest --server file://$(pwd)/catalog_entry.yaml

Vérifier :

docker mcp catalog show custom

4. Créer un profil incluant ce serveur

docker mcp profile create --name dev-tools --server catalog://custom:latest/dice

Vérifier :

docker mcp profile show dev_tools

5. Connecter le profil au client

Claude Desktop (scope global obligatoire, ce client ne supporte pas le scope projet) :

docker mcp client connect claude-desktop --profile dev_tools --global

Voir tous les clients disponibles :

docker mcp client ls

6. Redémarrer le client

Fermer complĂštement l'application et la relancer, afin qu'elle recharge la configuration MCP.

7. Tester

Dans le chat du client connecté, demander par exemple :

"Lance un dé à 20 faces" "GénÚre des caractéristiques de personnage D&D"

⚠ Notes de compatibilitĂ© & piĂšges connus

Le SDK Python mcp v2.0.0 casse ce projet

Le SDK officiel mcp a publié une version 2.0.0 stable le 28 juillet 2026, qui restructure l'API en profondeur :

  • FastMCP est renommĂ© MCPServer
  • Le chemin d'import mcp.server.fastmcp n'existe plus
  • mcp.types est dĂ©placĂ© vers un package sĂ©parĂ© mcp-types

âžĄïž requirements.txt doit impĂ©rativement Ă©pingler une version sous la v2 :

mcp[cli]>=1.2.0,<2

Mode "Dynamic MCP"

Par défaut, le gateway peut exposer uniquement des outils "méta" de découverte (mcp-find, mcp-exec, etc.) plutÎt que les outils du serveur directement. Si docker mcp tools ls affiche 8 outils génériques au lieu des outils de dés, revenir à l'affichage classique (tous les outils visibles directement) :

docker mcp feature disable dynamic-tools

📁 Structure du projet

dice-roller/
├── Dockerfile           # Image Python 3.11-slim + serveur MCP
├── requirements.txt     # mcp[cli]>=1.2.0,<2
├── dice_server.py       # Code du serveur (FastMCP)
├── catalog_entry.yaml   # Description du serveur pour le catalogue Docker MCP
└── README.md            # Ce fichier

📜 Licence

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured