UUID Generator
STDIOA simple MCP server that provides timestamp-based UUIDs when called by LLMs.
A simple MCP server that provides timestamp-based UUIDs when called by LLMs.
A simple Model Context Protocol (MCP) server that provides timestamp-based UUIDs whenever it's called by an LLM.
generateUuid
# Install dependencies npm install # Build the project npm run build
You can run the server directly:
npm start
To integrate with Claude Desktop, add this to your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
{ "mcpServers": { "uuid-provider": { "command": "node", "args": ["/absolute/path/to/uuid-mcp/build/index.js"] } } }
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 to see the UUID generation tool available.
This server uses the official uuid
package to generate UUID v7 identifiers. UUID v7 is specifically designed to be timestamp-based while maintaining strong uniqueness guarantees:
This approach is more reliable than custom UUID implementations and eliminates the potential for duplicates even under high load.
@modelcontextprotocol/sdk
: For MCP server implementationuuid
: For RFC-compliant UUID generationWhen 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.