ID Generator MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add id-generator -- npx -y @gergelyszerovay/mcp-id-date
README.md

Generates auto-incrementing unique identifiers and provides ISO timestamps.

ID Generator MCP Server

An MCP (Model Context Protocol) server that generates auto-incrementing unique identifiers and provides current ISO timestamps.

Overview

This MCP server provides two core tools:

  1. Generate Unique ID - Generates auto-incrementing 8-digit hexadecimal identifiers with persistent state across restarts
  2. ISO Date - Returns the current date and time in ISO 8601 format (UTC)

Tools

Generate Unique ID

The MCP server generates auto-incrementing 8-digit hexadecimal unique identifiers. Each ID automatically increments from the previous value, ensuring sequential uniqueness across all calls and server restarts. The counter state is persisted to disk, making it ideal for:

  • Creating unique element IDs for testing and automation
  • Generating sequential tracking numbers
  • Assigning unique references to data entries
  • Any scenario requiring guaranteed unique, sequential identifiers

Input:

{
  "count": 5  // Optional: number of IDs to generate (1-32, defaults to 1)
}

Output:

Generated 5 unique ID(s):
00000001
00000002
00000003
00000004
00000005

ISO Date

The MCP server returns the current date and time in ISO 8601 format. Each call provides the precise current timestamp in UTC timezone, useful for:

  • Creating standardized timestamps for logs and records
  • Generating sortable date strings
  • Recording event times in a universal format
  • Any scenario requiring ISO 8601 compliant timestamps

Input:

No input parameters required.

Output:

Current ISO datetime: 2025-12-10T14:23:45.678Z

Usage

Command Line

# Basic usage with stdio transport
npx @gergelyszerovay/mcp-id-date

# Enable HTTP transport for SSE
npx @gergelyszerovay/mcp-id-date --enableHttpTransport

# Enable REST API server
npx @gergelyszerovay/mcp-id-date --enableRestServer

# Custom counter file location
npx @gergelyszerovay/mcp-id-date --idCounterFile=./my-counter.txt

CLI Options

Flag Description Default
--enableHttpTransport Enable HTTP transport for SSE false
--enableStdioTransport Enable stdio transport true
--enableRestServer Enable REST API server false
--mcpHttpPort Port for MCP HTTP server 3001
--restHttpPort Port for REST HTTP server 3002
--idCounterFile Path to the file used for tracking the last generated ID /workspace/last-tag-id.txt

MCP Integration

Add this to your MCP server configuration:

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

Tools (2)

Generate Unique IDGenerates auto-incrementing 8-digit hexadecimal identifiers with persistent state across restarts.
ISO DateReturns the current date and time in ISO 8601 format (UTC).

Configuration

claude_desktop_config.json
{"mcpServers": {"id-generator": {"command": "npx", "args": ["-y", "@gergelyszerovay/mcp-id-date"]}}}

Try it

Generate 5 unique hexadecimal IDs for my new database entries.
What is the current UTC time in ISO 8601 format?
Create a unique tracking ID for this task.
Provide the current timestamp to use in my log file.

Frequently Asked Questions

What are the key features of ID Generator?

Generates auto-incrementing 8-digit hexadecimal unique identifiers. Provides current UTC timestamps in ISO 8601 format. Persistent counter state across server restarts. Configurable counter file location. Supports stdio, HTTP, and REST API transport modes.

What can I use ID Generator for?

Creating unique element IDs for software testing and automation. Generating sequential tracking numbers for data entries. Standardizing timestamps for system logs and records. Assigning unique references to data entries in a persistent manner.

How do I install ID Generator?

Install ID Generator by running: npx @gergelyszerovay/mcp-id-date

What MCP clients work with ID Generator?

ID Generator works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep ID Generator docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare