UUID Generator MCP server

Generates timestamp-based UUID v7 identifiers that are chronologically sortable and collision-resistant, following RFC standards for reliable unique identifier creation.
Back to servers
Provider
Eric Wu
Release date
Apr 03, 2025
Language
TypeScript
Package
Stats
75 downloads
1 star

This MCP server provides timestamp-based UUIDs (v7) whenever called by an LLM like Claude. It's a simple tool that generates chronologically sortable unique identifiers without requiring any input parameters.

Installation

To install the UUID MCP Provider:

# Install dependencies
npm install

# Build the project
npm run build

Running the Server

You can run the server directly using:

npm start

Integration with Claude Desktop

To integrate with Claude Desktop, you need to add the server configuration to your Claude Desktop configuration file:

Configuration File Location

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Configuration Content

Add the following to your configuration file:

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

Important: Replace /absolute/path/to/uuid-mcp/build/index.js with the absolute path to your built index.js file.

After updating the configuration, restart Claude Desktop for the changes to take effect. The UUID generation tool will then be available in your Claude interface.

Generated UUID Format

When called, the tool returns a UUID v7 string that looks like:

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

The first part of the UUID contains the timestamp, making these identifiers chronologically sortable while still maintaining the standard UUID format.

Technical Details

The server provides a single tool called generateUuid that requires no input parameters. It uses the standard uuid package to generate UUID v7 identifiers, which incorporate:

  • Unix timestamp in millisecond precision
  • Randomized data to ensure uniqueness
  • Chronological sortability

This makes it ideal for applications where both uniqueness and time ordering are important.

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later