Mcp ランダムナンバー
MCPランダム番号は、[MCP(モデルコンテキストプロトコル)]に対応したサーバーで、random.orgを介して大気ノイズから得られた真のランダム番号を提供します。
概要
MCPランダム番号の概要
MCPランダム番号は、random.orgからの大気ノイズに基づいた真のランダム番号を提供する[MCP (Model Context Protocol)]互換のサーバーです。これは、LLM(GPT、Claudeなど)が決定論的な性質を克服し、必要に応じて偏りのない真のランダム値を生成するのを助けるために設計されています。
なぜ使用するのか?
LLMは、パターンベースの性質のために、本当にランダムな番号を生成するのに苦労することがよくあります。このサーバーは、信頼できるエントロピー豊富なソースからランダム性を取得することでそれを解決します。 複数のLLMによって生成された100のランダム番号(1〜100)のテストランでは、重要な分布バイアスが示されました — これは、このサーバーとは異なり、真のランダム性を確保します。
インストールとセットアップ
- プロジェクトをクローンしてビルドします:
git clone https://github.com/maxbogo/mcp-random-number.git
cd mcp-random-number
npm install
npm run build
- MCPサーバーとして設定します:
以下を設定ファイルに追加し、/ABSOLUTE/PATH/TO/
を実際のビルドパスに置き換えます:
{
"mcpServers": {
"mcp-random-number": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/mcp-random-number/build/index.js"]
}
}
}
ボーナス
人気のあるLLMの出力とこのサーバーの出力を比較する分布チャートが含まれており、AIアプリケーションにおける真のランダム性の使用の重要性を視覚的に強調しています。
詳細
MCP Random Number
An MCP (Model Context Protocol) server that provides true random numbers from atmospheric noise via random.org.
Why?
LLMs struggle with generating truly random numbers. This chart shows the distribution bias of 100 random numbers (range 1-100) from 3 popular LLMs:
Installation
-
Copy, Install, Build:
git clone https://github.com/maxbogo/mcp-random-number.git cd mcp-random-number npm install npm run build
-
Connect to the MCP server:
Add the below json to your configuration with the appropriate
/ABSOLUTE/PATH/TO/
value:{ "mcpServers": { "mcp-random-number": { "command": "node", "args": ["/ABSOLUTE/PATH/TO/mcp-random-number/build/index.js"] } } }
サーバー設定
{
"mcpServers": {
"mcp-random-number": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/mcp-random-number/build/index.js"
]
}
}
}