Skip to content

A small MCP server providing tools for generating unique IDs in various formats.

License

Notifications You must be signed in to change notification settings

Pyroxin/mcp-server-unique-id-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unique ID Generator MCP Server

A simple MCP server that provides tools for generating unique IDs in several formats. Useful for when you need an LLM to create data containing new IDs.

Tools

All tools except the timestamp tool can produce batches of IDs.

  • generate_cuid - v2 CUIDs (configurable length)
  • generate_nanoid - NanoIDs (configurable length)
  • generate_ulid - ULIDs (time-ordered)
  • generate_uuid - UUID v4 or v7 (optional URN format)
  • generate_iso_timestamp - Current time as ISO 8601 timestamp (can select seconds, milliseconds, microseconds, or nanoseconds as precision)

Installation

You can run the server directly from GitHub via npx:

npx github:Pyroxin/mcp-server-unique-id-generator

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "unique-id-generator": {
      "command": "npx",
      "args": ["github:Pyroxin/mcp-server-unique-id-generator"]
    }
  }
}

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

About

A small MCP server providing tools for generating unique IDs in various formats.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •