Get the FREE Ultimate OpenClaw Setup Guide →

mcp -diceroll

Dice Roll Server for Model Context Protocol

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio fumieval-mcp-server-diceroll npx -y mcp-server-diceroll

How to use

This MCP server exposes a dice-rolling utility provided by the mcp-server-diceroll package. When configured, the claude desktop application can communicate with the dice-roll MCP endpoint to perform dice rolls, simulate dice pools, and apply common dice-rolling conventions used in tabletop gaming. Once loaded, you can issue requests to the dice-roll server through the MCP client interface to obtain roll results, including the ability to specify dice type (e.g., d6, d20), number of dice, modifiers, and any reroll rules supported by the package.

How to install

Prerequisites: Node.js (recommended current LTS) and npm installed on your system. Ensure you have network access so that npx can fetch the package on first use.

  1. Install Node.js and npm if they are not already installed. You can download from https://nodejs.org/ and follow the installer instructions for your platform.
  2. Confirm npm and npx are available in your terminal:
    • npm -v
    • npx -v
  3. Add the MCP server configuration to your claude_desktop_config.json exactly as shown: { "mcpServers": { "dice-roll": { "command": "npx", "args": ["-y", "mcp-server-diceroll"] } } }
  4. In the CLAUDE desktop environment, reload or restart to load the new MCP server configuration. The dice-roll endpoint will be available via the MCP framework without a separate installation step, since npx will fetch and run the package on demand.

Additional notes

Notes and tips:

  • The server runs via npx, so no persistent installation is necessary beyond the first run; future starts will reuse cached package data.
  • If you encounter network or permission issues, ensure your environment allows npm to install and execute packages from the npm registry.
  • Some environments may require the --unsafe-perm flag for npm/npx in restricted containers; adjust accordingly.
  • If the dice-roll API supports options (dice type, count, modifier, rerolls), pass them through your MCP client according to the package documentation. If you need to customize the behavior, refer to the mcp-server-diceroll package settings once the server is active.

Related MCP Servers

Sponsor this space

Reach thousands of developers