UID Generator MCP Server
Snowflake unique-ID issuing MCP server: rollback refusal, worker lease, pure Python.
UID Generator scores 66 (Good), licensed Apache-2.0 and written in Python. It installs as a local process. It declares 3 tools. Filed under Data and analytics. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: apache-2.0.
License, quality and maintenance
Quality: Grade B
74/100 for listing completeness. Lost points: short README, 1 of 3 tools barely described, short summary.
How quality is graded
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "tanbopiao-uid-generator-mcp": { "command": "uvx", "args": [ "uid-generator-mcp" ] } }}
Environment variables
This server does not declare environment variables.
Tools3Tool docs quality grade C
All capabilitiesissue_batchtoolissue 1–1000 IDs, increasing in issue order
issue_idtoolissue one unique ID
worker_infotoolshow worker id and bit layout
About
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.
Tools
| tool | purpose |
|---|---|
issue_id | issue one unique ID |
issue_batch | issue 1–1000 IDs, increasing in issue order |
decode | parse an ID back to timestamp / worker / sequence |
worker_info | show worker id and bit layout |
Run
pip install -e .
python run_server.py # stdio transport
Tests
python3 -m unittest discover tests -v
Covers: 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.
Frequently asked questions
What is UID Generator MCP Server?
Snowflake unique-ID issuing MCP server: rollback refusal, worker lease, pure Python.
How do I install UID Generator MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. UID Generator MCP Server runs locally from the PyPI package uid-generator-mcp with the command uvx uid-generator-mcp.
Is UID Generator MCP Server free and open source?
Yes. UID Generator MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does UID Generator MCP Server support remote (HTTP) connections?
No remote endpoint is listed for UID Generator MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does UID Generator MCP Server provide?
UID Generator MCP Server provides 3 tools: issue_batch, issue_id, and worker_info. See the full tool list for descriptions and parameters.
How is UID Generator MCP Server's trust score calculated?
UID Generator MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.