Provides enhanced access to the randomuser.me API via Model Context Protocol with customizable user data retrieval, multiple output formats, password generation, and weighted nationality distribution for flexible identity simulation and testing.
Unlock the full potential of RandomUser MCP Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
An MCP server that provides enhanced access to the randomuser.me API with additional features like custom formatting, password generation, and weighted nationality distribution.
Clone the repository:
git clone https://github.com/rycid/randomuserMCP.git cd randomuserMCP # Install dependencies npm install # Build the project npm run build
Add to your MCP settings file (claude_desktop_config.json
or cline_mcp_settings.json
):
{ "mcpServers": { "randomuser": { "command": "node", "args": ["path/to/randomuserMCP/build/index.js"] } } }
Get a single random user with customizable options.
{ "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 } }
Get multiple random users with weighted nationality distribution.
{ "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 } } }
The server supports multiple output formats:
Include or exclude specific fields:
{ "fields": { "mode": "include", // or "exclude" "values": [ "name", "phone", "email", "location", "picture", "dob", "login", "registered", "id", "cell", "nat" ] } }
# 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
MIT
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!