Skip to main content
Glama
UUID MCP Provider

UUID MCP Provider

by tanker327

UUID MCP 提供程序

一个简单的模型上下文协议 (MCP) 服务器,每当 LLM 调用它时,它都会提供基于时间戳的 UUID。

特征

  • 提供单一工具: generateUuid

  • 使用 UUID v7 作为基于时间戳的唯一标识符

  • 界面简单,无需输入参数

  • 轻松与 Claude 和其他 LLM 整合

Related MCP server: MCP UUID Server

安装

# Install dependencies
npm install

# Build the project
npm run build

用法

您可以直接运行服务器:

npm start

与 Claude Desktop 集成

要与 Claude Desktop 集成,请将其添加到您的 Claude Desktop 配置文件中:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "uuid-provider": {
      "command": "node",
      "args": ["/absolute/path/to/uuid-mcp/build/index.js"]
    }
  }
}

将/absolute/path/to/uuid-mcp/build/index.js替换为您构建的 index.js 文件的绝对路径。

更新配置后,重新启动Claude Desktop即可看到可用的UUID生成工具。

工作原理

此服务器使用官方uuid包生成 UUID v7 标识符。UUID v7 专门设计为基于时间戳,同时保持强大的唯一性保证:

  • 包含毫秒精度的 Unix 时间戳

  • 添加随机数据以确保即使在同一毫秒内生成多个 ID 也能保持唯一性

  • 遵循最新的 UUID 生成 RFC 标准

  • 提供按时间顺序排序的标识符

  • 防止分布式系统中的碰撞

这种方法比自定义 UUID 实现更可靠,即使在高负载下也能消除重复的可能性。

依赖项

  • @modelcontextprotocol/sdk :用于 MCP 服务器实现

  • uuid :用于符合 RFC 标准的 UUID 生成

  • TypeScript 和相关开发工具

例子

调用时,该工具返回一个如下所示的 UUID v7 字符串:

018e94d2-279b-7bd3-9289-80d1e6619670

UUID 的第一部分包含时间戳,使得这些标识符可以按时间顺序排序,同时仍保持标准 UUID 格式。

Available Tools

1 tool
generateUuidA

Generate a UUID v7 that's timestamp-based and guaranteed to be unique

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool has a clear, distinct purpose that cannot be confused with any other tool in the set.

    Naming Consistency5/5

    A single tool inherently has perfect naming consistency, as there are no other tools to compare it against. The tool name 'generateUuid' follows a clear verb_noun pattern and stands alone without any conflicting conventions.

    Tool Count2/5

    A single tool is too few for most practical server purposes, making the set feel thin and limited. While generating UUIDs is a straightforward task, a server with only one tool lacks the breadth typically expected for agent workflows, even for a simple domain like UUID generation.

    Completeness3/5

    For the narrow domain of UUID generation, the tool provides the core functionality (generate a UUID v7). However, there are notable gaps, such as no tools for generating other UUID versions (e.g., v4), validating UUIDs, or parsing UUIDs, which limits agent flexibility in handling UUID-related tasks.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      D
      quality
      D
      maintenance
      A simple service that generates random UUIDs when requested through Claude Desktop.
      1
      -
    • A
      license
      A
      quality
      D
      maintenance
      A simple Model Context Protocol server that provides timestamp-based UUID v7 identifiers when called by an LLM, offering chronologically sortable unique IDs with no input parameters needed.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Generates UUIDv7 strings either individually or in batches, providing time-sortable universally unique identifiers through the Model Context Protocol.
      20 PyPI
      MIT