Unit Converter MCP Server
A Model Context Protocol server for converting between different units. This server enables LLMs to perform accurate unit conversions across multiple measurement categories.
Available Tools
convert- Converts between different units.expression(string, required): Expression to be converted in the format "value from_unit to to_unit" (e.g., "5.2 m to km" or "500 hz to khz")
Supported Unit Categories
The converter supports the following categories of units:
- Length: m, km, cm, inch, ft, mile, etc.
- Area: sqm, sqkm, sqft, acre, ha, etc.
- Volume: m3, l, ml, gal, qt, pt, cup, floz, etc.
- Mass/Weight: kg, g, mg, lb, oz, t, st, etc.
- Temperature: celsius (c), fahrenheit (f), kelvin (k)
- Energy: j, kj, cal, kcal, wh, kwh, btu, etc.
- Power: w, kw, mw, hp, btu_h, etc.
- Pressure: pa, kpa, bar, atm, psi, mmhg, etc.
- Speed: m/s, km/h, mph, ft/s, knot, etc.
- Time: s, ms, min, h, day, week, month, year, etc.
- Digital Storage: B, KB, MB, GB, bit, Kb, Mb, Gb, etc.
- Fuel Economy: km/l, mpg, l/100km, etc.
- Data Transfer Rate: bit/s, kbit/s, mbit/s, B/s, MB/s, etc.
Installation
Using uv (recommended)
When using uv no specific installation is needed. We will
use uvx to directly run mcp-server-converter.
curl -LsSf https://astral.sh/uv/install.sh | sh
Using PIP
Alternatively you can install mcp-server-converter via pip:
pip install mcp-server-converter
After installation, you can run it as a script using:
python -m mcp_server_converter
Configuration
Using uv (recommended)
Add this to your MCP client settings:
"mcpServers": {
"converter": {
"command": "uvx",
"args": ["mcp-server-converter"]
}
}
Using PIP
Alternatively add this to your MCP client settings:
"mcpServers": {
"converter": {
"command": "python3",
"args": ["-m", "mcp_server_converter"]
}
}
Supported Unit Conversions
Length Units
- Meters (m, meter, meters)
- Kilometers (km, kilometer, kilometers)
- Centimeters (cm, centimeter, centimeters)
- Inches (in, inch, inches)
- Feet (ft, foot, feet)
- Miles (mi, mile, miles)
Frequency Units
- Hertz (hz, hertz)
- Kilohertz (khz, kilohertz)
- Megahertz (mhz, megahertz)
- Gigahertz (ghz, gigahertz)
Examples
Length Conversions
- Convert meters to kilometers:
5 m to km→0.005 - Convert miles to kilometers:
1 mile to km→1.60934 - Convert feet to meters:
10 ft to m→3.048 - Convert inches to centimeters:
12 in to cm→30.48
Frequency Conversions
- Convert hertz to kilohertz:
500 hz to khz→0.5 - Convert kilohertz to megahertz:
1500 khz to mhz→1.5 - Convert hertz to megahertz:
2000000 hz to mhz→2 - Convert gigahertz to megahertz:
2.5 ghz to mhz→2500
License
mcp-server-converter is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
Metadata
Release files for mcp-server-converter 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_server_converter-0.2.0.tar.gz | 14.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_server_converter-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.0 kB
Release files / mcp_server_converter-0.2.0.tar.gz
| Download URL | mcp_server_converter-0.2.0.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
324ee708c1f1fa4b0613ecc8e471a128ff4e4d0aa755173b30e6d6995213aae7
|
|
BLAKE2b-256 checksum How to use checksums |
8fcc91740341a9019419b1d06060d5c2fd66d145966d02abc3219f688f3307b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / mcp_server_converter-0.2.0-py3-none-any.whl
| Download URL | mcp_server_converter-0.2.0-py3-none-any.whl |
|---|---|
| Size | 21.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f9f589eeff7d91f50b4f22dc4602179248011f9c9e5bd18f6abb81de59fd6ec
|
|
BLAKE2b-256 checksum How to use checksums |
2c85ba60443e3c9f9b5fc48f82ceec27892d67d7701266bac25ca4146688e800
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for mcp-server-converter 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.