mcp-rando-server
Cryptographically secure random number generation and randomized resources, including tools for numbers, strings, dice rolls, UUIDs, and passphrases.
README
mcp-rando-server
A Model Context Protocol (MCP) server that provides cryptographically secure random numbers and randomized resources. Uses stdio transport for clients to ensure private data need not leave the user's local machine, and Node's crypto module for strong randomization.
NOTE: This server has not been tested in production - do not rely on it for security-critical applications without thorough testing.
Features
🔧 Tools (9 available)
random-number- Generate secure random integers within a rangerandom-decimal- Generate secure random decimal numbers with precision controlrandom-choice- Pick random items from a list (with or without duplicates)shuffle-list- Randomly shuffle a list using Fisher-Yates algorithmrandom-string- Generate random strings with different character setsroll-dice- Roll dice with custom sides and modifiersgenerate-uuid- Generate cryptographically secure UUIDs (v4)random-bytes- Generate raw cryptographic bytes in various encodingsdiceware-passphrase- Generate secure passphrases using the Diceware method
📊 Resources and Resource Templates (3 available)
random://facts/numbers- Static resource with random number factsrandom://dataset/{type}- Dynamic datasets (numbers, coordinates, colors, names)wordlist://{filename}- Access EFF Diceware wordlists for passphrase generation
📝 Prompts (4 available)
random-story-starter- Generate random story prompts by genrerandom-writing-exercise- Create creative writing exercises by difficultydiceware-security-guide- Generate security guidance for diceware passphrase creation and usagepassword-policy-advisor- Generate advice for creating diceware-friendly password policies
🌳 Roots
- N/A - The server does not perform any operations that touch the filesystem or require persistent storage.
Security
All randomness is cryptographically secure using the Node.js crypto module:
- Uses
crypto.randomInt()for integers - Uses
crypto.randomBytes()for floats and raw bytes - Uses
crypto.randomUUID()for UUIDs - Suitable for security-sensitive applications
Diceware Passphrases
The server includes support for generating secure passphrases using the Diceware method:
- Method: Generates cryptographically secure dice rolls (1-6) to select words from curated wordlists
- Wordlists: Includes Electronic Frontier Foundation (EFF) wordlists optimized for memorability and security, as well as removing obscene or obscure words.
- Memorability: Uses common English words that are easy to remember and type
Available wordlists:
short_wordlist_unique_prefixes.txt- 1296 words, unique 3-character prefixes (default)short_wordlist.txt- 1296 words, standard EFF short listlarge_wordlist.txt- 7776 words, full EFF list for maximum securityoriginal_reinhold_wordlist.txt- 7776 words, original Diceware list

Installation
# Install dependencies
npm install
# Start the server
npm start
# Or for development with auto-reload
npm run dev
Usage
The server uses stdio transport, making it compatible with MCP clients that support stdio.
Example Tool Calls
# Generate 5 random numbers between 1-100
{"method": "tools/call", "params": {"name": "random-number", "arguments": {"min": 1, "max": 100, "count": 5}}}
# Generate a secure password-like string
{"method": "tools/call", "params": {"name": "random-string", "arguments": {"length": 16, "charset": "alphanumeric"}}}
# Roll 3 six-sided dice with +2 modifier
{"method": "tools/call", "params": {"name": "roll-dice", "arguments": {"sides": 6, "count": 3, "modifier": 2}}}
# Generate UUIDs
{"method": "tools/call", "params": {"name": "generate-uuid", "arguments": {"count": 3, "format": "no-hyphens"}}}
# Generate 32 random bytes in base64
{"method": "tools/call", "params": {"name": "random-bytes", "arguments": {"size": 32, "encoding": "base64"}}}
# Generate a 5-word diceware passphrase
{"method": "tools/call", "params": {"name": "diceware-passphrase", "arguments": {"words": 5, "wordlist": "short_wordlist_unique_prefixes.txt", "capitalize": false}}}
# Generate a 6-word capitalized passphrase using the large wordlist
{"method": "tools/call", "params": {"name": "diceware-passphrase", "arguments": {"words": 6, "wordlist": "large_wordlist.txt", "capitalize": true}}}
Example Resource Access
# Get random number facts
{"method": "resources/read", "params": {"uri": "random://facts/numbers"}}
# Get random coordinate dataset
{"method": "resources/read", "params": {"uri": "random://dataset/coordinates"}}
# Access a specific diceware wordlist
{"method": "resources/read", "params": {"uri": "wordlist://short_wordlist_unique_prefixes.txt"}}
# Access the large EFF wordlist
{"method": "resources/read", "params": {"uri": "wordlist://large_wordlist.txt"}}
Example Prompt Usage
# Get a fantasy story starter
{"method": "prompts/get", "params": {"name": "random-story-starter", "arguments": {"genre": "fantasy", "character": "Aria"}}}
# Get an advanced writing exercise
{"method": "prompts/get", "params": {"name": "random-writing-exercise", "arguments": {"difficulty": "advanced", "timeLimit": 20}}}
Requirements
- Node.js 18+
- TypeScript (for development)
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。