Skip to main content

mcp-gnu-units

CI Python 3.10+ License: GPLv3 Sponsor Ruff Checked with mypy Last commit

mcp-gnu-units is an MCP server that gives AI agents precise, offline unit conversion backed by the GNU units database. Convert between 3000+ units of measurement — length, mass, time, temperature, area, volume, energy, power, pressure, speed, data and more — evaluate compound unit expressions like kW*h or acre*ft, reduce any quantity to its SI base units, search the unit database by keyword, and look up the exact definition of any unit, prefix, or physical constant. Deterministic, dimension-aware, and free of the hardcoded per-category unit tables every other converter ships.

Status: feature-complete, pre-release. All five domain tools ship — find_units, convert, convert_to_si, define_unit, and list_prefixes — alongside the info health check. Not yet published to PyPI; the remaining publish steps are tracked in TODO.

Distribution name: mcp-gnu-units · import package: mcp_gnu_units.

Built on GNU units

This project stands on the shoulders of GNU units, the units-conversion program written and maintained by Adrian Mariano for the Free Software Foundation. Its database is the product of decades of careful curation — thousands of units, physical constants drawn from CODATA and NIST, and the conversion semantics that make dimensional analysis trustworthy. This server would not exist without it.

mcp-gnu-units bundles that database verbatim (see Bundled data & provenance below) and pairs it with an independent, pure-Python conversion engine, so every number it returns traces straight back to GNU units' own definitions. It is offered in the same spirit and under the same license (GPL-3.0-or-later). If you find this useful, the original earns the credit first: https://www.gnu.org/software/units/.

Bundled data & provenance

This server stands on GNU units, Adrian Mariano's units-conversion program, by bundling its unit database verbatim at src/mcp_gnu_units/data/definitions.units. The conversion engine here is an independent implementation; GNU units supplies the data.

  • Source: GNU units 2.27 (tarball), definitions.units data version 3.26 (2026-02-25).
  • License: GPL-3.0-or-later © Free Software Foundation — the same license as this project, so the two are wholly compatible.
  • Integrity: the upstream tarball was GPG-verified (good signature from Adrian Mariano) before the file was vendored.

Full attribution, version pins, and checksums are recorded in NOTICE.

Sponsoring

mcp-gnu-units is free, open-source software developed in my spare time. Sponsoring keeps this project alive and actively maintained — it funds new units-engine features, bug fixes, and ongoing support, and it's a direct signal that the work is worth continuing.

If the project is useful to you, please consider sponsoring it through GitHub Sponsors. Click the Sponsor button at the top of the repository, or visit the link directly, and pick a one-time or recurring tier. Every contribution, large or small, is hugely appreciated and goes straight back into keeping mcp-gnu-units healthy.

License

GPL-3.0-or-later. See LICENSE. The bundled GNU units database is also GPL-3.0-or-later © Free Software Foundation; see NOTICE.

Metadata

Release files for mcp-gnu-units 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-gnu-units 0.1.1
File Size Uploaded Provenance Actions
mcp_gnu_units-0.1.1.tar.gz 176.7 kB With provenance Details for mcp_gnu_units-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-gnu-units 0.1.1
File Interpreter ABI Platform Actions
mcp_gnu_units-0.1.1-py3-none-any.whl Python 3 none any Details for mcp_gnu_units-0.1.1-py3-none-any.whl

Total release size: 356.2 kB

Release files / mcp_gnu_units-0.1.1.tar.gz

Download URL mcp_gnu_units-0.1.1.tar.gz
Size 176.7 kB
Tags Source
SHA-256 checksum
How to use checksums
450bdd60474e07e3e57e87c0dad570a651f6393b1f9ebfc7dc801ba0974edbd8
BLAKE2b-256 checksum
How to use checksums
3abb8671eb3cf9c728cf7843bec6f6a801630971d57b563046c2f2f9d1beceb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / mcp_gnu_units-0.1.1-py3-none-any.whl

Download URL mcp_gnu_units-0.1.1-py3-none-any.whl
Size 179.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60b8aad90790ec1916bb31273d59f4f413afbced83615c7ffab9dfe1a0fc05b7
BLAKE2b-256 checksum
How to use checksums
1168bb9c1671cafcb71c5cff762db0fe606eff39ee85bc03d43ecae1368085fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Security for mcp-gnu-units 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mcp_gnu_units-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page