Skip to main content
Glama
RandomUser MCP Server

RandomUser MCP Server

by rycid

Servidor MCP de RandomUser

Un servidor MCP que proporciona acceso mejorado a la API randomuser.me con características adicionales como formato personalizado, generación de contraseñas y distribución ponderada de nacionalidad.

Instalación

Clonar el repositorio:

git clone https://github.com/rycid/randomuserMCP.git
cd randomuserMCP

# Install dependencies
npm install

# Build the project
npm run build

Related MCP server: mcp-rando-server

Uso

Agregue a su archivo de configuración de MCP ( claude_desktop_config.json o cline_mcp_settings.json ):

{
  "mcpServers": {
    "randomuser": {
      "command": "node",
      "args": ["path/to/randomuserMCP/build/index.js"]
    }
  }
}

Herramientas disponibles

obtener_usuario_aleatorio

Obtenga un único usuario aleatorio con opciones personalizables.

{
  "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
  }
}

obtener_múltiples_usuarios

Obtenga múltiples usuarios aleatorios con distribución de nacionalidad ponderada.

{
  "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
    }
  }
}

Formatos de salida

El servidor admite múltiples formatos de salida:

JSON (predeterminado)

  • Objetos anidados o aplanados

  • Formatos de nombre personalizables (completo, nombre_apellido, separado)

  • Opciones de formato de fecha (iso, unix, formateada)

CSV

  • Delimitador personalizable

  • Encabezados opcionales

  • Estructura de datos aplanada automáticamente

SQL

  • Compatibilidad con múltiples dialectos (MySQL, PostgreSQL, SQLite)

  • Sentencias CREATE TABLE opcionales

  • Escape y manejo de tipos adecuados

XML

  • Formato XML estándar

  • Estructura de datos anidada

  • Escape adecuado de caracteres especiales

Selección de campo

Incluir o excluir campos específicos:

{
  "fields": {
    "mode": "include",  // or "exclude"
    "values": [
      "name",
      "phone",
      "email",
      "location",
      "picture",
      "dob",
      "login",
      "registered",
      "id",
      "cell",
      "nat"
    ]
  }
}

Nacionalidades admitidas

  • AU: Australia

  • BR: Brasil

  • CA: Canadá

  • CH: Suiza

  • DE: Alemania

  • DK: Dinamarca

  • ES: España

  • FI: Finlandia

  • FR: Francia

  • GB: Reino Unido

  • IE: Irlanda

  • EN: India

  • IR: Irán

  • MX: México

  • NL: Países Bajos

  • NO: Noruega

  • NZ: Nueva Zelanda

  • RS: Serbia

  • TR: Turquía

  • UA: Ucrania

  • EE.UU.: Estados Unidos

Desarrollo

# 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

Licencia

Instituto Tecnológico de Massachusetts (MIT)

Available Tools

2 tools
get_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

    C2.9/5.0

    Scored across 2 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count2/5

    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.

    Completeness2/5

    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

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Wraps the randomuser.me API to generate random user profiles with names, contact info, and demographics, optionally filtered by gender and count.
      278 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Cryptographically secure random number generation and randomized resources, including tools for numbers, strings, dice rolls, UUIDs, and passphrases.
      4
      MIT
    • A
      license
      C
      quality
      D
      maintenance
      Generates passwords with customizable length, special characters, numbers, and umlauts via the Password Generator20 API.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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