Generates time-ordered UUID v7 identifiers that sort chronologically by creation time. Access via MCP in Cursor or Windsurf, or call GET /v1/generate/uuid/v7 directly. Returns format like 01234567-89ab-7cde-f012-3456789abcde where the first 48 bits encode millisecond timestamp. Perfect for database primary keys that need natural ordering.
curl "https://tinyfn.io/v1/generate/uuid/v7" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/generate/uuid/v7', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/generate/uuid/v7',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's generator tools:
{
"mcpServers": {
"tinyfn-generator": {
"url": "https://tinyfn.io/mcp/generator",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
UUID v4 is purely random while v7 embeds a timestamp in the first 48 bits, making v7s naturally sort by creation time. This eliminates database index fragmentation issues common with random UUIDs.
Use the MCP tool in Cursor, Claude Code, or other supported editors. The agent can generate time-ordered IDs for database records, ensuring chronological sorting without additional timestamp columns.
Yes, v7 combines millisecond timestamp with random bits and optional node information. Even if generated simultaneously on different machines, the random portion ensures uniqueness.
Yes, the first 48 bits represent Unix timestamp in milliseconds. You can decode this to get the exact creation time, making v7s useful for time-based queries.
UUID v7 reduces B-tree index fragmentation because new records append to the end rather than inserting randomly. This improves insert performance and reduces storage overhead in most databases.
Get your free API key and start using Generate Uuid V7 in seconds.
Get Free API Key