uid-generator-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
uid-generator-mcp
Standalone MCP server that issues globally unique 64-bit IDs (snowflake layout). Inspired by baidu/uid-generator (Apache-2.0), preserved and re-implemented in pure Python — no JVM needed.
Layout
sign(1) | timestamp(41, ms since 2026-01-01) | worker(10) | sequence(12)4096 IDs per ms per worker, 1024 workers, ~69 years of headroom.
Clock-rollback policy follows the upstream spirit: small rollbacks (≤5 ms) spin-wait; larger rollbacks are refused with
ClockRollbackErrorinstead of risking duplicates.Worker IDs auto-allocate against a local lease file so multiple processes on one machine do not collide; override with
UID_MCP_WORKER_ID.
Related MCP server: UUID AI MCP
Tools
tool | purpose |
| issue one unique ID |
| issue 1–1000 IDs, increasing in issue order |
| parse an ID back to timestamp / worker / sequence |
| show worker id and bit layout |
Run
pip install -e .
python run_server.py # stdio transportTests
python3 -m unittest discover tests -vCovers: single-thread burst uniqueness (5000 IDs), 8-thread concurrency uniqueness (4000 IDs), monotonicity, decode round-trip, worker range and lease allocation.
License
Apache-2.0. The upstream project is preserved under tanbopiao/uid-generator.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate IDs, QR codes, and hashes, encode values, geolocate IPs, plus gated host diagnostics.
Make Discord <t:unix:F> timestamp codes from any date and timezone; decode Discord snowflake IDs.
Generate UUID v4/v5/v7, ULID and NanoID values and inspect UUIDs (version, variant, timestamp).
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA 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.Eclipse Public 2.0
- AlicenseBqualityCmaintenanceGenerates UUID, ULID, and NanoID identifiers via MCP protocol.57 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables generation and parsing of time-sortable unique IDs (ULIDs) without keys, offline.71 npmMIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables generation of UUIDs (v4, v7) and ULIDs, UTC time retrieval, and customizable random string creation with options for length, case, numbers, and special characters.MIT