MCP.Market

Random MCP server

online · 100% uptime
by eldesh·io.github.eldesh/random-mcp·v2.1.0

Generate random values and probability distribution samples.

A92/100grade A
What users say
No reviews yet
Be the first
Safety scan
A92/100

full report

Adoption
New

0 stars

Reviews

Write one

Nobody has reviewed Random yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Random tools

Tool list not cached yet. `describe` through the gateway fetches it live.

Public scan report

scanner v0.1.10 · 2026-10-31 · same rubric, same numbers if you re-run it

no findings
  • –Code scanremote-only server, no package to scann/a
  • Live reliabilityremote reachable in 257ms (auth required)20/20
  • –Tool poisoningtools not inspected (endpoint requires auth); not countedn/a
  • Auth qualityOAuth resource metadata advertised on 40115/15
  • Maintenancelast push 63 days ago12/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 92/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Random compares

Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
92/100
higher than 95% of 48,255 servers
Uptime
100%
of our recent checks; the typical remote server answers 100%
Response time
304 ms
faster than 47% of 30,031 servers

Install Random in Claude Code, Cursor or VS Code

claude mcp add --transport http random-mcp https://random-mcp.eldesh-tools.workers.dev/mcp
Add to Cursor

What the publisher says

From the Random repository's README, as published. We do not edit it. Read it on GitHub

random-mcp

Cloudflare Workers 上で動作する、乱数生成用の MCP(Model Context Protocol)サーバーです。Notion Agent などの MCP クライアントから、整数・浮動小数点数・重み付き選択・各種確率分布の標本を生成できます。

公式サイト: https://random-mcp.eldesh-tools.workers.dev/

目的

言語モデル自身に乱数を選ばせず、外部の乱数生成処理を MCP ツールとして呼び出せるようにすることを目的としています。

言語モデルに乱数の選択を委ねると、モデルの学習データや出力傾向が結果に影響し、統計的に偏った値が生成されます。たとえば「1から10の整数をランダムに選べ」と指示しても、モデルは特定の値(7など)を好む傾向があり、まっとうな意味での乱数にはなりません。このため、乱数が必要な処理はモデルが自律判断するのではなく、本サーバーのツールを通じて生成する必要があります。

乱数源には Web Crypto API を使用します。整数生成では、剰余による偏りを避けるため rejection sampling を行います。ただし、暗号鍵や認証トークンの生成を目的とした API ではありません。

公式サーバーを利用する

公式サーバーは次の MCP エンドポイントで利用できます。利用者が Cloudflare や GitHub OAuth App を設定する必要はありません。

https://random-mcp.eldesh-tools.workers.dev/mcp

Notion AI への接続

  1. Settings > Connections > MCP > Custom MCP を選択します
  2. MCP server URL に https://random-mcp.eldesh-tools.workers.dev/mcp を指定します。独自インスタンスを利用する場合は、そのデプロイ先 URL を指定します
  3. 次のように各項目を埋めて Connect します
  • Name: Notion 内で識別するための名前(例: random-mcp)
  • Authentication: OAuth
  1. アクセス許可画面で Approve を選択します
  2. GitHub にサインインし、GitHub OAuth App による認証を完了します
  3. ツールが表示されたら、必要なツールを有効化します
  4. Notion AI からツール実行ごとの確認なしで呼び出したい場合は、実行設定を Run automatically に変更します

Agent への指示

Agent の指示には例えば次のように追加し、乱択が必要な際に必ず random-mcp が使われるようにします。

## 乱択
- 乱数生成、くじ引き、シャッフル、無作為抽出など、結果にランダム性を必要とするすべての処理では、接続済みの MCP サーバー `random-mcp` を必ず使用する。
- 内部処理によって乱択を生成、模擬、または近似してはならない。
- `random-mcp` が利用できない場合やエラーになった場合は、別の方法で代替せず、その旨をユーザーに伝える。

認証

サーバーは /mcp で Streamable HTTP 接続を受け付けます。MCP クライアントとの認可には OAuth 2.1、ユーザーの認証には GitHub OAuth を使用します。

認可時には、MCP クライアントのアクセス許可画面を表示した後、GitHub の認証画面へ移動します。GitHub から取得する権限は read:user です。認可済みの MCP クライアントには mcp:use スコープのアクセストークンが発行されます。

ツール

random-mcp には以下に示す3つのツールがあり、それぞれ記載のフィールドを持つJSONオブジェクトを要求します。

random_int

指定した確率分布に従う整数を指定数生成し、values配列で返します。

  • distribution: 確率分布名。省略時はuniform
  • count: 生成数。1以上1,000以下、既定値は1

パラメーターの組み合わせには、次の制約があります。

  • 二項分布: trialsは0以上100,000以下の安全な整数で、trials * count <= 100000
  • ポアソン分布: lambdaは0以上100以下で、lambda * count <= 10000

引数の例: {"min":5,"max":10,"count":20}

random_double

指定した確率分布に従う浮動小数点数を指定数生成し、values配列で返します。

  • distribution: 確率分布名。省略時はuniform
  • count: 生成数。1以上1,000以下、既定値は1

引数の例: {"distribution":"normal","mean":0,"standard_deviation":1,"count":20}

random_choice

候補から指定数の要素を選択し、values配列で返します。

  • choices: 候補文字列の配列。1個以上1,000個以下
  • weights: 各候補の相対的な重み。省略時は等確率
  • count: 選択数。1以上1,000以下、既定値は1
  • with_replacement: 復元抽出ではtrue、非復元抽出ではfalse。既定値はtrue

weightsを指定する場合は、choicesと要素数を一致させ、少なくとも一つを正の値にします。 非復元抽出では、countを候補数以下にする必要があります。重みを指定する場合は、正の重みを持つ候補数以下にする必要もあります。

引数の例: {"choices":["A","B","C"],"weights":[1,2,1],"count":2,"with_replacement":false}

ローカル開発

必要な環境

  • Node.js 22.19.0以上
  • npm
  • GitHub アカウント

依存関係をインストールします。

npm install

ローカル用 GitHub OAuth App の作成

GitHub の Developer settings で、ローカル開発用の OAuth App を作成します。

次の値を設定します。

  • Homepage URL: http://localhost:8787
  • Authorization callback URL: http://localhost:8787/callback

作成後、Client ID と Client secret を取得します。このアプリケーションが GitHub に要求する OAuth スコープは read:user です。

環境変数

プロジェクト直下に .dev.vars を作成します。

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Random: common questions

Is Random MCP server safe?
Yes, by our scan: it is graded A (92/100). Read the Random safety report
How do I install Random?
It runs remotely at random-mcp.eldesh-tools.workers.dev. Add it to Claude Code, Cursor, VS Code or Claude Desktop with the snippets above, or call it through the mcp.market gateway without installing anything.
Does Random need an API key?
No key to paste: it signs you in with OAuth when your client connects.
Is Random maintained?
The last commit was 66 days ago (2026-08-29). The latest release is v2.1.0.
Is Random up?
100% of our last 28 checks got an answer. We check remote servers about four times a day.
How does Random compare with other MCP servers?
safety score 92/100 (higher than 95% of 48,255 servers); uptime 100% (of our recent checks; the typical remote server answers 100%); response time 304 ms (faster than 47% of 30,031 servers). Full comparison.