MIT License
  • Apple
  • Linux

ID 生成器 MCP

这是一个模型上下文协议 (MCP) 服务器,为 AI 助手提供 ID 生成功能。

安装

ID Generator MCP 可以与各种 AI 助手平台集成。以下是针对不同环境的说明:

克劳德·科德

要将 ID 生成器 MCP 添加到 Claude 代码,请运行以下命令:

claude mcp add id-generator npx @devstacks/id-generator-mcp

Cursor、Winsurf 或 Claude Desktop

要将 ID Generator MCP 添加到 Cursor、Winsurf 或 Claude Desktop,请将以下配置添加到您的 MCP 配置文件:

{ "mcpServers": { "id-generator": { "command": "npx", "args": ["@devstacks/id-generator-mcp"] } } }

用法

安装后,AI 助手可以使用 ID Generator MCP 生成各种类型的 ID。

支持的ID算法

算法例子描述
uuid123e4567-e89b-12d3-a456-426614174000UUID v4 - 通用唯一标识符,使用随机数生成一个 128 位值,冲突概率极低。该格式标准化,广泛应用于多种系统。
cuid2clh3ppfqz0000jz0ggdlg7etk针对水平扩展和性能进行了优化的抗冲突 ID。比 UUID 更短,同时保持唯一性。设计安全、URL 安全且顺序性强,可提高数据库性能。
nanoidV1StGXR8_Z5jdHi6B-myT小型、安全、URL 友好的唯一字符串 ID 生成器。创建紧凑、非序列化、URL 安全且高度抗冲突的标识符。默认长度为 21 个字符。
ulid01ARZ3NDEKTSV4RRFFQ69G5FAV通用唯一且按字典顺序排序的标识符。它将时间顺序的唯一性与随机唯一性相结合。26 个字符,采用 crockford base32 编码(无特殊字符),URL 安全,并可按字典顺序排序。

特征

  • 生成 UUID(v4)
  • 创建 CUID2 ID 以实现防碰撞识别
  • 生成 Nanoid 以获得紧凑、URL 友好的标识符
  • 为按时间排序的可排序标识符创建 ULID
  • 跨会话生成一致的 ID
  • 简单的 API 集成
  • 支持一次生成多个ID

执照

麻省理工学院

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

为 AI 助手提供使用 UUID v4 和 CUID2 算法生成抗碰撞唯一标识符的能力。

  1. 安装
    1. 克劳德·科德
    2. Cursor、Winsurf 或 Claude Desktop
  2. 用法
    1. 支持的ID算法
  3. 特征
    1. 执照

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        Serves as a guardian of development knowledge, providing AI assistants with curated access to latest documentation and best practices.
        Last updated -
        4
        87
        52
        TypeScript
        MIT License
      • -
        security
        F
        license
        -
        quality
        Enables seamless AI integration via Ollama's Deepseek model, providing protocol compliance and automatic configuration for clean AI-driven interactions.
        Last updated -
        1
        Python
      • -
        security
        A
        license
        -
        quality
        A server that integrates Flux's advanced image generation and manipulation features into AI coding assistants, enabling seamless text-to-image and image control workflows in IDEs like Cursor and Windsurf.
        Last updated -
        4
        10
        Python
        MIT License
      • A
        security
        A
        license
        A
        quality
        Enables AI assistants to access protein information directly from UniProt, allowing retrieval of protein names, functions, sequences, and organism data by accession number.
        Last updated -
        2
        1
        Python
        MIT License
        • Apple
        • Linux

      View all related MCP servers

      ID: zqc5th6vch