Validation Utilities

Validate Password Strength

Evaluates password strength using industry-standard criteria like length, character diversity, and common pattern detection. Access via MCP in Cursor or Windsurf, or call GET /v1/validate/password-strength with your password string. Returns a strength score (weak/medium/strong) plus specific recommendations. Uses deterministic rules, not probabilistic guessing.

API Endpoint

GET /v1/validate/password-strength

Code Examples

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

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

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

Learn more about MCP setup →

FAQ

What criteria does the password strength validator check?

Checks length, uppercase/lowercase letters, numbers, special characters, common patterns, dictionary words, and sequential characters. Returns specific feedback on missing requirements.

How can I integrate password validation into my MCP workflow?

Call the validate_password_strength tool from Claude Code or Cursor during user registration flows. The tool returns structured feedback you can display to users immediately.

Does it detect common passwords like '123456' or 'password'?

Yes, it checks against common password lists and detects obvious patterns like sequential numbers, repeated characters, and keyboard walks (qwerty, asdf).

What's the difference between weak, medium, and strong ratings?

Weak: fails multiple criteria (short, no diversity). Medium: meets basic requirements but has weaknesses. Strong: exceeds minimum length with good character diversity and no common patterns.

Can I customize the strength requirements via the API?

The endpoint uses fixed industry-standard rules for consistency. It returns detailed feedback so you can apply your own business logic to the results.

Try Validate Password Strength Now

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

Get Free API Key