The Plugged.in Random Number Generator MCP Server provides cryptographically secure random number generation capabilities through the Model Context Protocol (MCP). It offers various types of random data generation including integers, floats, bytes, UUIDs, strings, booleans, and random choices from lists, making it ideal for AI applications and systems requiring high-quality randomness.
For Claude Desktop users:
.dxt
fileInstall globally:
npm install -g pluggedin-random-number-generator-mcp
Or install locally in your project:
npm install pluggedin-random-number-generator-mcp
git clone https://github.com/VeriTeknik/pluggedin-random-number-generator-mcp.git
cd pluggedin-random-number-generator-mcp
npm install
npm run build
The server communicates via stdio following the MCP protocol:
# Using the built version
node dist/index.js
# Using development mode
npm run dev
Add to your MCP client configuration. For Claude Desktop, add to your claude_desktop_config.json
:
{
"mcpServers": {
"random-generator": {
"command": "npx",
"args": ["-y", "pluggedin-random-number-generator-mcp@latest"]
}
}
}
{
"mcpServers": {
"random-generator": {
"command": "node",
"args": ["node_modules/pluggedin-random-number-generator-mcp/dist/index.js"]
}
}
}
Parameters:
min
(integer, optional): Minimum value (inclusive), default: 0max
(integer, optional): Maximum value (inclusive), default: 100count
(integer, optional): Number of integers to generate, default: 1, max: 1000Example:
{
"name": "generate_random_integer",
"arguments": {
"min": 1,
"max": 100,
"count": 5
}
}
Parameters:
min
(number, optional): Minimum value (inclusive), default: 0.0max
(number, optional): Maximum value (exclusive), default: 1.0count
(integer, optional): Number of floats to generate, default: 1, max: 1000precision
(integer, optional): Decimal places to round to, default: 6, max: 15Example:
{
"name": "generate_random_float",
"arguments": {
"min": 0.0,
"max": 1.0,
"count": 3,
"precision": 4
}
}
Parameters:
length
(integer, optional): Number of bytes to generate, default: 32, max: 1024encoding
(string, optional): Output encoding ("hex", "base64", "binary"), default: "hex"Example:
{
"name": "generate_random_bytes",
"arguments": {
"length": 32,
"encoding": "hex"
}
}
Parameters:
count
(integer, optional): Number of UUIDs to generate, default: 1, max: 100format
(string, optional): UUID format ("standard", "compact"), default: "standard"Example:
{
"name": "generate_uuid",
"arguments": {
"count": 3,
"format": "standard"
}
}
Parameters:
length
(integer, optional): String length, default: 16, max: 256charset
(string, optional): Character set ("alphanumeric", "alphabetic", "numeric", "hex", "base64", "ascii_printable"), default: "alphanumeric"count
(integer, optional): Number of strings to generate, default: 1, max: 100Example:
{
"name": "generate_random_string",
"arguments": {
"length": 12,
"charset": "alphanumeric",
"count": 2
}
}
Parameters:
choices
(array, required): Array of string items to choose fromcount
(integer, optional): Number of items to select, default: 1allow_duplicates
(boolean, optional): Whether to allow duplicate selections, default: trueExample:
{
"name": "generate_random_choice",
"arguments": {
"choices": ["apple", "banana", "cherry", "date"],
"count": 2,
"allow_duplicates": false
}
}
Parameters:
count
(integer, optional): Number of booleans to generate, default: 1, max: 1000probability
(number, optional): Probability of true (0.0 to 1.0), default: 0.5Example:
{
"name": "generate_random_boolean",
"arguments": {
"count": 10,
"probability": 0.7
}
}
generate_random
This prompt helps LLMs understand they should use this server for random number generation rather than attempting to generate random values themselves.
Parameters:
type
(string, optional): Type of random value needed (integer, float, uuid, string, bytes, choice, boolean)requirements
(string, optional): Specific requirements for the random generationWhen an LLM receives a request like "Generate a random password" or "Pick a random number", the prompt will:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "random-generator" '{"command":"npx","args":["-y","pluggedin-random-number-generator-mcp@latest"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"random-generator": {
"command": "npx",
"args": [
"-y",
"pluggedin-random-number-generator-mcp@latest"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"random-generator": {
"command": "npx",
"args": [
"-y",
"pluggedin-random-number-generator-mcp@latest"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect