Random.org MCP server for true randomness

Random.org MCP server for true randomness

random-org•byqianjue-cn

An MCP server exposing tools that call the api.random.org service to generate true random integers, sequences, decimal fractions, Gaussians, strings, UUIDs, and binary blobs, plus usage statistics.

License: MIT License•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Provides tools to generate true random integers and integer sequences within specified ranges.
  • •Generates decimal fractions, Gaussian-distributed numbers, and random strings from specified characters.
  • •Generates version 4 UUIDs and random binary blobs in base64 or hex format.
  • •Retrieves API usage statistics and includes rate limiting and automatic retries.

BEST FOR

  • •LLM applications needing verifiable true random numbers instead of pseudorandom values.
  • •Generating random strings, UUIDs, and binary data within MCP clients such as Claude Desktop.
  • •Producing statistically modeled random samples with Gaussian distribution parameters.

ABOUT RANDOM-ORG

Random.org MCP server for true randomness is cataloged as an MCP server attributed to qianjue-cn. An MCP server exposing tools that call the api.random.org service to generate true random integers, sequences, decimal fractions, Gaussians, strings, UUIDs, and binary blobs, plus usage statistics. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Random.org MCP server for true randomness are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What does the server need to operate?

It requires a random.org API key supplied through the RANDOM_ORG_API_KEY environment variable.

Does it limit request rates to the upstream API?

Yes, it includes rate limiting and automatic retries with exponential backoff, with configurable requests per second and burst size.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 3306ea7d0aab · 采集于 2026-11-13 08:23:07 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Random.org MCP Server

A Model Context Protocol (MCP) server that provides access to the api.random.org service for generating true random numbers, strings, UUIDs, and more.

Features

This MCP server provides the following tools:

  • generateIntegers - Generate true random integers within a specified range
  • generateIntegerSequences - Generate sequences of true random integers
  • generateDecimalFractions - Generate random decimal fractions between 0 and 1
  • generateGaussians - Generate random numbers from a Gaussian distribution
  • generateStrings - Generate random strings from specified characters
  • generateUUIDs - Generate true random UUIDs (version 4)
  • generateBlobs - Generate random binary data in base64 or hex format
  • getUsage - Get API usage statistics

Installation & Deployment

Method 1: Global Installation

# Install globally
npm install -g random-org-mcp-server

# Verify installation
random-org-mcp --version

Method 2: Use without Installation

# Run directly with npx (no installation required)
npx random-org-mcp-server

Method 3: Local Project Installation

# Install in your project
npm install random-org-mcp-server

# Run from node_modules
npx random-org-mcp-server

🛠️ Build from Source

  1. Clone this repository:
git clone https://github.com/QianJue-CN/TRUERandomMCP.git
cd TRUERandomMCP
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Configuration

🔑 Get API Key

  1. Visit api.random.org to get a free API key
  2. Register and obtain your API key

⚙️ Configuration Methods

Create a .env file in your working directory:

# Copy example file (if building from source)
cp .env.example .env

Edit .env file:

RANDOM_ORG_API_KEY=your_api_key_here
RATE_LIMIT_REQUESTS_PER_SECOND=1
RATE_LIMIT_BURST_SIZE=5
REQUEST_TIMEOUT_MS=10000
MAX_RETRIES=3
RETRY_DELAY_MS=1000

Method 2: MCP Client Configuration

Configure directly in your MCP client (e.g., Claude Desktop):

{
  "mcpServers": {
    "random-org": {
      "command": "npx",
      "args": ["random-org-mcp-server"],
      "env": {
        "RANDOM_ORG_API_KEY": "your_api_key_here"
      }
    }
  }
}

Environment Variables

  • RANDOM_ORG_API_KEY (required) - Your api.random.org API key
  • RATE_LIMIT_REQUESTS_PER_SECOND (optional, default: 1) - Rate limiting
  • RATE_LIMIT_BURST_SIZE (optional, default: 5) - Burst size for rate limiting
  • REQUEST_TIMEOUT_MS (optional, default: 10000) - Request timeout in milliseconds
  • MAX_RETRIES (optional, default: 3) - Maximum number of retries
  • RETRY_DELAY_MS (optional, default: 1000) - Delay between retries

Usage

🔗 MCP Client Integration

Claude Desktop Configuration

  1. Locate your Claude Desktop configuration file:

    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  2. Add the Random.org MCP server configuration:

{
  "mcpServers": {
    "random-org": {
      "command": "npx",
      "args": ["random-org-mcp-server"],
      "env": {
        "RANDOM_ORG_API_KEY": "your_api_key_here"
      }
    }
  }
}
  1. Restart Claude Desktop

Alternative Configurations

Using Global Installation

{
  "mcpServers": {
    "random-org": {
      "command": "random-org-mcp",
      "env": {
        "RANDOM_ORG_API_KEY": "your_api_key_here"
      }
    }
  }
}

Using Local Installation

{
  "mcpServers": {
    "random-org": {
      "command": "node",
      "args": ["node_modules/random-org-mcp-server/dist/index.js"],
      "env": {
        "RANDOM_ORG_API_KEY": "your_api_key_here"
      }
    }
  }
}

Running the Server

🚀 Production Usage

If installed globally:

random-org-mcp

Using npx (no installation required):

npx random-org-mcp-server

From source:

npm start

🛠️ Development

For development with auto-reload:

npm run dev

Tool Examples

Generate Random Integers

{
  "name": "generateIntegers",
  "arguments": {
    "n": 5,
    "min": 1,
    "max": 100,
    "replacement": true,
    "base": 10
  }
}

Generate Random Strings

{
  "name": "generateStrings",
  "arguments": {
    "n": 3,
    "length": 8,
    "characters": "abcdefghijklmnopqrstuvwxyz0123456789",
    "replacement": true
  }
}

Generate UUIDs

{
  "name": "generateUUIDs",
  "arguments": {
    "n": 5
  }
}

Generate Gaussian Numbers

{
  "name": "generateGaussians",
  "arguments": {
    "n": 10,
    "mean": 0,
    "standardDeviation": 1,
    "significantDigits": 6
  }
}

Get Usage Statistics

{
  "name": "getUsage",
  "arguments": {}
}

API Limits

The api.random.org service has the following limits:

  • Integers: 1-10,000 numbers per request
  • Integer Sequences: 1-10,000 sequences, each 1-10,000 numbers long
  • Decimal Fractions: 1-10,000 numbers per request
  • Gaussians: 1-10,000 numbers per request
  • Strings: 1-10,000 strings per request, each 1-20 characters long
  • UUIDs: 1-1,000 UUIDs per request
  • Blobs: 1-100 blobs per request, each 1-1,048,576 bytes

Error Handling

The server includes comprehensive error handling:

  • Input validation for all parameters
  • Rate limiting to respect API limits
  • Automatic retries with exponential backoff
  • Detailed error messages for troubleshooting

Development

Scripts

  • npm run build - Build the TypeScript code
  • npm start - Run the compiled server
  • npm run dev - Run in development mode with auto-reload
  • npm run clean - Clean the build directory

Project Structure

src/
├── index.ts           # Main entry point
├── server.ts          # MCP server implementation
├── randomOrgClient.ts # API client for random.org
├── rateLimiter.ts     # Rate limiting implementation
├── config.ts          # Configuration management
└── types.ts           # TypeScript type definitions

License

MIT License - see LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Support

For issues related to this MCP server, please open an issue on GitHub. For api.random.org API issues, please refer to their documentation.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Random.org MCP server for true randomness from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/random-org)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools