Password Utilities

Generate Password

Creates cryptographically secure random passwords with customizable length and character sets. Access via MCP in Cursor, Claude Code, or other AI editors, or call GET /v1/password/generate directly. Returns immediately usable passwords like "K7#mP9$nR2@vX8". Uses system CSPRNG for true randomness, not pseudorandom algorithms.

API Endpoint

GET /v1/password/generate

Code Examples

curl "https://tinyfn.io/v1/password/generate" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/password/generate', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/password/generate',
    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 password tools:

{
  "mcpServers": {
    "tinyfn-password": {
      "url": "https://tinyfn.io/mcp/password",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How do I generate a password with specific requirements in MCP?

Call the generate_password tool with length and character set parameters. Most MCP clients in Cursor or Claude Code let you specify length, include/exclude symbols, numbers, and case requirements.

What makes TinyFn passwords cryptographically secure?

Uses the system's cryptographically secure pseudorandom number generator (CSPRNG), not Math.random() or weak algorithms. Each character is independently selected from the full character space.

Can I generate multiple passwords at once?

Make separate API calls for each password. This ensures each password uses fresh entropy rather than deriving multiple passwords from a single seed.

What character sets are supported for password generation?

Standard sets include uppercase, lowercase, numbers, and symbols. You can typically specify which sets to include or exclude based on your security policy requirements.

How long should passwords be for different use cases?

12-16 characters for user accounts, 20+ for service accounts, 32+ for API keys. Longer passwords exponentially increase brute-force resistance.

Try Generate Password Now

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

Get Free API Key