The MCP Rand server provides various random generation tools:
- Generate RFC 4122 version 4 UUIDs securely
- Generate random numbers within a specified range (default 0-100)
- Generate Gaussian (normal) random numbers normalized to 0-1
- Generate random strings with customizable length and character sets
- Generate strong passwords with mixed character types (minimum length 8, default 16)
- Roll dice using standard notation (e.g., "2d6", "1d20")
- Draw cards from a standard 52-card deck, maintaining deck state between draws
Allows publishing and installing the MCP-rand server as a package from the npm registry
Used to display badges showing the package's npm version and license information
MCP Rand
A Model Context Protocol (MCP) server providing various random generation utilities, including UUID, numbers, strings, passwords, Gaussian distribution, dice rolling, and card drawing.
Installation
Or install globally:
Features
UUID Generator
- Generates RFC 4122 version 4 UUIDs
- Uses Node's native crypto module for secure random generation
- No parameters required
Random Number Generator
- Generates random numbers within a specified range
- Configurable minimum and maximum values (inclusive)
- Defaults to range 0-100 if no parameters provided
Gaussian Random Generator
- Generates random numbers following a Gaussian (normal) distribution
- Normalized to range 0-1
- No parameters required
Random String Generator
- Generates random strings with configurable length and character sets
- Supports multiple character sets:
- alphanumeric (default): A-Z, a-z, 0-9
- numeric: 0-9
- lowercase: a-z
- uppercase: A-Z
- special: !@#$%^&*()_+-=[]{};'"\|,.<>/?
- Configurable string length (defaults to 10)
Password Generator
- Generates strong passwords with a mix of character types
- Ensures at least one character from each type (uppercase, lowercase, numbers, special)
- Configurable length (minimum 8, default 16)
- WARNING: While passwords are generated locally, it's recommended to use a dedicated password manager
Dice Roller
- Roll multiple dice using standard dice notation
- Supports notation like "2d6" (two six-sided dice), "1d20" (one twenty-sided die)
- Returns individual rolls and total for each set of dice
- Can roll multiple different dice sets at once (e.g., "2d6", "1d20", "4d4")
Card Drawer
- Draw cards from a standard 52-card deck
- Maintains deck state between draws using base64 encoding
- Returns drawn cards and remaining deck state
- Supports drawing any number of cards up to the deck size
- Properly shuffles available cards before each draw
Usage
As a CLI Tool
Integration with MCP Clients
Add to your MCP client configuration:
Example Usage
Contributing
Please see CONTRIBUTING.md for development setup and guidelines.
License
ISC
You must be authenticated.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
Provides random number generation utilities, including a secure UUID generator powered by Node's crypto module.
Related Resources
Related MCP Servers
- -securityFlicense-qualityA Node.js-based MCP server implementing JSON-RPC 2.0, allowing users to generate random US State and signature soup combinations through a fun and simple tool.Last updated -11JavaScript
- -securityAlicense-qualityProvides enhanced access to the randomuser.me API with advanced features like custom formatting, password generation, and weighted nationality distribution.Last updated -JavaScriptMIT License
- AsecurityAlicenseAqualityA simple Model Context Protocol server that generates timestamp-based UUIDs (v7) when called by an LLM, providing chronologically sortable unique identifiers with no input parameters needed.Last updated -191TypeScriptMIT License
- -security-license-qualityA simple service that generates random UUIDs when requested through Claude Desktop.Last updated -Python