Essential random number generation utilities from the Python standard library, including pseudorandom and cryptographically secure operations for
Random number mcp mcp server connects Random Number MCP to AI assistants that speak the Model Context Protocol. 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.
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.
Once connected, the assistant can call these 10 tools directly:
random_int — Generate random integersrandom_float — Generate random floatsrandom_choices — Choose items from a list (optional weights)random_shuffle — Return a new list with items shuffledrandom_sample — Choose k unique items from populationsecure_token_hex — Generate cryptographically secure hex tokenssecure_random_int — Generate cryptographically secure integersPrerequisites — The Prerequisites tool exposed by this serverSetup — The Setup tool exposed by this serverBuilding — The Building tool exposed by this serverThe server is distributed via npm as @modelcontextprotocol/inspector, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.
Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. Random Number MCP sits in that group, and the shape of its toolset — random_int, random_float, random_choices among others — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.
| Tool | What it does |
|---|---|
| random_int | Generate random integers |
| random_float | Generate random floats |
| random_choices | Choose items from a list (optional weights) |
| random_shuffle | Return a new list with items shuffled |
| random_sample | Choose k unique items from population |
| secure_token_hex | Generate cryptographically secure hex tokens |
| secure_random_int | Generate cryptographically secure integers |
| Prerequisites | The Prerequisites tool exposed by this server. |
| Setup | The Setup tool exposed by this server. |
| Building | The Building tool exposed by this server. |
{
"mcpServers": {
"random-number": {
"command": "uvx",
"args": ["random-number-mcp"]
}
}
}Configuration as documented by the project. Restart the client after saving.
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.