Skip to main content
MCP server CX Codex

random-number-mcp — Claude Code MCP server: features and setup

Give an agent tools for random values, list selection and secure tokens. Useful when these operations need to happen through an MCP client.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add random-number-mcp -- uvx random-number-mcp
Open on GitHub

What random-number-mcp does

The server offers tools for random integers and floats, weighted or unique list selections, list shuffling, and token generation. Its ordinary random operations use Python’s random module; secure integers and tokens use secrets.

That distinction matters: random functions are not cryptographically secure, so use secure_token_hex when generating tokens. Add the server to Claude Code with claude mcp add random-number-mcp -- uvx random-number-mcp; it starts through uvx.

What it helps with

  • draw a random integer within a chosen range
  • select list entries using weights
  • shuffle items into a new order
  • generate a cryptographically secure hex token

Example prompts for the agent

  • Generate a random integer between 1 and 100.
  • Shuffle the list [1, 2, 3, 4, 5].
  • Create a cryptographically secure token in hexadecimal form.

How to install random-number-mcp

Platform CLI

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

uvx runs the command named after the package; if the README names another one, use uvx --from random-number-mcp <command>

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about random-number-mcp

How do I install random-number-mcp in Claude Code?

Run claude mcp add random-number-mcp -- uvx random-number-mcp. This registers the MCP server and configures it to launch with uvx.

What does random-number-mcp do?

It provides tools for random numbers, weighted and unique selections, shuffling lists, and generating secure integers and tokens.

Can random-number-mcp generate secure tokens?

Yes. Use secure_token_hex, which relies on Python’s secrets module. The ordinary functions based on random are not cryptographically secure.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor