Calculate standard deviation for datasets with guaranteed mathematical accuracy. Use via MCP in Cursor or Windsurf for data analysis tasks, or call GET /v1/stats/stddev directly. Pass arrays of numbers and get precise population or sample standard deviation. No floating-point errors or approximations—just correct statistical computation every time.
curl "https://tinyfn.io/v1/stats/stddev" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/stats/stddev', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/stats/stddev',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's statistics tools:
{
"mcpServers": {
"tinyfn-stats": {
"url": "https://tinyfn.io/mcp/stats",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Call the stddev tool with your dataset array. Most MCP-enabled editors like Cursor and Windsurf will handle the function call automatically when you ask for standard deviation calculations.
Population standard deviation divides by N (total count), while sample standard deviation divides by N-1 (degrees of freedom). Specify which type you need when calling the endpoint.
Yes, TinyFn uses deterministic algorithms that avoid floating-point accumulation errors common in spreadsheet calculations or basic programming implementations.
Send JSON arrays of numbers via GET parameters or POST body. The API handles integers, decimals, and scientific notation automatically.
TinyFn provides mathematically identical results but with consistent precision across all platforms, unlike Excel which can vary slightly between versions or systems.
Get your free API key and start using Calculate Stddev in seconds.
Get Free API Key