RandomUser MCP Server
RandomUser MCP サーバー
カスタム フォーマット、パスワード生成、加重国籍分布などの追加機能により、randomuser.me API への拡張アクセスを提供する MCP サーバー。
インストール
リポジトリをクローンします。
git clone https://github.com/rycid/randomuserMCP.git
cd randomuserMCP
# Install dependencies
npm install
# Build the project
npm run buildRelated MCP server: mcp-rando-server
使用法
MCP 設定ファイル ( claude_desktop_config.jsonまたはcline_mcp_settings.json ) に追加します。
{
"mcpServers": {
"randomuser": {
"command": "node",
"args": ["path/to/randomuserMCP/build/index.js"]
}
}
}利用可能なツール
get_random_user
カスタマイズ可能なオプションを持つランダムなユーザーを 1 人取得します。
{
"gender": "female",
"nationality": "US",
"fields": {
"mode": "include",
"values": ["name", "email", "phone"]
},
"format": {
"type": "json",
"structure": {
"flattenObjects": true,
"nameFormat": "full"
}
},
"password": {
"charsets": ["special", "upper", "lower", "number"],
"minLength": 8,
"maxLength": 12
}
}複数のユーザーを取得する
重み付けされた国籍分布を持つ複数のランダムなユーザーを取得します。
{
"count": 10,
"nationality": ["US", "GB", "FR"],
"nationalityWeights": {
"US": 0.5,
"GB": 0.3,
"FR": 0.2
},
"fields": {
"mode": "include",
"values": ["name", "email", "nat"]
},
"format": {
"type": "csv",
"csv": {
"delimiter": ",",
"includeHeader": true
}
}
}出力形式
サーバーは複数の出力形式をサポートしています。
JSON(デフォルト)
ネストされたオブジェクトまたはフラット化されたオブジェクト
カスタマイズ可能な名前の形式(フルネーム、名字と姓、別姓)
日付フォーマットオプション(ISO、UNIX、フォーマット済み)
CSV
カスタマイズ可能な区切り文字
オプションのヘッダー
自動的にフラット化されたデータ構造
SQL
複数の方言のサポート (MySQL、PostgreSQL、SQLite)
オプションのCREATE TABLE文
適切なエスケープと型処理
XML
標準XML形式
ネストされたデータ構造
特殊文字の適切なエスケープ
フィールド選択
特定のフィールドを含めるか除外する:
{
"fields": {
"mode": "include", // or "exclude"
"values": [
"name",
"phone",
"email",
"location",
"picture",
"dob",
"login",
"registered",
"id",
"cell",
"nat"
]
}
}サポートされている国籍
AU: オーストラリア
BR: ブラジル
CA: カナダ
CH: スイス
DE: ドイツ
DK: デンマーク
ES: スペイン
FI: フィンランド
FR: フランス
GB: イギリス
IE: アイルランド
IN: インド
IR: イラン
MX: メキシコ
NL: オランダ
いいえ: ノルウェー
NZ: ニュージーランド
RS: セルビア
TR: トルコ
UA: ウクライナ
米国: アメリカ合衆国
発達
# Install dependencies
npm install
# Build the project
npm run build
# Start in development mode (with watch mode)
npm run dev
# Start the server
npm startライセンス
マサチューセッツ工科大学
Available Tools
2 toolsget_multiple_usersC
Get multiple random users
Inputs: count (required), gender, nationality, nationalityWeights, +3 more.
get_random_userC
Get a single random user
Inputs: gender, nationality, fields, format, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one retrieves a single random user, while the other retrieves multiple random users. There is no overlap or ambiguity in their functions, making it easy for an agent to select the appropriate tool based on the desired outcome.
Both tool names follow a consistent verb_noun pattern with 'get' as the verb and descriptive nouns ('random_user', 'multiple_users'). The naming is uniform and predictable, using snake_case throughout without any deviations.
With only 2 tools, the server feels thin for a 'RandomUser' domain, as it lacks operations like filtering users by criteria, updating user data, or handling user-related workflows. While the tools cover basic retrieval, the count is too low for a comprehensive user management or data generation scope.
The tool surface is severely incomplete for a user-related server, offering only retrieval of random users without any ability to create, update, delete, or filter users. There are significant gaps that would limit agent functionality, such as no way to specify user attributes or manage user data beyond basic fetching.
Related MCP Connectors
Unofficial Random User MCP — wraps randomuser.me (free, no auth)
Generate synthetic random user data for testing, demos, and development without using real persona.
Generate fictional names and sample identity profiles for prototypes, QA, demos, and creative work.
Passwords, random numbers and strings, colours, usernames and card draws from a secure random source
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceWraps the randomuser.me API to generate random user profiles with names, contact info, and demographics, optionally filtered by gender and count.278 npmMIT
- AlicenseNot gradedqualityDmaintenanceCryptographically secure random number generation and randomized resources, including tools for numbers, strings, dice rolls, UUIDs, and passphrases.4MIT
- AlicenseCqualityDmaintenanceGenerates passwords with customizable length, special characters, numbers, and umlauts via the Password Generator20 API.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables generation of UUIDs (v4, v7) and ULIDs, UTC time retrieval, and customizable random string creation with options for length, case, numbers, and special characters.MIT