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.
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)
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"
}
}
}
}
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.
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.
Make separate API calls for each password. This ensures each password uses fresh entropy rather than deriving multiple passwords from a single seed.
Standard sets include uppercase, lowercase, numbers, and symbols. You can typically specify which sets to include or exclude based on your security policy requirements.
12-16 characters for user accounts, 20+ for service accounts, 32+ for API keys. Longer passwords exponentially increase brute-force resistance.
Get your free API key and start using Generate Password in seconds.
Get Free API Key