@dennisk2025/number-to-words-converter
v1.0.0
Published
Converts an integer number (positive or negative, up to the trillions) into its English words representation. Useful for check writing, educational tools, accessibility, or text generation.
Readme
number-to-words-converter
Converts an integer number (positive or negative, up to the trillions) into its English words representation. Useful for check writing, educational tools, accessibility, or text generation.
Installation
Install globally with npm:
npm install -g @dennisk2025/number-to-words-converterOr run directly using npx:
npx @dennisk2025/number-to-words-converterAdding to Claude Desktop
Add this block to your Claude Desktop config file at:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"number-words": {
"command": "npx",
"args": ["@dennisk2025/number-to-words-converter"]
}
}
}After saving and restarting Claude Desktop, the server and its tools will be available automatically.
Usage Examples
Tool: number_to_words
Description: Takes an integer and returns its equivalent written out in English words.
Input Parameters:
number(integer): The integer to convert, between -1,000,000,000,000 and 1,000,000,000,000 (inclusive).
Example Calls:
Input
{
"name": "number_to_words",
"arguments": { "number": 1234567 }
}Output
{
"result": "one million two hundred thirty-four thousand five hundred sixty-seven"
}For Negative Numbers
Input
{
"name": "number_to_words",
"arguments": { "number": -5029 }
}Output
{
"result": "minus five thousand twenty-nine"
}Available Tools
number_to_words
- Description: Takes an integer and returns its equivalent written out in English words.
- Parameters:
number(integer, required): The integer to convert, between -1,000,000,000,000 and 1,000,000,000,000 (inclusive).
Error Handling
- Input validation errors and out-of-range numbers return clear error messages.
- Input must be an integer within the specified range.
