Generator Utilities

Generate Uuid

Creates cryptographically secure UUID4 identifiers on demand. Access via MCP in Cursor or Windsurf for instant UUID generation, or call GET /v1/generate/uuid directly. Returns standard 36-character format like "550e8400-e29b-41d4-a716-446655440000". Supports bulk generation and guarantees uniqueness through proper randomization.

API Endpoint

GET /v1/generate/uuid

Code Examples

curl "https://tinyfn.io/v1/generate/uuid" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/generate/uuid', {
  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',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

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"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How do I generate multiple UUIDs at once?

Add a count parameter to the request. The API supports bulk generation up to reasonable limits, returning an array of UUIDs instead of a single string.

What UUID version does this generate?

Generates UUID4 (random) identifiers using cryptographically secure randomization. These are the most common type for unique identifiers in applications.

Can I use this in MCP-enabled AI coding assistants?

Yes, invoke the generate_uuid tool directly in Cursor, Windsurf, or other MCP clients. Perfect for generating database IDs, API keys, or session tokens during development.

Are the generated UUIDs guaranteed unique?

UUID4 has astronomical collision probability (1 in 2^122). While not mathematically guaranteed, the chance of duplicates is negligible for practical purposes.

What format do the UUIDs return in?

Standard hyphenated format: 8-4-4-4-12 characters (36 total). Example: "f47ac10b-58cc-4372-a567-0e02b2c3d479". No brackets or URN prefixes.

Try Generate Uuid Now

Get your free API key and start using Generate Uuid in seconds.

Get Free API Key