# Unit Converter MCP
Unit conversion utilities that provide precise conversions between different units of measurement.
## đź”§ Tools
| Tool | Purpose | Supported Units |
| ----------------------- | ------------------------------------------ | --------------- |
| `list_supported_units` | List all supported units for each type | All conversion types |
| `convert_temperature` | Convert temperature between units | Celsius, Fahrenheit, Kelvin |
| `convert_angle` | Convert angle between units | Degrees, Radians, Arcmin, Arcsec, Turns, Gons |
| `convert_length` | Convert length/distance between units | Meter, Kilometer, Foot, Inch, Mile, etc. |
| `convert_area` | Convert area between units | Square Meter, Acre, Hectare, Square Foot, etc. |
| `convert_mass` | Convert mass between units | Kilogram, Gram, Pound, Ounce, Ton |
| `convert_volume` | Convert volume between units | Liter, Gallon, Cup, Fluid Ounce, etc. |
| `convert_time` | Convert time between units | Seconds, Minutes, Hours, Days, Years, etc. |
| `convert_energy` | Convert energy between units | Joule, Kilowatt Hour, Calorie, BTU, etc. |
| `convert_force` | Convert force between units | Newton, Pound Force, Kilogram Force, etc. |
| `convert_pressure` | Convert pressure between units | Pascal, Bar, PSI, Atmosphere, etc. |
| `convert_power` | Convert power between units | Watt, Horsepower, BTU per hour, etc. |
| `convert_speed` | Convert speed between units | m/s, mph, km/h, knots, Mach, etc. |
| `convert_computer_data` | Convert computer storage between units | Bytes, KB, MB, GB, TB, etc. |
| `convert_density` | Convert density between units | kg/L, g/cmÂł, lb/gal, g/L, etc. |
## đź”§ Examples
Here are some example prompts to get you started:
```text
convert 0 celsius to fahrenheit
what's my weight in kg? I'm 205lbs
convert 3.14159 radians to degrees
convert the speed of a snail to Mach
how many floppy disks do you need to store 1TB?
how much area would 1,000 mattresses take up in acres
how many non-stop days would it take to watch Game of Thrones?
```
## đź”§ Setup
### Claude Desktop
Add this to your Claude Desktop configuration file:
**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows**: `%APPDATA%/Claude/claude_desktop_config.json`
```json
{
"mcpServers": {
"unit-converter": {
"command": "uvx",
"args": ["unit-converter-mcp"]
}
}
}
```
## đź“‹ Tool Reference
### `convert_temperature`
Convert temperature between Celsius, Fahrenheit, and Kelvin.
**Parameters:**
- `value` (float): Temperature value to convert
- `from_unit` (str): Source unit (celsius, fahrenheit, kelvin)
- `to_unit` (str): Target unit (celsius, fahrenheit, kelvin)
**Example:**
```json
{
"name": "convert_temperature",
"arguments": {
"value": 100,
"from_unit": "celsius",
"to_unit": "fahrenheit"
}
}
```
### `convert_length`
Convert length between various units including metric and imperial systems.
**Parameters:**
- `value` (float): Length value to convert
- `from_unit` (str): Source unit (meter, kilometer, centimeter, millimeter, inch, foot, yard, mile)
- `to_unit` (str): Target unit (meter, kilometer, centimeter, millimeter, inch, foot, yard, mile)
**Example:**
```json
{
"name": "convert_length",
"arguments": {
"value": 1,
"from_unit": "meter",
"to_unit": "foot"
}
}
```
### `convert_mass`
Convert mass between various units including metric, imperial, and specialized units.
**Parameters:**
- `value` (float): Mass value to convert
- `from_unit` (str): Source unit (kilogram, gram, pound, ounce, tonne, carat, stone, etc.)
- `to_unit` (str): Target unit (kilogram, gram, pound, ounce, tonne, carat, stone, etc.)
**Supported Units:**
- Metric: kilogram, gram, milligram, microgram, nanogram, picogram, femtogram, decagram, hectogram, tonne, kilotonne, megatonne
- Imperial: pound, ounce, stone, short ton (US), long ton (UK)
- Precious metals: troy ounce, carat
- Historical: grain
**Example:**
```json
{
"name": "convert_mass",
"arguments": {
"value": 1,
"from_unit": "kilogram",
"to_unit": "pound"
}
}
```
### `convert_volume`
Convert volume between various units including metric and imperial systems.
**Parameters:**
- `value` (float): Volume value to convert
- `from_unit` (str): Source unit (liter, milliliter, gallon, quart, pint, cup, fluid_ounce)
- `to_unit` (str): Target unit (liter, milliliter, gallon, quart, pint, cup, fluid_ounce)
**Example:**
```json
{
"name": "convert_volume",
"arguments": {
"value": 1,
"from_unit": "liter",
"to_unit": "gallon"
}
}
```
### `convert_time`
Convert time between various units from sub-seconds to millennia.
**Parameters:**
- `value` (float): Time value to convert
- `from_unit` (str): Source unit (seconds, minutes, hours, days, weeks, months, years, etc.)
- `to_unit` (str): Target unit (seconds, minutes, hours, days, weeks, months, years, etc.)
**Example:**
```json
{
"name": "convert_time",
"arguments": {
"value": 1,
"from_unit": "hours",
"to_unit": "minutes"
}
}
```
### `convert_energy`
Convert energy between various units including metric, electrical, heat, nutrition, and particle physics systems.
**Parameters:**
- `value` (float): Energy value to convert
- `from_unit` (str): Source unit (joule, kilowatt hour, calorie, Btu, etc.)
- `to_unit` (str): Target unit (joule, kilowatt hour, calorie, Btu, etc.)
**Supported Units:**
- SI and metric prefixes: joule, kilojoule, megajoule, gigajoule, terajoule, petajoule, exajoule
- Electrical-energy units: watt hour, kilowatt hour, megawatt hour, gigawatt hour, terawatt hour
- Heat / nutrition: Btu, calorie, kilocalorie, therm
- Mechanical & particle-physics units: foot‑pound force, inch‑pound force, erg, electron volt
**Example:**
```json
{
"name": "convert_energy",
"arguments": {
"value": 1,
"from_unit": "kilowatt hour",
"to_unit": "joule"
}
}
```
### `convert_force`
Convert force between various units including metric and imperial systems.
**Parameters:**
- `value` (float): Force value to convert
- `from_unit` (str): Source unit (newtons, pounds force, kilograms force, dynes, kilonewtons, kips, etc.)
- `to_unit` (str): Target unit (newtons, pounds force, kilograms force, dynes, kilonewtons, kips, etc.)
**Supported Units:**
- Metric: newtons, kilonewtons, meganewtons, dynes
- Imperial: pounds force, kips
- Other: kilograms force, tonnes force, long tons force, short tons force
**Example:**
```json
{
"name": "convert_force",
"arguments": {
"value": 100,
"from_unit": "newtons",
"to_unit": "pounds force"
}
}
```
### `convert_density`
Convert density between various units including metric, imperial, and specialized systems.
**Parameters:**
- `value` (float): Density value to convert
- `from_unit` (str): Source unit (kilograms per liter, grams per cubic centimeter, pounds per gallon, etc.)
- `to_unit` (str): Target unit (kilograms per liter, grams per cubic centimeter, pounds per gallon, etc.)
**Supported Units:**
- Grain-based hardness units: grains per gallon (UK), grains per gallon (US), grains per gallon
- Metric staples: grams per cubic centimeter, grams per liter, kilograms per liter, kilograms per cubic meter, milligrams per liter
- Fluid-ounce units: ounces per gallon (UK), ounces per gallon (US), ounces per gallon
- Pound-based units: pounds per cubic foot, pounds per gallon (UK), pounds per gallon (US), pounds per gallon
- Tonne/ton bulk-density units: tonnes per cubic meter, tons per cubic yard (UK), tons per cubic yard (US), tons per cubic yard
**Example:**
```json
{
"name": "convert_density",
"arguments": {
"value": 1,
"from_unit": "kilograms per liter",
"to_unit": "grams per cubic centimeter"
}
}
```
### `list_supported_units`
List all supported units for each conversion type.
**Parameters:** None
**Example:**
```json
{
"name": "list_supported_units",
"arguments": {}
}
```
### `convert_angle`
Convert angle between degrees, radians, and other angular units.
**Parameters:**
- `value` (float): Angle value to convert
- `from_unit` (str): Source unit (degrees, radians, arcmin, arcsec, turns, gons)
- `to_unit` (str): Target unit (degrees, radians, arcmin, arcsec, turns, gons)
**Example:**
```json
{
"name": "convert_angle",
"arguments": {
"value": 3.14159,
"from_unit": "radians",
"to_unit": "degrees"
}
}
```
### `convert_area`
Convert area between various units including metric and imperial systems.
**Parameters:**
- `value` (float): Area value to convert
- `from_unit` (str): Source unit (acre, are, hectare, square centimeter, square foot, square inch, square kilometer, square meter, square mile, square millimeter, square yard)
- `to_unit` (str): Target unit (acre, are, hectare, square centimeter, square foot, square inch, square kilometer, square meter, square mile, square millimeter, square yard)
**Example:**
```json
{
"name": "convert_area",
"arguments": {
"value": 1,
"from_unit": "hectare",
"to_unit": "acre"
}
}
```
### `convert_computer_data`
Convert computer storage between various units from bits to exabytes.
**Parameters:**
- `value` (float): Computer storage value to convert
- `from_unit` (str): Source unit (bits, bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes, exabytes)
- `to_unit` (str): Target unit (bits, bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes, exabytes)
**Example:**
```json
{
"name": "convert_computer_data",
"arguments": {
"value": 1,
"from_unit": "gigabytes",
"to_unit": "megabytes"
}
}
```
### `convert_pressure`
Convert pressure between various units including metric, imperial, and specialized systems.
**Parameters:**
- `value` (float): Pressure value to convert
- `from_unit` (str): Source unit (pascal, hectopascal, kilopascal, megapascal, bar, atmosphere, centimeters of water, inches of water, feet of water, meters of water, millimeters of mercury, inches of mercury, kilogram force per square centimeter, newtons per square centimeter, newtons per square millimeter, psi, psf)
- `to_unit` (str): Target unit (pascal, hectopascal, kilopascal, megapascal, bar, atmosphere, centimeters of water, inches of water, feet of water, meters of water, millimeters of mercury, inches of mercury, kilogram force per square centimeter, newtons per square centimeter, newtons per square millimeter, psi, psf)
**Example:**
```json
{
"name": "convert_pressure",
"arguments": {
"value": 1,
"from_unit": "atmosphere",
"to_unit": "psi"
}
}
```
### `convert_power`
Convert power between various units including mechanical, electrical, and thermal systems.
**Parameters:**
- `value` (float): Power value to convert
- `from_unit` (str): Source unit (Btu per hour, foot pound‑force per second, ton of refrigeration, calorie per hour, kilocalorie per hour, horsepower, horsepower (metric), kilogram‑force meter per second, watt, kilowatt, megawatt, gigawatt, terawatt, petawatt)
- `to_unit` (str): Target unit (Btu per hour, foot pound‑force per second, ton of refrigeration, calorie per hour, kilocalorie per hour, horsepower, horsepower (metric), kilogram‑force meter per second, watt, kilowatt, megawatt, gigawatt, terawatt, petawatt)
**Example:**
```json
{
"name": "convert_power",
"arguments": {
"value": 1,
"from_unit": "horsepower",
"to_unit": "kilowatt"
}
}
```
### `convert_speed`
Convert speed between various units including metric, imperial, and specialized systems.
**Parameters:**
- `value` (float): Speed value to convert
- `from_unit` (str): Source unit (centimeters per minute, centimeters per second, feet per hour, feet per minute, feet per second, inches per minute, inches per second, kilometers per hour, kilometers per second, knots, Mach (ISA sea level), speed of sound, meters per hour, meters per minute, meters per second, miles per hour, miles per minute, miles per second, yards per hour, yards per minute, yards per second, speed of light)
- `to_unit` (str): Target unit (centimeters per minute, centimeters per second, feet per hour, feet per minute, feet per second, inches per minute, inches per second, kilometers per hour, kilometers per second, knots, Mach (ISA sea level), speed of sound, meters per hour, meters per minute, meters per second, miles per hour, miles per minute, miles per second, yards per hour, yards per minute, yards per second, speed of light)
**Example:**
```json
{
"name": "convert_speed",
"arguments": {
"value": 60,
"from_unit": "miles per hour",
"to_unit": "meters per second"
}
}
```
## 🛠️ Development
### Prerequisites
- Python 3.10+
- [uv](https://docs.astral.sh/uv/) package manager
### Setup
```bash
# Clone the repository
git clone https://github.com/zazencodes/unit-converter-mcp
cd unit-converter-mcp
# Install dependencies
uv sync --dev
# Run tests
uv run pytest
# Run linting
uv run ruff check --fix
uv run ruff format
# Type checking
uv run mypy src/
```
### MCP Client Config
```json
{
"mcpServers": {
"unit-converter-dev": {
"command": "uv",
"args": [
"--directory",
"<path_to_your_repo>/unit-converter-mcp",
"run",
"unit-converter-mcp"
]
}
}
}
```
**Note:** Replace `<path_to_your_repo>/unit-converter-mcp` with the absolute path to your cloned repository.
### Building
```bash
# Build package
uv build
# Test installation
uv run --with dist/*.whl unit-converter-mcp
```
### Release Checklist
1. **Update Version:**
- Increment the `version` number in `pyproject.toml` and `src/__init__.py`.
2. **Update Changelog:**
- Add a new entry in `CHANGELOG.md` for the release.
- Draft notes with coding agent using `git diff` context.
```
Update the @CHANGELOG.md for the latest release.
List all significant changes, bug fixes, and new features.
Here's the git diff:
[GIT_DIFF]
```
- Commit along with any other pending changes.
3. **Create GitHub Release:**
- Draft a new release on the GitHub UI.
- Tag release using UI.
- The GitHub workflow will automatically build and publish the package to PyPI.
## Testing with MCP Inspector
For exploring and/or developing this server, use the MCP Inspector npm utility:
```bash
# Install MCP Inspector
npm install -g @modelcontextprotocol/inspector
# Run local development server with the inspector
npx @modelcontextprotocol/inspector uv run unit-converter-mcp
# Run PyPI production server with the inspector
npx @modelcontextprotocol/inspector uvx unit-converter-mcp
```
## 📝 License
MIT License - see [LICENSE](LICENSE) file for details.
## 🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Raw data
{
"_id": null,
"home_page": null,
"name": "unit-converter-mcp",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "conversion, length, mcp, model-context-protocol, temperature, unit, volume, weight",
"author": null,
"author_email": "Alexander Galea <alex@galea.dev>",
"download_url": "https://files.pythonhosted.org/packages/af/0d/58013aa262f9ae54b91c59e3023837b4545b1697ea895b52db5e1e78deff/unit_converter_mcp-0.1.2.tar.gz",
"platform": null,
"description": "# Unit Converter MCP\n\nUnit conversion utilities that provide precise conversions between different units of measurement.\n\n## \ud83d\udd27 Tools\n\n| Tool | Purpose | Supported Units |\n| ----------------------- | ------------------------------------------ | --------------- |\n| `list_supported_units` | List all supported units for each type | All conversion types |\n| `convert_temperature` | Convert temperature between units | Celsius, Fahrenheit, Kelvin |\n| `convert_angle` | Convert angle between units | Degrees, Radians, Arcmin, Arcsec, Turns, Gons |\n| `convert_length` | Convert length/distance between units | Meter, Kilometer, Foot, Inch, Mile, etc. |\n| `convert_area` | Convert area between units | Square Meter, Acre, Hectare, Square Foot, etc. |\n| `convert_mass` | Convert mass between units | Kilogram, Gram, Pound, Ounce, Ton |\n| `convert_volume` | Convert volume between units | Liter, Gallon, Cup, Fluid Ounce, etc. |\n| `convert_time` | Convert time between units | Seconds, Minutes, Hours, Days, Years, etc. |\n| `convert_energy` | Convert energy between units | Joule, Kilowatt Hour, Calorie, BTU, etc. |\n| `convert_force` | Convert force between units | Newton, Pound Force, Kilogram Force, etc. |\n| `convert_pressure` | Convert pressure between units | Pascal, Bar, PSI, Atmosphere, etc. |\n| `convert_power` | Convert power between units | Watt, Horsepower, BTU per hour, etc. |\n| `convert_speed` | Convert speed between units | m/s, mph, km/h, knots, Mach, etc. |\n| `convert_computer_data` | Convert computer storage between units | Bytes, KB, MB, GB, TB, etc. |\n| `convert_density` | Convert density between units | kg/L, g/cm\u00b3, lb/gal, g/L, etc. |\n\n## \ud83d\udd27 Examples\n\nHere are some example prompts to get you started:\n\n```text\nconvert 0 celsius to fahrenheit\n\nwhat's my weight in kg? I'm 205lbs\n\nconvert 3.14159 radians to degrees\n\nconvert the speed of a snail to Mach\n\nhow many floppy disks do you need to store 1TB?\n\nhow much area would 1,000 mattresses take up in acres\n\nhow many non-stop days would it take to watch Game of Thrones?\n```\n\n\n## \ud83d\udd27 Setup\n\n### Claude Desktop\n\nAdd this to your Claude Desktop configuration file:\n\n**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json` \n**Windows**: `%APPDATA%/Claude/claude_desktop_config.json`\n\n```json\n{\n \"mcpServers\": {\n \"unit-converter\": {\n \"command\": \"uvx\",\n \"args\": [\"unit-converter-mcp\"]\n }\n }\n}\n```\n\n## \ud83d\udccb Tool Reference\n\n### `convert_temperature`\n\nConvert temperature between Celsius, Fahrenheit, and Kelvin.\n\n**Parameters:**\n- `value` (float): Temperature value to convert\n- `from_unit` (str): Source unit (celsius, fahrenheit, kelvin)\n- `to_unit` (str): Target unit (celsius, fahrenheit, kelvin)\n\n**Example:**\n```json\n{\n \"name\": \"convert_temperature\",\n \"arguments\": {\n \"value\": 100,\n \"from_unit\": \"celsius\",\n \"to_unit\": \"fahrenheit\"\n }\n}\n```\n\n### `convert_length`\n\nConvert length between various units including metric and imperial systems.\n\n**Parameters:**\n- `value` (float): Length value to convert\n- `from_unit` (str): Source unit (meter, kilometer, centimeter, millimeter, inch, foot, yard, mile)\n- `to_unit` (str): Target unit (meter, kilometer, centimeter, millimeter, inch, foot, yard, mile)\n\n**Example:**\n```json\n{\n \"name\": \"convert_length\",\n \"arguments\": {\n \"value\": 1,\n \"from_unit\": \"meter\",\n \"to_unit\": \"foot\"\n }\n}\n```\n\n### `convert_mass`\n\nConvert mass between various units including metric, imperial, and specialized units.\n\n**Parameters:**\n- `value` (float): Mass value to convert\n- `from_unit` (str): Source unit (kilogram, gram, pound, ounce, tonne, carat, stone, etc.)\n- `to_unit` (str): Target unit (kilogram, gram, pound, ounce, tonne, carat, stone, etc.)\n\n**Supported Units:**\n- Metric: kilogram, gram, milligram, microgram, nanogram, picogram, femtogram, decagram, hectogram, tonne, kilotonne, megatonne\n- Imperial: pound, ounce, stone, short ton (US), long ton (UK)\n- Precious metals: troy ounce, carat\n- Historical: grain\n\n**Example:**\n```json\n{\n \"name\": \"convert_mass\",\n \"arguments\": {\n \"value\": 1,\n \"from_unit\": \"kilogram\",\n \"to_unit\": \"pound\"\n }\n}\n```\n\n### `convert_volume`\n\nConvert volume between various units including metric and imperial systems.\n\n**Parameters:**\n- `value` (float): Volume value to convert\n- `from_unit` (str): Source unit (liter, milliliter, gallon, quart, pint, cup, fluid_ounce)\n- `to_unit` (str): Target unit (liter, milliliter, gallon, quart, pint, cup, fluid_ounce)\n\n**Example:**\n```json\n{\n \"name\": \"convert_volume\",\n \"arguments\": {\n \"value\": 1,\n \"from_unit\": \"liter\",\n \"to_unit\": \"gallon\"\n }\n}\n```\n\n### `convert_time`\n\nConvert time between various units from sub-seconds to millennia.\n\n**Parameters:**\n- `value` (float): Time value to convert\n- `from_unit` (str): Source unit (seconds, minutes, hours, days, weeks, months, years, etc.)\n- `to_unit` (str): Target unit (seconds, minutes, hours, days, weeks, months, years, etc.)\n\n**Example:**\n```json\n{\n \"name\": \"convert_time\",\n \"arguments\": {\n \"value\": 1,\n \"from_unit\": \"hours\",\n \"to_unit\": \"minutes\"\n }\n}\n```\n\n### `convert_energy`\n\nConvert energy between various units including metric, electrical, heat, nutrition, and particle physics systems.\n\n**Parameters:**\n- `value` (float): Energy value to convert\n- `from_unit` (str): Source unit (joule, kilowatt hour, calorie, Btu, etc.)\n- `to_unit` (str): Target unit (joule, kilowatt hour, calorie, Btu, etc.)\n\n**Supported Units:**\n- SI and metric prefixes: joule, kilojoule, megajoule, gigajoule, terajoule, petajoule, exajoule\n- Electrical-energy units: watt hour, kilowatt hour, megawatt hour, gigawatt hour, terawatt hour\n- Heat / nutrition: Btu, calorie, kilocalorie, therm\n- Mechanical & particle-physics units: foot\u2011pound force, inch\u2011pound force, erg, electron volt\n\n**Example:**\n```json\n{\n \"name\": \"convert_energy\",\n \"arguments\": {\n \"value\": 1,\n \"from_unit\": \"kilowatt hour\",\n \"to_unit\": \"joule\"\n }\n}\n```\n\n### `convert_force`\n\nConvert force between various units including metric and imperial systems.\n\n**Parameters:**\n- `value` (float): Force value to convert\n- `from_unit` (str): Source unit (newtons, pounds force, kilograms force, dynes, kilonewtons, kips, etc.)\n- `to_unit` (str): Target unit (newtons, pounds force, kilograms force, dynes, kilonewtons, kips, etc.)\n\n**Supported Units:**\n- Metric: newtons, kilonewtons, meganewtons, dynes\n- Imperial: pounds force, kips\n- Other: kilograms force, tonnes force, long tons force, short tons force\n\n**Example:**\n```json\n{\n \"name\": \"convert_force\",\n \"arguments\": {\n \"value\": 100,\n \"from_unit\": \"newtons\",\n \"to_unit\": \"pounds force\"\n }\n}\n```\n\n### `convert_density`\n\nConvert density between various units including metric, imperial, and specialized systems.\n\n**Parameters:**\n- `value` (float): Density value to convert\n- `from_unit` (str): Source unit (kilograms per liter, grams per cubic centimeter, pounds per gallon, etc.)\n- `to_unit` (str): Target unit (kilograms per liter, grams per cubic centimeter, pounds per gallon, etc.)\n\n**Supported Units:**\n- Grain-based hardness units: grains per gallon (UK), grains per gallon (US), grains per gallon\n- Metric staples: grams per cubic centimeter, grams per liter, kilograms per liter, kilograms per cubic meter, milligrams per liter\n- Fluid-ounce units: ounces per gallon (UK), ounces per gallon (US), ounces per gallon\n- Pound-based units: pounds per cubic foot, pounds per gallon (UK), pounds per gallon (US), pounds per gallon\n- Tonne/ton bulk-density units: tonnes per cubic meter, tons per cubic yard (UK), tons per cubic yard (US), tons per cubic yard\n\n**Example:**\n```json\n{\n \"name\": \"convert_density\",\n \"arguments\": {\n \"value\": 1,\n \"from_unit\": \"kilograms per liter\",\n \"to_unit\": \"grams per cubic centimeter\"\n }\n}\n```\n\n### `list_supported_units`\n\nList all supported units for each conversion type.\n\n**Parameters:** None\n\n**Example:**\n```json\n{\n \"name\": \"list_supported_units\",\n \"arguments\": {}\n}\n```\n\n### `convert_angle`\n\nConvert angle between degrees, radians, and other angular units.\n\n**Parameters:**\n- `value` (float): Angle value to convert\n- `from_unit` (str): Source unit (degrees, radians, arcmin, arcsec, turns, gons)\n- `to_unit` (str): Target unit (degrees, radians, arcmin, arcsec, turns, gons)\n\n**Example:**\n```json\n{\n \"name\": \"convert_angle\",\n \"arguments\": {\n \"value\": 3.14159,\n \"from_unit\": \"radians\",\n \"to_unit\": \"degrees\"\n }\n}\n```\n\n### `convert_area`\n\nConvert area between various units including metric and imperial systems.\n\n**Parameters:**\n- `value` (float): Area value to convert\n- `from_unit` (str): Source unit (acre, are, hectare, square centimeter, square foot, square inch, square kilometer, square meter, square mile, square millimeter, square yard)\n- `to_unit` (str): Target unit (acre, are, hectare, square centimeter, square foot, square inch, square kilometer, square meter, square mile, square millimeter, square yard)\n\n**Example:**\n```json\n{\n \"name\": \"convert_area\",\n \"arguments\": {\n \"value\": 1,\n \"from_unit\": \"hectare\",\n \"to_unit\": \"acre\"\n }\n}\n```\n\n### `convert_computer_data`\n\nConvert computer storage between various units from bits to exabytes.\n\n**Parameters:**\n- `value` (float): Computer storage value to convert\n- `from_unit` (str): Source unit (bits, bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes, exabytes)\n- `to_unit` (str): Target unit (bits, bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes, exabytes)\n\n**Example:**\n```json\n{\n \"name\": \"convert_computer_data\",\n \"arguments\": {\n \"value\": 1,\n \"from_unit\": \"gigabytes\",\n \"to_unit\": \"megabytes\"\n }\n}\n```\n\n### `convert_pressure`\n\nConvert pressure between various units including metric, imperial, and specialized systems.\n\n**Parameters:**\n- `value` (float): Pressure value to convert\n- `from_unit` (str): Source unit (pascal, hectopascal, kilopascal, megapascal, bar, atmosphere, centimeters of water, inches of water, feet of water, meters of water, millimeters of mercury, inches of mercury, kilogram force per square centimeter, newtons per square centimeter, newtons per square millimeter, psi, psf)\n- `to_unit` (str): Target unit (pascal, hectopascal, kilopascal, megapascal, bar, atmosphere, centimeters of water, inches of water, feet of water, meters of water, millimeters of mercury, inches of mercury, kilogram force per square centimeter, newtons per square centimeter, newtons per square millimeter, psi, psf)\n\n**Example:**\n```json\n{\n \"name\": \"convert_pressure\",\n \"arguments\": {\n \"value\": 1,\n \"from_unit\": \"atmosphere\",\n \"to_unit\": \"psi\"\n }\n}\n```\n\n### `convert_power`\n\nConvert power between various units including mechanical, electrical, and thermal systems.\n\n**Parameters:**\n- `value` (float): Power value to convert\n- `from_unit` (str): Source unit (Btu per hour, foot pound\u2011force per second, ton of refrigeration, calorie per hour, kilocalorie per hour, horsepower, horsepower (metric), kilogram\u2011force meter per second, watt, kilowatt, megawatt, gigawatt, terawatt, petawatt)\n- `to_unit` (str): Target unit (Btu per hour, foot pound\u2011force per second, ton of refrigeration, calorie per hour, kilocalorie per hour, horsepower, horsepower (metric), kilogram\u2011force meter per second, watt, kilowatt, megawatt, gigawatt, terawatt, petawatt)\n\n**Example:**\n```json\n{\n \"name\": \"convert_power\",\n \"arguments\": {\n \"value\": 1,\n \"from_unit\": \"horsepower\",\n \"to_unit\": \"kilowatt\"\n }\n}\n```\n\n### `convert_speed`\n\nConvert speed between various units including metric, imperial, and specialized systems.\n\n**Parameters:**\n- `value` (float): Speed value to convert\n- `from_unit` (str): Source unit (centimeters per minute, centimeters per second, feet per hour, feet per minute, feet per second, inches per minute, inches per second, kilometers per hour, kilometers per second, knots, Mach (ISA sea level), speed of sound, meters per hour, meters per minute, meters per second, miles per hour, miles per minute, miles per second, yards per hour, yards per minute, yards per second, speed of light)\n- `to_unit` (str): Target unit (centimeters per minute, centimeters per second, feet per hour, feet per minute, feet per second, inches per minute, inches per second, kilometers per hour, kilometers per second, knots, Mach (ISA sea level), speed of sound, meters per hour, meters per minute, meters per second, miles per hour, miles per minute, miles per second, yards per hour, yards per minute, yards per second, speed of light)\n\n**Example:**\n```json\n{\n \"name\": \"convert_speed\",\n \"arguments\": {\n \"value\": 60,\n \"from_unit\": \"miles per hour\",\n \"to_unit\": \"meters per second\"\n }\n}\n```\n\n## \ud83d\udee0\ufe0f Development\n\n### Prerequisites\n\n- Python 3.10+\n- [uv](https://docs.astral.sh/uv/) package manager\n\n### Setup\n\n```bash\n# Clone the repository\ngit clone https://github.com/zazencodes/unit-converter-mcp\ncd unit-converter-mcp\n\n# Install dependencies\nuv sync --dev\n\n# Run tests\nuv run pytest\n\n# Run linting\nuv run ruff check --fix\nuv run ruff format\n\n# Type checking\nuv run mypy src/\n```\n\n### MCP Client Config\n\n```json\n{\n \"mcpServers\": {\n \"unit-converter-dev\": {\n \"command\": \"uv\",\n \"args\": [\n \"--directory\",\n \"<path_to_your_repo>/unit-converter-mcp\",\n \"run\",\n \"unit-converter-mcp\"\n ]\n }\n }\n}\n```\n\n**Note:** Replace `<path_to_your_repo>/unit-converter-mcp` with the absolute path to your cloned repository.\n\n### Building\n\n```bash\n# Build package\nuv build\n\n# Test installation\nuv run --with dist/*.whl unit-converter-mcp\n```\n\n### Release Checklist\n\n1. **Update Version:**\n - Increment the `version` number in `pyproject.toml` and `src/__init__.py`.\n\n2. **Update Changelog:**\n - Add a new entry in `CHANGELOG.md` for the release.\n - Draft notes with coding agent using `git diff` context.\n\n ```\n Update the @CHANGELOG.md for the latest release.\n List all significant changes, bug fixes, and new features.\n Here's the git diff:\n [GIT_DIFF]\n ```\n \n - Commit along with any other pending changes.\n\n3. **Create GitHub Release:**\n - Draft a new release on the GitHub UI.\n - Tag release using UI.\n - The GitHub workflow will automatically build and publish the package to PyPI.\n\n## Testing with MCP Inspector\n\nFor exploring and/or developing this server, use the MCP Inspector npm utility:\n\n```bash\n# Install MCP Inspector\nnpm install -g @modelcontextprotocol/inspector\n\n# Run local development server with the inspector\nnpx @modelcontextprotocol/inspector uv run unit-converter-mcp\n\n# Run PyPI production server with the inspector\nnpx @modelcontextprotocol/inspector uvx unit-converter-mcp\n```\n\n## \ud83d\udcdd License\n\nMIT License - see [LICENSE](LICENSE) file for details.\n\n## \ud83e\udd1d Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Unit-conversion utilities exposed via Model Context Protocol",
"version": "0.1.2",
"project_urls": {
"Homepage": "https://github.com/zazencodes/unit-converter-mcp",
"Issues": "https://github.com/zazencodes/unit-converter-mcp/issues",
"Repository": "https://github.com/zazencodes/unit-converter-mcp"
},
"split_keywords": [
"conversion",
" length",
" mcp",
" model-context-protocol",
" temperature",
" unit",
" volume",
" weight"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "a92be19a96699c8381592531b006ad884b93d72341c7e1d0b979ac2f6b991f52",
"md5": "53b0d02b768f5bdcae3003425a180439",
"sha256": "dfedfe3e44fbfd77b4c94d20bd9b737de95e25ae8c7d99a400de867aa861db5a"
},
"downloads": -1,
"filename": "unit_converter_mcp-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "53b0d02b768f5bdcae3003425a180439",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 23618,
"upload_time": "2025-07-27T20:51:05",
"upload_time_iso_8601": "2025-07-27T20:51:05.504355Z",
"url": "https://files.pythonhosted.org/packages/a9/2b/e19a96699c8381592531b006ad884b93d72341c7e1d0b979ac2f6b991f52/unit_converter_mcp-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "af0d58013aa262f9ae54b91c59e3023837b4545b1697ea895b52db5e1e78deff",
"md5": "912f49ac7001fef3ba1c0f3c18715804",
"sha256": "62ca3972c59da7f4f760711e9f0a6f69638e9d10d4fb669cceefeacc17e35569"
},
"downloads": -1,
"filename": "unit_converter_mcp-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "912f49ac7001fef3ba1c0f3c18715804",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 24350,
"upload_time": "2025-07-27T20:51:07",
"upload_time_iso_8601": "2025-07-27T20:51:07.071439Z",
"url": "https://files.pythonhosted.org/packages/af/0d/58013aa262f9ae54b91c59e3023837b4545b1697ea895b52db5e1e78deff/unit_converter_mcp-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-27 20:51:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "zazencodes",
"github_project": "unit-converter-mcp",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "unit-converter-mcp"
}