Random NumberSAFE
Production-ready MCP server that provides LLMs with essential random generation abilities, built entirely on Python's standard library.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Essential random number generation utilities from the Python standard library, including pseudorandom and cryptographically secure operations for integers, floats, weighted selections, list shuffling, and secure token generation.
Looking for the agent skill version? random-number-skills implements the same random number generation strategy as an agent skill instead of an MCP server.
Demo Video
https://github.com/user-attachments/assets/303a441a-2b10-47e3-b2a5-c8b51840e362
Tools
Setup
Claude Desktop
Add this to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"random-number": {
"command": "uvx",
"args": ["random-number-mcp"]
}
}
}Tool Ref
d649f5c7dbe2OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add random-number-mcp -- None random-number-mcp==0.1.3
Exposed tools (7)
6 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
random_choices | read | Choose k items from population with replacement, optionally weighted. |
random_float | read | Generate a random float between low and high. |
random_int | read | Generate a random integer between low and high (inclusive). |
random_sample | read | Choose k unique items from population without replacement. |
random_shuffle | write | Return a new list with items in random order. |
secure_random_int | read | Generate a secure random integer below upper_bound. |
secure_token_hex | read | Generate a secure random hex token. |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (1)
CLAUDE.md
Gates applied: no_behavioural_pass.
d649f5c7dbe2full audit observations/trust-audit/mcp-server/zazencodes__random-number-1.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | d649f5c7dbe2 | SAFE | B | 89 | first audit |
Questions
What is the Random Number MCP server?
Production-ready MCP server that provides LLMs with essential random generation abilities, built entirely on Python's standard library.
What tools does Random Number expose?
7 in total: 6 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Random Number safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Random Number need?
No credential environment variables were found in its source, so it appears to need none.
How does Random Number run?
It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as random-number-mcp.
How current is this page?
The grade is for one exact copy of the source (d649f5c7dbe2), read on 2026-10-08. The repository is watched and re-audited when it changes.