Skip to content
MCP server

AllUnits Unit Conversion

Local MCP server that converts 30 unit pairs with published exact factors

Runs locally
Install

AllUnits Unit Conversion is an open-source MCP server for mcp data access. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, API, Self-hosted
Runs
Locally
Version
1.0.2
Listing updated

Similar MCP servers

Install

Run in a terminal

claude mcp add allunits-mcp -- npx -y allunits-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "allunits-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "allunits-mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "allunits-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "allunits-mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "allunits-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "allunits-mcp"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "allunits-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "allunits-mcp"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "allunits-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "allunits-mcp"
      ]
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

About AllUnits Unit Conversion

Gives AI assistants a reliable way to convert measurements instead of estimating them. Each conversion returns the stored factor, offset, display precision and a link to the page defining the unit, so the result can be traced back to its source.

The server runs locally over stdio and needs no API key or network access. It exposes tools to convert a value, list the supported pairs by category, and look up a factor without converting. Units can be given as symbols or full names, such as km or kilometers, and the reverse direction works without a second pair.

It suits developers building agents or chat assistants that handle length, weight, pressure, volume, data, temperature, speed, time or area, and anyone who needs conversions shown with their underlying definitions. For larger volumes, the companion HTTP API offers batch requests.

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

convert_unit
Converts a value between two units, returning the rounded result, unrounded value, factor, offset and definition page.
list_units
Lists the 30 supported pairs with slugs and pages, optionally filtered by category.
get_factor
Returns the factor, offset, precision and formula for a unit pair without converting a value.

What it does

Local stdio operation
Runs on the user's machine with no API key and no outbound network calls.
Traceable conversion factors
Each result includes the exact factor, offset, precision and a definition page.
Three conversion tools
Provides tools to convert a value, list pairs by category and fetch a factor alone.
Flexible unit names
Accepts symbols and full unit names, and handles reverse conversions automatically.
Nine measurement categories
Covers length, weight, pressure, volume, data, temperature, speed, time and area.

Good for

  • Letting an AI assistant convert distances, weights or pressures in a chat
  • Showing the source definition behind a converted figure in a report
  • Adding unit conversion to an agent workflow without an external API call
  • Converting temperatures or data sizes inside a coding assistant

Pricing

Open source

Free, open source MCP server; a separate hosted HTTP API has paid keys from $9/month.

Prices change. Check api.allunits.org before you buy.

AllUnits Unit Conversion FAQ

Does AllUnits Unit Conversion need an API key?

No. The server runs locally and requires no key or network access.

Which MCP clients can use AllUnits Unit Conversion?

The install instructions cover Claude Desktop, Cursor, Cline and Windsurf.

How many unit pairs are supported?

The server covers 30 pairs across nine categories.

What is the licence?

The server code is MIT licensed. The conversion data is CC BY 4.0 and requires attribution to AllUnits.org.

Is AllUnits Unit Conversion free?

Yes. AllUnits Unit Conversion is open source, so you can use and self-host it for free.

How do I add AllUnits Unit Conversion to Claude Code?

Run this command in your terminal: claude mcp add allunits-mcp -- npx -y allunits-mcp

What are the best alternatives to AllUnits Unit Conversion?

The closest alternatives to AllUnits Unit Conversion are UnitConvertLab and MCP Geratools.

Where this comes from

  • Description: written from the project's README, the project's website and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers