- Home
- MCP servers
- Unit Converter
Unit Converter
- python
6
GitHub Stars
python
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"zazencodes-unit-converter-mcp": {
"command": "uvx",
"args": [
"unit-converter-mcp"
]
}
}
}The Unit Converter MCP provides a set of precise unit-conversion utilities you can access from an MCP client. It lets you convert temperatures, lengths, masses, volumes, times, energies, areas, and more, enabling you to perform quick, accurate calculations within your workflows and tools that integrate MCP servers.
How to use
You connect to the Unit Converter MCP with an MCP client and send requests for conversions. Start by choosing the type of measurement you want to convert, pick the source unit and the target unit, and then supply the numeric value. The MCP handles the rest and returns the converted value. You can chain multiple conversions in a single session to build complex calculations from different unit types.
How to install
Prerequisites: you need a supported environment for MCP clients, typically Node.js for tooling and the MCP runtime. Ensure you have Node and npm or uvx installed as described below.
Step 1: Install the MCP client tooling if you do not already have it.
Step 2: Configure an MCP server connection using one of the available options shown here.
Configuration and running notes
Two ready-to-use MCP connection options are provided for this Unit Converter server. You can run the MCP either via a direct runtime command or through the UVX runtime with a path to the server package.
Remote HTTP connection (default/recommended for centralized MCP management): you can reach the server via a remote endpoint and standard MCP request path. The following STDIO option is available as an alternative if you prefer local execution.
Development and tooling details
The Unit Converter MCP exposes a set of conversion tools you can invoke to perform specific unit conversions. Each tool is designed to handle a particular measurement domain, from temperature to density to speed.
Security considerations
Treat MCP endpoints as you would any external service: use trusted transports, manage access with appropriate credentials, and validate inputs to prevent malformed requests from causing issues in conversions.
Troubleshooting tips
If a conversion fails, ensure your input value is numeric, the from_unit and to_unit strings match the supported unit identifiers, and the MCP server is reachable from your client. Check the active connection, and review any error messages returned by the MCP for clues.
Notes
The Unit Converter MCP supports a broad set of units across multiple domains, including temperature, length, mass, volume, time, energy, area, and more. Use the provided tools to list supported units or to perform direct conversions.
Available tools
convert_temperature
Convert temperature between Celsius, Fahrenheit, and Kelvin, using a numeric value and source/target units.
convert_angle
Convert angle between degrees, radians, arcminutes, arcseconds, turns, and gons.
convert_length
Convert length/distance between metric and imperial units such as meter, kilometer, foot, inch, and mile.
convert_area
Convert area between units like square meter, hectare, acre, square foot, and more.
convert_mass
Convert mass between units including kilogram, gram, pound, ounce, tonne, carat, and stone.
convert_volume
Convert volume between units such as liter, milliliter, gallon, quart, pint, cup, and fluid ounce.
convert_time
Convert time across seconds, minutes, hours, days, years, and other time units.
convert_energy
Convert energy between units like joule, kilowatt hour, calorie, and BTU, plus wider mechanical and electrical units.
convert_force
Convert force between units such as newton, pound-force, and kilogram-force.
convert_pressure
Convert pressure between units like pascal, bar, psi, atmosphere, and related units.
convert_power
Convert power between units including watt, horsepower, and other common power units.
convert_speed
Convert speed between units such as meters per second, kilometers per hour, knots, mph, and more.
convert_computer_data
Convert computer storage between bits, bytes, kilobytes, megabytes, gigabytes, terabytes, and larger units.
convert_density
Convert density between units like kilograms per liter, grams per cubic centimeter, pounds per gallon, and related measures.
list_supported_units
List all supported units for each conversion type to discover available options.