Converts integers to Roman numeral format with proper formatting rules. Access via MCP in Cursor or Windsurf, or call GET /v1/format/roman with a number parameter. Returns "MCMXC" for 1990, handles 1-3999 range. Perfect for generating document section numbers, historical dates, or UI formatting where Roman numerals add classical styling.
curl "https://tinyfn.io/v1/format/roman" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/format/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/format/roman',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's formatting tools:
{
"mcpServers": {
"tinyfn-format": {
"url": "https://tinyfn.io/mcp/format",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Supports integers from 1 to 3999. Numbers outside this range aren't supported since traditional Roman numerals don't have standard representations for zero, negatives, or numbers above 3999.
Call the number_to_roman tool with your integer. The MCP tool handles the conversion automatically and returns properly formatted Roman numerals following traditional rules.
Yes, it uses standard subtractive notation. 4 becomes IV, 9 becomes IX, 40 becomes XL, 90 becomes XC, 400 becomes CD, and 900 becomes CM.
The tool converts one number per call. For batch operations, make multiple API calls or use the MCP tool iteratively in your AI coding assistant.
Returns uppercase Roman numerals as a plain string. For example: 2024 returns "MMXXIV", 500 returns "D", 1776 returns "MDCCLXXVI".
Get your free API key and start using Number To Roman in seconds.
Get Free API Key