Feedback

Random Number Generator MCP Server

@zazencodes Claim

Basic information

Runtime
Python
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
zazencodes
Submitted by
Community
Quality
25
Stars
46

About Random Number Generator MCP Server

Use our random number generator to get a random number, shuffle lists, or generate secure tokens with advanced rng generator utilities.

Random Number Generator is a MCP server in the Auth Security category listed in the AddMCP.net directory, published by zazencodes. It exposes 7 tools, including random_int, random_float, random_choices, random_shuffle and more. Supported transport: stdio. Runtime: Python. License: MIT. The repository has 46 GitHub stars. Source code is hosted on github.com. Related topics: auth-security, community, developer-tools, random, rng.

Setup

{
    "mcpServers": {
        "random-number": {
            "command": "uvx",
            "args": [
                "random-number-mcp"
            ]
        }
    }
}

Random Number Generator MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "random-number": {
            "command": "uvx",
            "args": [
                "random-number-mcp"
            ]
        }
    }
}

Random Number Generator MCP Server tools

  • random_int — Generate a random integer between low and high (inclusive). Args: low: Lower bound (inclusive) high: Upper bound (inclusive) Returns: Random integer between low and high
  • random_float — Generate a random float between low and high. Args: low: Lower bound (default 0.0) high: Upper bound (default 1.0) Returns: Random float between low and high
  • random_choices — Choose k items from population with replacement, optionally weighted. Args: population: List of items to choose from k: Number of items to choose (default 1) weights: Optional weights for each item (default None for equal weights) Returns: List of k chosen items
  • random_shuffle — Return a new list with items in random order. Args: items: List of items to shuffle Returns: New list with items in random order
  • random_sample — Choose k unique items from population without replacement. Args: population: List of items to choose from k: Number of items to choose Returns: List of k unique chosen items
  • secure_token_hex — Generate a secure random hex token. Args: nbytes: Number of random bytes to generate (default 32) Returns: Hex string containing 2*nbytes characters
  • secure_random_int — Generate a secure random integer below upper_bound. Args: upper_bound: Upper bound (exclusive) Returns: Random integer in range [0, upper_bound)

Overview

What is Random Number Generator?

Random Number Mcp is a Model Context Protocol server that provides tools for generating random numbers and tokens. It wraps Python’s random and secrets modules for both standard and cryptographically secure outputs.

How to use Random Number Generator?

Key features of Random Number Generator

  • Generate random integers with random_int
  • Generate random floats with random_float
  • Choose items from a list (optional weights)
  • Return a new shuffled list
  • Generate cryptographically secure hex tokens
  • Generate cryptographically secure integers

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬