Converts integers to Roman numeral format with proper classical notation. Access via MCP in Cursor or Windsurf, or call GET /v1/number/roman directly. Pass any positive integer and get back accurate Roman numerals — 42 becomes "XLII", 1994 becomes "MCMXCIV". Supports numbers 1-3999 following standard Roman numeral rules.
curl "https://tinyfn.io/v1/number/roman" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/number/roman', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/number/roman',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's number tools:
{
"mcpServers": {
"tinyfn-number": {
"url": "https://tinyfn.io/mcp/number",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Supports integers from 1 to 3999. Roman numerals traditionally don't represent zero or negative numbers, and numbers above 3999 require extended notation not commonly used.
In Cursor or Claude Code, invoke the to_roman tool with your integer. The AI agent gets the exact Roman numeral without guessing — no more hallucinated "IIII" instead of "IV".
Yes, uses proper classical rules: IV (4), IX (9), XL (40), XC (90), CD (400), CM (900). No invalid combinations like IC or XM.
Returns an error for numbers outside the 1-3999 range. Roman numerals don't represent zero, and numbers above 3999 require special notation.
Each API call handles one number. For batch processing, make multiple calls or use the MCP tool iteratively within your AI workflow.