Skip to main content
Glama

UUID MCP Provider

by tanker327

UUID MCP 提供程序

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

特征

  • 提供单一工具: generateUuid
  • 使用 UUID v7 作为基于时间戳的唯一标识符
  • 界面简单,无需输入参数
  • 轻松与 Claude 和其他 LLM 整合

安装

# 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 格式。

You must be authenticated.

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

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

一个简单的模型上下文协议服务器,当被 LLM 调用时会生成基于时间戳的 UUID(v7),提供按时间顺序排序的唯一标识符,无需输入参数。

  1. 特征
    1. 安装
      1. 用法
        1. 与 Claude Desktop 集成
      2. 工作原理
        1. 依赖项
          1. 例子

            Related MCP Servers

            • -
              security
              F
              license
              -
              quality
              A secure Model Context Protocol server that manages time-based operations using timing attack protection and timelock encryption, allowing for timed interval management and secure data storage.
              Last updated -
              2
              TypeScript
            • A
              security
              F
              license
              A
              quality
              A Model Context Protocol server that provides time and timezone conversion capabilities, enabling LLMs to get current time information and perform timezone conversions using IANA timezone names.
              Last updated -
              2
              1
              Python
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server providing utility tools for development and testing, offering functionalities like personalized greetings, random card drawing, and datetime formatting with an extensible architecture.
              Last updated -
              19
              464
              2
              TypeScript
              MIT License
              • Apple
              • Linux
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol (MCP) server implementation that enables LLMs to interact with the Osmosis protocol, allowing for querying and transaction functionality through natural language.
              Last updated -
              9
              TypeScript
              MIT License
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/tanker327/uuid-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server