Converts Roman numerals like "MCMXC" to decimal numbers (1990). Use via MCP in Cursor or Windsurf for instant conversion, or call GET /v1/format/roman-to-number with your Roman numeral. Handles standard notation including subtractive cases (IV=4, IX=9). Perfect for processing historical data or educational applications where AI agents need accurate Roman numeral parsing.
curl "https://tinyfn.io/v1/format/roman-to-number" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/format/roman-to-number', {
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-to-number',
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"
}
}
}
}
Install TinyFn's MCP server in your AI editor, then ask your agent to convert Roman numerals. It'll use the roman-to-number tool automatically for accurate results.
Standard Roman numerals including subtractive notation: I, V, X, L, C, D, M and combinations like IV (4), IX (9), XL (40), XC (90), CD (400), CM (900).
The tool returns an error for malformed input like 'IIII' (should be IV) or 'VV' (invalid pattern). It validates proper Roman numeral structure.
Yes, it converts numerals up to 3999 (MMMCMXCIX), which covers the standard Roman numeral range used in most applications.
This tool provides deterministic conversion with guaranteed accuracy, while AI models might hallucinate incorrect conversions for complex numerals.
Get your free API key and start using Roman To Number in seconds.
Get Free API Key