Logotipo de Unit Converter MCP

Unit Converter MCP

Comunidad
zazencodes

Unit conversion utilities that provide precise conversions between different units of measurement.

Editorzazencodes
Repositoriounit-converter-mcp
IdiomaPython
Forks
3
Estrellas
8
Herramientas disponibles
0
Tipo de transportestdio
Categorías
LicenciaMIT
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    Unit Converter MCP ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés de la comunidad en el repositorio

    8 estrellas y 3 forks en el repositorio enlazado.

Unit Converter MCP

Unit conversion utilities that provide precise conversions between different units of measurement.

🔧 Tools

ToolPurposeSupported Units
list_supported_unitsList all supported units for each typeAll conversion types
convert_temperatureConvert temperature between unitsCelsius, Fahrenheit, Kelvin
convert_angleConvert angle between unitsDegrees, Radians, Arcmin, Arcsec, Turns, Gons
convert_lengthConvert length/distance between unitsMeter, Kilometer, Foot, Inch, Mile, etc.
convert_areaConvert area between unitsSquare Meter, Acre, Hectare, Square Foot, etc.
convert_massConvert mass between unitsKilogram, Gram, Pound, Ounce, Ton
convert_volumeConvert volume between unitsLiter, Gallon, Cup, Fluid Ounce, etc.
convert_timeConvert time between unitsSeconds, Minutes, Hours, Days, Years, etc.
convert_energyConvert energy between unitsJoule, Kilowatt Hour, Calorie, BTU, etc.
convert_forceConvert force between unitsNewton, Pound Force, Kilogram Force, etc.
convert_pressureConvert pressure between unitsPascal, Bar, PSI, Atmosphere, etc.
convert_powerConvert power between unitsWatt, Horsepower, BTU per hour, etc.
convert_speedConvert speed between unitsm/s, mph, km/h, knots, Mach, etc.
convert_computer_dataConvert computer storage between unitsBytes, KB, MB, GB, TB, etc.
convert_densityConvert density between unitskg/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 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 file for details.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Instalación

TypingMind
Requisitos:

Node.js 18+

{
  "mcpServers": {
    "zazencodes-unit-converter-mcp": {
      "command": "",
      "args": []
    }
  }
}

Usa el MCP de Unit Converter MCP con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado Unit Converter MCP, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade Unit Converter MCP como servidor

Cuando el estado del conector sea «Listo», haz clic en «Editar servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en «Editar servidores».
  3. Pega la configuración del servidor MCP de Unit Converter MCP.
  4. Guarda la lista de servidores.
  5. Actualiza si quieres comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Editar servidores»
{
  "mcpServers": {
    "zazencodes-unit-converter-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "unit-converter-mcp"
      ]
    }
  }
}
4

Usa la conexión con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de Unit Converter MCP y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de Unit Converter MCP.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar Unit Converter MCP para ayudarme con esta tarea?
Unit Converter MCP
Claro. Lo he leído.
Esto es lo que he encontrado con Unit Converter MCP.

Preguntas frecuentes

¿Para qué sirve el servidor MCP Unit Converter MCP?

Unit Converter MCP es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas externas y acceder a información de contexto de fuentes externas. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP Unit Converter MCP con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar Unit Converter MCP con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el servidor MCP Unit Converter MCP con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves API y herramientas MCP en un solo espacio de trabajo. Con Unit Converter MCP conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu trabajo con los chats en TypingMind.

¿Cómo conecto el servidor MCP Unit Converter MCP a TypingMind?

Unit Converter MCP funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP Unit Converter MCP en TypingMind?

Unit Converter MCP ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves API con TypingMind para usar el servidor MCP Unit Converter MCP?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves API, prompts y configuración MCP. Si Unit Converter MCP requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇