Validates whether text contains only letters and numbers with no spaces or special characters. Use via MCP in Cursor or Windsurf, or call GET /v1/validate/alphanumeric with your text. Returns true for "abc123" but false for "abc-123" or "hello world". Perfect for usernames, product codes, and data cleaning workflows.
curl "https://tinyfn.io/v1/validate/alphanumeric" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/validate/alphanumeric', {
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/alphanumeric',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
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"
}
}
}
}
Only letters (a-z, A-Z) and digits (0-9) are allowed. Spaces, hyphens, underscores, and all special characters return false.
Call the validate_alphanumeric tool from Claude Code, Cursor, or other MCP clients. Pass your text string and get an immediate true/false response.
No, it strictly checks ASCII letters and digits only. Unicode letters like é or ñ will return false.
Empty strings return false since they contain no alphanumeric characters. Null values are typically rejected at the API level.
Standard alphanumeric excludes spaces entirely. If you need space validation, use a different validation tool or check for whitespace separately.
Get your free API key and start using Validate Alphanumeric in seconds.
Get Free API Key