← Back to directory
R

Random Number MCP

Community
Common pseudorandom and secure random generation utilities.
Category
Other #133 of 678
Stars
★ 50 Popular
Transport
stdio (local process)
Runtime
Python 3.10+
Credentials
No credential needed
License
MIT
Last commit
Tools
7
58FMRS · C

The source lists seven random generation tools and explains the security distinction between Python's random and secrets modules. It provides no independent security audit or compatibility verification.

Strongest · Setup experience 14/20 Weakest · Maintenance 9/20

Reliability
10/20
Security and permissions
12/20
Maintenance
9/20
Documentation
13/20
Setup experience
14/20
Why each score
Reliability 10/20
The README lists seven tools, their parameters, and corresponding Python standard-library functions, and the manifest declares a PyPI package using stdio. These materials do not verify that the server starts, completes the MCP handshake, or exposes tools matching the implementation. No reviewable CI or test evidence is provided, so points are deducted.
Security and permissions 12/20
The listed functions generate random values and tokens. The README distinguishes ordinary pseudorandom functions from secure functions using Python's secrets module and describes their intended uses. The materials do not show the implementation, input validation, permission boundaries, or data flows, so secure behavior cannot be verified and the score is limited. No red-line evidence is present.
Maintenance 9/20
The materials state an MIT license, give a package version and describe a PyPI release process; the repository is not archived and has zero open issues. They provide no commit or release history, dependency update record, security response channel, or clear maintainer identity, so sustained maintenance is unverified and points are deducted.
Documentation 13/20
The README provides tool purposes, parameters, examples, a client configuration, security-use distinctions, and development instructions. It does not explain parameter limits, boundary-error handling, troubleshooting, or data flows. Some development details, such as the example clone URL, also lack verifiable consistency with the target repository, so full marks are not justified.
Setup experience 14/20
The README gives a direct uvx configuration example for Claude Desktop and a local development configuration, while the manifest declares PyPI and stdio. Platform instructions cover configuration file locations only for macOS and Windows, and there is no verifiable execution or connection evidence, so points are deducted.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

Best for

  • Users who want to call Python standard-library random functions through MCP.
  • Applications that need to distinguish ordinary pseudorandom operations from secure random operations.

Not for

  • Use cases requiring reproducible results or a fixed random seed; the source does not document that feature.
  • General data processing beyond the listed random generation tools.

Required permissions

  • The source shows a local stdio client configuration and does not specify file, network, or account permissions.

Risks and side effects

  • Functions using Python's random module are fast but not cryptographically secure, so they are unsuitable for tokens or keys.
  • Functions using the secrets module are slower and intended for security-sensitive random values such as tokens and keys.
  • Random values and tokens may be security-sensitive; handle generated results according to the needs of the application.

Setup

Before you start

Runtime:Python 3.10+

Add the provided JSON configuration under mcpServers in the Claude Desktop configuration file, then restart or reload the client. The configuration runs random-number-mcp with uvx.

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

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "random-number": {
      "command": "uvx",
      "args": [
        "random-number-mcp"
      ]
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.random-number]
command = "uvx"
args = ["random-number-mcp"]

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add random-number -- uvx random-number-mcp

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm `random_int` and `secure_token_hex` appear in the client’s tool list. Ask for a random integer between 1 and 100 and confirm the server returns a result.

Troubleshooting

  1. Check that uvx is installed and callable, and that the command and package name are uvx and random-number-mcp.
  2. Check that the client configuration is valid JSON and is nested under mcpServers.
  3. Restart or reload Claude Desktop after changing its configuration.

Things to try

Once connected, you can ask your AI assistant things like:

  • Generate a random integer between 1 and 100.
  • Choose two colors from red, blue, green, and yellow using weights 0.4, 0.3, 0.2, and 0.1.
  • Generate a cryptographically secure 16-byte hexadecimal token.

Tools 7

random_int read-only
Generate a random integer within the specified inclusive bounds.
random_float read-only
Generate a random float within the specified range.
random_choices read-only
Choose a specified number of items from a list with replacement, optionally using weights.
random_shuffle read-only
Return a new list with its items in random order.
random_sample read-only
Choose a specified number of unique items from a population without replacement.
secure_token_hex read-only
Generate a cryptographically secure random hexadecimal token.
secure_random_int read-only
Generate a cryptographically secure random integer below the specified upper bound.

Use cases

Generate random integers and floats for simulations, games, or testing.
Select list items with optional weights, shuffle lists, or sample without replacement.
Generate cryptographically secure random integers or hexadecimal tokens.

Supported clients

Claude Desktop

Listed from the project's documentation, not tested by this site.

Overview

Random Number MCP is an MCP server built on Python's standard library. It generates integers and floats, makes weighted selections, shuffles lists, samples without replacement, and generates secure random integers and hexadecimal tokens. It communicates over stdio.

Similar servers

Source revision 575338c689eb Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/random-number-mcp.svg)](https://followmcp.com/en/servers/random-number-mcp)